Browse Source

Merge pull request #336 from DeXP/master

GDI+ text transparent background fix
Micha Mettke 8 năm trước cách đây
mục cha
commit
2df399ecda
1 tập tin đã thay đổi với 0 bổ sung2 xóa
  1. 0 2
      demo/gdip/nuklear_gdip.h

+ 0 - 2
demo/gdip/nuklear_gdip.h

@@ -578,8 +578,6 @@ nk_gdip_draw_text(short x, short y, unsigned short w, unsigned short h,
     wstr = (WCHAR*)_alloca(wsize * sizeof(wchar_t));
     MultiByteToWideChar(CP_UTF8, 0, text, len, wstr, wsize);
 
-    GdipSetSolidFillColor(gdip.brush, convert_color(cbg));
-    GdipFillRectangleI(gdip.memory, gdip.brush, x, y, w, h);
     GdipSetSolidFillColor(gdip.brush, convert_color(cfg));
     GdipDrawString(gdip.memory, wstr, wsize, font->handle, &layout, gdip.format, gdip.brush);
 }