summaryrefslogtreecommitdiff
path: root/windows/localhistory.c
diff options
context:
space:
mode:
Diffstat (limited to 'windows/localhistory.c')
-rw-r--r--windows/localhistory.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/windows/localhistory.c b/windows/localhistory.c
index 09d6e4f4c..aa80aeae3 100644
--- a/windows/localhistory.c
+++ b/windows/localhistory.c
@@ -158,15 +158,13 @@ LRESULT CALLBACK nsws_localhistory_event_callback(HWND hwnd, UINT msg,
break;
case WM_MOVE: {
RECT r, rmain;
- int voffset;
if (w != NULL) {
current_gui = w;
current_hwnd = gui_window_main_window(w);
- voffset = gui_window_voffset(w);
GetWindowRect(hwnd, &r);
GetWindowRect(current_hwnd, &rmain);
gui_window_redraw(w,
- MIN(r.top - rmain.top - voffset, 0),
+ MIN(r.top - rmain.top , 0),
MIN(r.left - rmain.left, 0),
gui_window_height(w) -
MIN(rmain.bottom - r.bottom, 0),