浏览代码

Merge pull request #5634 from puugz/patch-1

Fix broken wglUseFontBitmaps binding
gingerBill 1 周之前
父节点
当前提交
3ff58e00e4
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      core/sys/windows/wgl.odin

+ 2 - 1
core/sys/windows/wgl.odin

@@ -82,7 +82,8 @@ foreign Opengl32 {
 	wglSetLayerPaletteEntries :: proc(hdc: HDC, layer_plane, start, entries: c.int, cr: ^COLORREF) -> c.int ---
 	wglSetLayerPaletteEntries :: proc(hdc: HDC, layer_plane, start, entries: c.int, cr: ^COLORREF) -> c.int ---
 	wglShareLists             :: proc(HGLRC1, HGLRC2: HGLRC) -> BOOL ---
 	wglShareLists             :: proc(HGLRC1, HGLRC2: HGLRC) -> BOOL ---
 	wglSwapLayerBuffers       :: proc(hdc: HDC, planes: DWORD) -> BOOL ---
 	wglSwapLayerBuffers       :: proc(hdc: HDC, planes: DWORD) -> BOOL ---
-	wglUseFontBitmaps         :: proc(hdc: HDC, first, count, list_base: DWORD) -> BOOL ---
+	wglUseFontBitmapsA        :: proc(hdc: HDC, first, count, list_base: DWORD) -> BOOL ---
+	wglUseFontBitmapsW        :: proc(hdc: HDC, first, count, list_base: DWORD) -> BOOL ---
 	wglUseFontOutlines        :: proc(hdc: HDC, first, count, list_base: DWORD, deviation, extrusion: f32, format: c.int, gmf: LPGLYPHMETRICSFLOAT) -> BOOL ---
 	wglUseFontOutlines        :: proc(hdc: HDC, first, count, list_base: DWORD, deviation, extrusion: f32, format: c.int, gmf: LPGLYPHMETRICSFLOAT) -> BOOL ---
 }
 }