Commit 5dacc822 authored by Keith Packard's avatar Keith Packard

Coverity #333, #334 - eliminate unncessary test for always true condition

    in fbEvenStipple.
parent 75a9afdb
2006-04-06 Keith Packard <keithp@keithp.com>
* fb/fbstipple.c: (fbEvenStipple):
Coverity #333, #334 - eliminate unncessary test
for always true condition in fbEvenStipple.
2006-04-06 Adam Jackson <ajax@freedesktop.org>
* hw/xfree86/parser/Monitor.c:
......
......@@ -148,9 +148,8 @@ fbEvenStipple (FbBits *dst,
/*
* Get pointer to stipple mask array for this depth
*/
fbBits = 0; /* unused */
if (pixelsPerDst <= 8)
fbBits = fbStippleTable[pixelsPerDst];
/* fbStippleTable covers all valid bpp (4,8,16,32) */
fbBits = fbStippleTable[pixelsPerDst];
while (height--)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment