Fixed glyph cache issues.

This commit is contained in:
Armin Novak 2016-08-08 09:29:36 +02:00
parent 0d56de57c4
commit f16ffaefa7
3 changed files with 2 additions and 11 deletions

View File

@ -181,16 +181,6 @@ static BOOL update_process_glyph_fragments(rdpContext* context,
flAccel))
return FALSE;
}
/* Contrary to glyphs, the offset is added after the fragment. */
if ((ulCharInc == 0) && (!(flAccel & SO_CHAR_INC_EQUAL_BM_BASE)))
{
if (flAccel & SO_VERTICAL)
y += data[index++];
if (flAccel & SO_HORIZONTAL)
x += data[index++];
}
}
break;

View File

@ -314,6 +314,7 @@ static BOOL gdi_Glyph_EndDraw(rdpContext* context, UINT32 x, UINT32 y,
return FALSE;
gdi_DeleteObject((HGDIOBJECT)gdi->drawing->hdc->brush);
gdi->drawing->hdc->brush = NULL;
gdi_SetNullClipRgn(gdi->drawing->hdc);
return TRUE;
}

View File

@ -484,7 +484,7 @@ static BOOL test_gdi_BitBlt(UINT32 SrcFormat, UINT32 DstFormat)
{GDI_DSan, bmp_SRC, NULL},
{GDI_DSxn, bmp_SRC, NULL},
{GDI_DPa, bmp_SRC, NULL},
{GDI_D, bmp_SRC, NULL},
{GDI_DSTCOPY, bmp_SRC, NULL},
{GDI_DPno, bmp_SRC, NULL},
{GDI_SDno, bmp_SRC, NULL},
{GDI_PDno, bmp_SRC, NULL},