mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-10 04:57:26 +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() {
|
||||
// HDC dc = GetWindowDC(0);
|
||||
// return GetDeviceCaps(dc, LOGPIXELSX);
|
||||
// int dpi = GetDeviceCaps(dc, LOGPIXELSX);
|
||||
// ReleaseDC(0, dc);
|
||||
// return dpi;
|
||||
// }
|
||||
import "C"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user