浏览代码

Fixed Transparent Text Background for GDI

Co-authored-by: Rob Loach <[email protected]>
nyaruku 2 年之前
父节点
当前提交
036f8226bb
共有 1 个文件被更改,包括 1 次插入1 次删除
  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));
     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));