Browse Source

Fixed Transparent Text Background for GDI

Co-authored-by: Rob Loach <[email protected]>
nyaruku 2 years ago
parent
commit
036f8226bb
1 changed files with 1 additions and 1 deletions
  1. 1 1
      demo/gdi/nuklear_gdi.h

+ 1 - 1
demo/gdi/nuklear_gdi.h

@@ -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));
     wstr = (WCHAR*)_alloca(wsize * sizeof(wchar_t));
     MultiByteToWideChar(CP_UTF8, 0, text, len, wstr, wsize);
     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));
     SetBkColor(dc, convert_color(cbg));
     SetTextColor(dc, convert_color(cfg));
     SetTextColor(dc, convert_color(cfg));