GDI+ text transparent background fix

There is no need do draw filled rectangle behind of any text
This commit is contained in:
Dmitry Hrabrov 2017-02-04 12:52:02 +03:00 committed by GitHub
parent 9cd5d035c3
commit 5d98939a2d

View File

@ -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);
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);
}