mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-26 02:42:02 +01:00
ui: Bug fix: must call ReleaseGC (#251)
This commit is contained in:
parent
c8edcde2d5
commit
96a43bcb4d
@ -22,7 +22,9 @@ package ui
|
|||||||
//
|
//
|
||||||
// static int getDPI() {
|
// static int getDPI() {
|
||||||
// HDC dc = GetWindowDC(0);
|
// HDC dc = GetWindowDC(0);
|
||||||
// return GetDeviceCaps(dc, LOGPIXELSX);
|
// int dpi = GetDeviceCaps(dc, LOGPIXELSX);
|
||||||
|
// ReleaseDC(0, dc);
|
||||||
|
// return dpi;
|
||||||
// }
|
// }
|
||||||
import "C"
|
import "C"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user