|
26 | 26 | #include"record.h"
|
27 | 27 | #include"config.h"
|
28 | 28 |
|
29 |
| -#include"themes/default.xpm" |
30 | 29 | #include"icon.xbm"
|
31 | 30 | #include"icon_msk.xbm"
|
32 | 31 |
|
@@ -58,7 +57,7 @@ static Colormap Cmap;
|
58 | 57 | static int IntervalState;
|
59 | 58 | static XtIntervalId IntervalId;
|
60 | 59 |
|
61 |
| -static char *GraphFile = NULL; /* For custom graphics */ |
| 60 | +static char *GraphFile = GRAPH_FILE; /* For custom graphics */ |
62 | 61 |
|
63 | 62 | static GameState GameMode; /* 0=Title; 1=Game; 2=GameOver; 3=Pause */
|
64 | 63 |
|
@@ -417,20 +416,14 @@ static void option( int argc, char **argv )
|
417 | 416 |
|
418 | 417 | static void make_graphic( void )
|
419 | 418 | {
|
420 |
| - int i; |
421 | 419 | XpmAttributes attr;
|
422 |
| - |
423 | 420 | attr.valuemask = XpmColormap;
|
424 | 421 | attr.colormap = Cmap;
|
425 | 422 |
|
426 |
| - if( GraphFile != NULL ) |
427 |
| - i = XpmReadFileToPixmap( Disp,DefaultRootWindow(Disp),GraphFile, |
428 |
| - &Char_p,&Char_m,&attr ); |
429 |
| - else |
430 |
| - i = XpmCreatePixmapFromData( Disp,DefaultRootWindow(Disp), |
431 |
| - picture_xpm,&Char_p,&Char_m,&attr ); |
432 |
| - if( i ){ |
433 |
| - fprintf( stderr,"%s: %s\n",Myname,XpmGetErrorString(i) ); |
| 423 | + int err = XpmReadFileToPixmap( Disp, DefaultRootWindow(Disp), GraphFile, |
| 424 | + &Char_p,&Char_m,&attr ); |
| 425 | + if( err ){ |
| 426 | + fprintf( stderr,"%s: %s\n",Myname,XpmGetErrorString(err) ); |
434 | 427 | exit(1);
|
435 | 428 | }
|
436 | 429 |
|
|
0 commit comments