mirror of https://github.com/buggins/dlangui.git
fix High DPI window resize
This commit is contained in:
parent
40a3c36dd2
commit
5eec0f91cf
|
@ -228,6 +228,7 @@ class Window {
|
||||||
Log.d("layout took ", layoutEnd - measureEnd, " ms");
|
Log.d("layout took ", layoutEnd - measureEnd, " ms");
|
||||||
//Log.d("layout position: ", _mainWidget.pos);
|
//Log.d("layout position: ", _mainWidget.pos);
|
||||||
}
|
}
|
||||||
|
update(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected PopupWidget[] _popups;
|
protected PopupWidget[] _popups;
|
||||||
|
|
|
@ -1192,7 +1192,7 @@ version (Windows) {
|
||||||
SCREEN_DPI = GetDeviceCaps(dc, LOGPIXELSY);
|
SCREEN_DPI = GetDeviceCaps(dc, LOGPIXELSY);
|
||||||
DeleteObject(dc);
|
DeleteObject(dc);
|
||||||
|
|
||||||
SCREEN_DPI = 96 * 3 / 2;
|
//SCREEN_DPI = 96 * 3 / 2;
|
||||||
|
|
||||||
result = myWinMain(hInstance, hPrevInstance, lpCmdLine, nCmdShow);
|
result = myWinMain(hInstance, hPrevInstance, lpCmdLine, nCmdShow);
|
||||||
Log.i("calling Runtime.terminate()");
|
Log.i("calling Runtime.terminate()");
|
||||||
|
|
Loading…
Reference in New Issue