fix High DPI window resize

This commit is contained in:
Vadim Lopatin 2015-03-24 08:53:16 +03:00
parent 40a3c36dd2
commit 5eec0f91cf
2 changed files with 2 additions and 1 deletions
src/dlangui/platforms

View File

@ -228,6 +228,7 @@ class Window {
Log.d("layout took ", layoutEnd - measureEnd, " ms");
//Log.d("layout position: ", _mainWidget.pos);
}
update(true);
}
protected PopupWidget[] _popups;

View File

@ -1192,7 +1192,7 @@ version (Windows) {
SCREEN_DPI = GetDeviceCaps(dc, LOGPIXELSY);
DeleteObject(dc);
SCREEN_DPI = 96 * 3 / 2;
//SCREEN_DPI = 96 * 3 / 2;
result = myWinMain(hInstance, hPrevInstance, lpCmdLine, nCmdShow);
Log.i("calling Runtime.terminate()");