From fb90e1b673e3a8056c7e259c1d02f05c9e5b386f Mon Sep 17 00:00:00 2001 From: Alex Henrie Date: Thu, 29 Oct 2015 21:30:21 -0600 Subject: [PATCH] winex11: Initialize the length of each side of the color cube to 1. Signed-off-by: Alex Henrie Signed-off-by: Vincent Povirk Signed-off-by: Alexandre Julliard --- dlls/winex11.drv/palette.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/winex11.drv/palette.c b/dlls/winex11.drv/palette.c index 460615ce94b..953c9ea2438 100644 --- a/dlls/winex11.drv/palette.c +++ b/dlls/winex11.drv/palette.c @@ -587,7 +587,7 @@ static void X11DRV_PALETTE_FillDefaultColors( const PALETTEENTRY *sys_pal_templa * cube - based on Greg Kreider's code. */ - int i = 0, idx = 0; + int i = 1, idx = 0; int red, no_r, inc_r; int green, no_g, inc_g; int blue, no_b, inc_b; -- 2.11.4.GIT