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:
Nikolay Sivov 2017-09-07 04:15:28 +03:00 committed by Alexandre Julliard
parent d003ed3b17
commit 899c622934
1 changed files with 1 additions and 1 deletions

View File

@ -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