Fixed Transparent Text Background for GDI

Co-authored-by: Rob Loach <robloach@gmail.com>
This commit is contained in:
nyaruku 2023-09-12 18:47:27 +03:00 committed by GitHub
parent 0435477a91
commit 036f8226bb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -525,7 +525,7 @@ nk_gdi_draw_text(HDC dc, 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);
SetBkMode(dc, TRANSPARENT); // Transparent Text Background
SetBkMode(dc, TRANSPARENT); /* Transparent Text Background */
SetBkColor(dc, convert_color(cbg));
SetTextColor(dc, convert_color(cfg));