diff options
-rw-r--r-- | images.c | 10 |
1 files changed, 4 insertions, 6 deletions
@@ -28,7 +28,7 @@ #include "xpm/chars.500.xpm" #undef xpm -static char **faces[3] = { face0_data, face1_data, face2_data }; +static char **faces[3] = { face0_data, face1_data, face2_data }; static char **charss[3] = { chars0_data, chars1_data, chars2_data }; static int c_factors[3] = { 6, 12, 24 }; @@ -39,7 +39,7 @@ char charmap[] = " 0123456789ABCDEF-x,.ro+"; int char_to_x[256]; void free_pixmaps(void) { - if(face) XFreePixmap(display, face); + if(face) XFreePixmap(display, face); if(chars) XFreePixmap(display, chars); } @@ -48,10 +48,8 @@ void load_pixmaps(void) { XpmAttributes attr; attr.valuemask = 0; - XpmCreatePixmapFromData(display, window, faces[winsize], &face, 0, - &attr); - XpmCreatePixmapFromData(display, window, charss[winsize], &chars, 0, - &attr); + XpmCreatePixmapFromData(display, window, faces[winsize], &face, 0, &attr); + XpmCreatePixmapFromData(display, window, charss[winsize], &chars, 0, &attr); for(i = 0; i < 256; i++) { char_to_x[i] = 0; |