diff --git a/src/graphics.c b/src/graphics.c index 32432f9..7622a07 100644 --- a/src/graphics.c +++ b/src/graphics.c @@ -185,26 +185,26 @@ static int const win32_bg_palette[] = #endif #if defined(USE_GL) -static unsigned int const gl_bgpal[] = - { - 0, - 0x0000007F, - 0x00007F00, - 0x00007F7F, - 0x007F0000, - 0x007F007F, - 0x007F7F00, - 0x007F7F7F, +static GLbyte const gl_bgpal[][4] = +{ + { 0x00, 0x00, 0x00, 0x7f }, + { 0x00, 0x00, 0x3f, 0x7f }, + { 0x00, 0x3f, 0x00, 0x7f }, + { 0x00, 0x3f, 0x3f, 0x7f }, + { 0x3f, 0x00, 0x00, 0x7f }, + { 0x3f, 0x00, 0x3f, 0x7f }, + { 0x3f, 0x3f, 0x00, 0x7f }, + { 0x3f, 0x3f, 0x3f, 0x7f }, // + intensity - 0x00000000, - 0x000000FF, - 0x0000FF00, - 0x0000FFFF, - 0x00FF0000, - 0x00FF00FF, - 0x00FFFF00, - 0x00FFFFFF, - }; + { 0x00, 0x00, 0x00, 0x7f }, + { 0x00, 0x00, 0x7f, 0x7f }, + { 0x00, 0x7f, 0x00, 0x7f }, + { 0x00, 0x7f, 0x7f, 0x7f }, + { 0x7f, 0x00, 0x00, 0x7f }, + { 0x7f, 0x00, 0x7f, 0x7f }, + { 0x7f, 0x7f, 0x00, 0x7f }, + { 0x7f, 0x7f, 0x7f, 0x7f } +}; static caca_t *gl_kk; /* FIXME: we ought to get rid of this */ #endif