Changeset - r332:0f76b688ca24
[Not reviewed]
master
0 1 0
tron - 20 years ago 2004-11-01 15:08:40
tron@openttd.org
(svn r499) Merge r498 to trunk:
Disabled buttons flicker no more
This solves bug report 991101
1 file changed with 6 insertions and 6 deletions:
gfx.c
6
6
0 comments (0 inline, 0 general)
gfx.c
Show inline comments
 
@@ -115,6 +115,8 @@ void GfxScroll(int left, int top, int wi
 
void GfxFillRect(int left, int top, int right, int bottom, int color) {
 
	DrawPixelInfo *dpi = _cur_dpi;
 
	byte *dst,*ctab;
 
	const int otop = top;
 
	const int oleft = left;
 

	
 
	if (dpi->zoom != 0)
 
		return;
 
@@ -159,15 +161,13 @@ void GfxFillRect(int left, int top, int 
 
			} while (--bottom);
 
		}
 
	} else {
 
		byte bo = 0;
 
		byte bo = (oleft - left + dpi->left + otop - top + dpi->top) & 1;
 
		do {
 
			int i;
 
			byte b = (bo^=1);
 
			for(i=0; i!=right;i++)
 
				if ((b^=1) != 0)
 
					dst[i] = (byte)color;
 
			for (i = (bo ^= 1); i < right; i += 2)
 
				dst[i] = (byte)color;
 
			dst += dpi->pitch;
 
		} while (--bottom);
 
		} while (--bottom > 0);
 
	}
 
}
 

	
0 comments (0 inline, 0 general)