mirror of https://github.com/buggins/dlangui.git
fix High DPI window resize
This commit is contained in:
parent
40a3c36dd2
commit
5eec0f91cf
src/dlangui/platforms
|
@ -228,6 +228,7 @@ class Window {
|
|||
Log.d("layout took ", layoutEnd - measureEnd, " ms");
|
||||
//Log.d("layout position: ", _mainWidget.pos);
|
||||
}
|
||||
update(true);
|
||||
}
|
||||
|
||||
protected PopupWidget[] _popups;
|
||||
|
|
|
@ -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()");
|
||||
|
|
Loading…
Reference in New Issue