ui: Bug fix: must call ReleaseGC (#251)

This commit is contained in:
Hajime Hoshi 2016-08-09 00:09:22 +09:00
parent c8edcde2d5
commit 96a43bcb4d

View File

@ -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"