summaryrefslogtreecommitdiff
path: root/atari
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2014-05-20 21:05:11 +0100
committerMichael Drake <tlsa@netsurf-browser.org>2014-05-20 21:05:11 +0100
commit4c04e32236062bf836517c9a01f2f3c9b8791786 (patch)
treec5412f24fc1378ccea14c72d74fa24e65c02d915 /atari
parent923feec091affcb92879535619c9374b56d8aa68 (diff)
downloadnetsurf-4c04e32236062bf836517c9a01f2f3c9b8791786.tar.gz
netsurf-4c04e32236062bf836517c9a01f2f3c9b8791786.tar.bz2
Fix use of uninitialised scroll values.
Diffstat (limited to 'atari')
-rwxr-xr-xatari/rootwin.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/atari/rootwin.c b/atari/rootwin.c
index 7938437b4..dd58d6f16 100755
--- a/atari/rootwin.c
+++ b/atari/rootwin.c
@@ -1498,6 +1498,8 @@ static void on_file_dropped(ROOTWIN *rootwin, short msg[8])
size, mx, my
));
+ gui_window_get_scroll(gw, &sx, &sy);
+
window_get_grect(rootwin, BROWSER_AREA_CONTENT, &content_area);
mx = mx - content_area.g_x;
my = my - content_area.g_y;
@@ -1521,7 +1523,6 @@ static void on_file_dropped(ROOTWIN *rootwin, short msg[8])
/* no memory */
goto error;
}
- gui_window_get_scroll(gw, &sx, &sy);
processed = browser_window_drop_file_at_point(gw->browser->bw,
mx+sx, my+sy,
utf8_fn);