Skip to content

Commit

Permalink
tuning window size according to DPI again
Browse files Browse the repository at this point in the history
  • Loading branch information
mintty committed Sep 19, 2016
1 parent ab38ddb commit ff3e3b8
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/winmain.c
Original file line number Diff line number Diff line change
Expand Up @@ -857,11 +857,6 @@ win_adjust_borders(int t_width, int t_height)
window_style &= ~(WS_CAPTION | WS_BORDER);
}

#if 0
/* this had been changed under the vague assumption
it might be appropriate if EnableNonClientDpiScaling is used;
but it makes no difference
*/
if (pGetDpiForMonitor && pAdjustWindowRectExForDpi) {
HMONITOR mon = MonitorFromWindow(wnd, MONITOR_DEFAULTTONEAREST);
uint x, dpi;
Expand All @@ -875,7 +870,6 @@ win_adjust_borders(int t_width, int t_height)
#endif
}
else
#endif
AdjustWindowRect(&wr, window_style, false);

width = wr.right - wr.left;
Expand Down

0 comments on commit ff3e3b8

Please sign in to comment.