From 649273e89cd67778c0126a77d8a4cfdbb080ae52 Mon Sep 17 00:00:00 2001 From: Joseph Gilbert Date: Wed, 7 Jun 2006 15:01:40 +0000 Subject: [PATCH] *Bugfix - uninitialized variable used during division. --- source/blender/src/drawview.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/blender/src/drawview.c b/source/blender/src/drawview.c index f528921916a..88e5ed56ab0 100644 --- a/source/blender/src/drawview.c +++ b/source/blender/src/drawview.c @@ -654,7 +654,7 @@ static void drawfloor(void) grid= gridlines*vd->grid; BIF_GetThemeColor3ubv(TH_GRID, col); - BIF_GetThemeColor3ubv(TH_BACK, col); + BIF_GetThemeColor3ubv(TH_BACK, col2); /* emphasise division lines lighter instead of darker, if background is darker than grid */ if ( (col[0]+col[1]+col[2])/3 > (col2[0]+col2[1]+col2[2])/3 )