Commit c55d2c95 authored by Jonathan Wilkes's avatar Jonathan Wilkes
Browse files

Merge branch 'windows-win-size-0.24.4'

parents b44e1b7e de000cb6
Pipeline #2964 canceled with stage
......@@ -401,8 +401,10 @@ function nw_create_window(cid, type, width, height, xpos, ypos, attr_array) {
// why does Windows have different innerWidth and innerHeight from other OSs?
// See pdgui.js' canvas_params for the explanation...
// ico@vt.edu 2020-08-21: this should only apply to patch windows
width -= 16 * pdgui.nw_os_is_windows;
height -= 8 * pdgui.nw_os_is_windows;
// 2020-10-01: this is not needed anymore since it was a bug specific to 0.14.7
// and Windows is now using 0.24.4
//width -= 16 * pdgui.nw_os_is_windows;
//height -= 8 * pdgui.nw_os_is_windows;
} else {
my_title = type;
if (type !== "search" && type !== "text") {
......
......@@ -1039,8 +1039,9 @@ function canvas_check_geometry(cid) {
// ico@vt.edu 2020-08-31:
// why does Windows have different innerWidth and innerHeight from other OSs?
// See canvas_params for the explanation...
win_w += 16 * nw_os_is_windows;
win_h += 8 * nw_os_is_windows;
// 2020-10-01: this was a bug in 0.14.7 but is no longer needed
//win_w += 16 * nw_os_is_windows;
//win_h += 8 * nw_os_is_windows;
// We're reusing win_x and win_y below, as it
// shouldn't make a difference to the bounds
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment