dwrite: Fix 8bpp bitmap copy.
Spotted by Matteo. Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
d003ed3b17
commit
899c622934
|
@ -282,7 +282,7 @@ static void blit_8(struct dib_data *dib, const BYTE *src, const RECT *rect, DWOR
|
|||
|
||||
for (y = rect->top; y < rect->bottom; y++) {
|
||||
for (x = 0; x < src_width; x++) {
|
||||
if (src[x]) continue;
|
||||
if (!src[x]) continue;
|
||||
if (src[x] == DWRITE_ALPHA_MAX)
|
||||
dst_ptr[x] = text_pixel;
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue