--- uae/src/gfxutil.c 2018/04/24 17:01:42 1.1.1.6 +++ uae/src/gfxutil.c 2018/04/24 17:16:18 1.1.1.10 @@ -9,14 +9,12 @@ #include "sysconfig.h" #include "sysdeps.h" -#include "config.h" #include "options.h" #include "threaddep/thread.h" #include "memory.h" #include "custom.h" #include "keyboard.h" #include "xwin.h" -#include "keybuf.h" #define RED 0 #define GRN 1 @@ -77,7 +75,7 @@ unsigned long doMask256 (int p, int bits return val; } -static unsigned int doColor(int i, int bits, int shift) +static unsigned int doColor (int i, int bits, int shift) { int shift2; if(bits >= 8) shift2 = 0; else shift2 = 8 - bits; @@ -94,7 +92,7 @@ void alloc_colors64k (int rw, int gw, in xcolors[i] = doMask(r, rw, rs) | doMask(g, gw, gs) | doMask(b, bw, bs); } /* create AGA color tables */ - for(i=0; i<256; i++) { + for(i = 0; i < 256; i++) { xredcolors[i] = doColor(i, rw, rs); xgreencolors[i] = doColor(i, gw, gs); xbluecolors[i] = doColor(i, bw, bs); @@ -114,7 +112,7 @@ void alloc_colors256 (allocfunc_type all { int nb_cols[3]; /* r,g,b */ int maxcol = newmaxcol == 0 ? 256 : newmaxcol; - int i,j,k,l,t; + int i,j,k,l; xcolnr *map; @@ -361,7 +359,7 @@ void setup_dither (int bits, allocfunc_t } } } -/* fprintf(stderr, "%d color(s) lost\n",maxcol - l);*/ +/* write_log ("%d color(s) lost\n",maxcol - l);*/ /* * for each component compute the mapping