GDI+ text transparent background fix
There is no need do draw filled rectangle behind of any text
This commit is contained in:
parent
9cd5d035c3
commit
5d98939a2d
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user