Browse Source

GDI+ text transparent background fix

There is no need do draw filled rectangle behind of any text
Dmitry Hrabrov 8 years ago
parent
commit
5d98939a2d
1 changed files with 0 additions and 1 deletions
  1. 0 1
      demo/gdip/nuklear_gdip.h

+ 0 - 1
demo/gdip/nuklear_gdip.h

@@ -579,7 +579,6 @@ nk_gdip_draw_text(short x, short y, unsigned short w, unsigned short h,
     MultiByteToWideChar(CP_UTF8, 0, text, len, wstr, wsize);
     MultiByteToWideChar(CP_UTF8, 0, text, len, wstr, wsize);
 
 
     GdipSetSolidFillColor(gdip.brush, convert_color(cbg));
     GdipSetSolidFillColor(gdip.brush, convert_color(cbg));
-    GdipFillRectangleI(gdip.memory, gdip.brush, x, y, w, h);
     GdipSetSolidFillColor(gdip.brush, convert_color(cfg));
     GdipSetSolidFillColor(gdip.brush, convert_color(cfg));
     GdipDrawString(gdip.memory, wstr, wsize, font->handle, &layout, gdip.format, gdip.brush);
     GdipDrawString(gdip.memory, wstr, wsize, font->handle, &layout, gdip.format, gdip.brush);
 }
 }