From d1df3e226a7385f948196d62edf119ee82028100 Mon Sep 17 00:00:00 2001 From: Ben Harris Date: Mon, 19 Mar 2007 12:05:34 +0000 Subject: [PATCH] Fix a stupid one-character typo that was breaking 256-colour support on GTK. [originally from svn r7403] --- unix/gtkwin.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unix/gtkwin.c b/unix/gtkwin.c index 388d4225..a377ad65 100644 --- a/unix/gtkwin.c +++ b/unix/gtkwin.c @@ -1434,7 +1434,7 @@ void palette_reset(void *frontend) int r = i / 36, g = (i / 6) % 6, b = i % 6; inst->cols[i+16].red = r ? r * 0x2828 + 0x3737 : 0; inst->cols[i+16].green = g ? g * 0x2828 + 0x3737 : 0; - inst->cols[i+16].blue = b ? b + 0x2828 + 0x3737 : 0; + inst->cols[i+16].blue = b ? b * 0x2828 + 0x3737 : 0; } else { int shade = i - 216; shade = shade * 0x0a0a + 0x0808; -- 2.45.2