aboutsummaryrefslogtreecommitdiff
path: root/images.c
diff options
context:
space:
mode:
Diffstat (limited to 'images.c')
-rw-r--r--images.c37
1 files changed, 18 insertions, 19 deletions
diff --git a/images.c b/images.c
index 888db6d..1ed80d3 100644
--- a/images.c
+++ b/images.c
@@ -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); */
+ }
+ }
}