Merge pull request #336 from DeXP/master

GDI+ text transparent background fix
This commit is contained in:
Micha Mettke 2017-02-04 16:12:00 +01:00 committed by GitHub
commit 2df399ecda

View File

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