Fixed glyph cache issues.
authorArmin Novak <armin.novak@thincast.com>
Mon, 8 Aug 2016 07:29:36 +0000 (09:29 +0200)
committerArmin Novak <armin.novak@thincast.com>
Thu, 6 Oct 2016 11:43:08 +0000 (13:43 +0200)
libfreerdp/cache/glyph.c
libfreerdp/gdi/graphics.c
libfreerdp/gdi/test/TestGdiBitBlt.c

index 70cc5b7..4ae5986 100644 (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;
index 55e341d..eb459c3 100644 (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;
 }
index 7509a5f..f3d5334 100644 (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},