Skip to content

Commit

Permalink
libfreerdp-gdi: fix invalidation of region with line drawing
Browse files Browse the repository at this point in the history
  • Loading branch information
awakecoding committed Jan 29, 2014
1 parent 4d289ee commit 97dd904
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libfreerdp/gdi/gdi.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down
2 changes: 2 additions & 0 deletions libfreerdp/gdi/include/line.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 97dd904

Please sign in to comment.