diff options
Diffstat (limited to 'images.c')
-rw-r--r-- | images.c | 37 |
1 files changed, 18 insertions, 19 deletions
@@ -38,23 +38,22 @@ Pixmap chars; char charmap[] = " 0123456789ABCDEF-x,.ro+"; int char_to_x[256]; -void -load_pixmaps(void) -{ - int i, c; - - XpmAttributes attr; - attr.valuemask = 0; - 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; - for (c=0; charmap[c]; c++) - if (charmap[c] == i) { - char_to_x[i] = c * c_factors[winsize]; - /* printf("char_to_x[%d] ('%c') = %d\n", i, i, c*C_FACTOR); */ - } - } +void load_pixmaps(void) { + int i, c; + + XpmAttributes attr; + attr.valuemask = 0; + 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; + for(c = 0; charmap[c]; c++) + if(charmap[c] == i) { + char_to_x[i] = c * c_factors[winsize]; + /* printf("char_to_x[%d] ('%c') = %d\n", i, i, c*C_FACTOR); */ + } + } } |