mirror of https://github.com/FreeRDP/FreeRDP
libfreerdp-gdi: fix invalidation of region with line drawing
This commit is contained in:
parent
4d289ee065
commit
97dd904a36
|
@ -313,7 +313,8 @@ static const UINT32 rop3_code_table[] =
|
|||
};
|
||||
|
||||
/* Hatch Patterns as monochrome data */
|
||||
static BYTE GDI_BS_HACHTED_PATTERNS[] = {
|
||||
static BYTE GDI_BS_HACHTED_PATTERNS[] =
|
||||
{
|
||||
0xFF, 0xFF, 0xFF, 0x00, 0xFF, 0xFF, 0xFF, 0xFF, /* HS_HORIZONTAL */
|
||||
0xF7, 0xF7, 0xF7, 0xF7, 0xF7, 0xF7, 0xF7, 0xF7, /* HS_VERTICAL */
|
||||
0xFE, 0xFD, 0xFB, 0xF7, 0xEF, 0xDF, 0xBF, 0x7F, /* HS_FDIAGONAL */
|
||||
|
|
|
@ -70,6 +70,8 @@ int LINE_TO(HGDI_DC hdc, int nXEnd, int nYEnd)
|
|||
by1 = MAX(by1, 0);
|
||||
bx2 = MIN(bx2, bmp->width - 1);
|
||||
by2 = MIN(by2, bmp->height - 1);
|
||||
|
||||
gdi_InvalidateRegion(hdc, bx1, by1, bx2 - bx1 + 1, by2 - by1 + 1);
|
||||
|
||||
pen = GDI_GET_PEN_COLOR(hdc->pen);
|
||||
|
||||
|
|
Loading…
Reference in New Issue