diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2014-05-20 21:05:11 +0100 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2014-05-20 21:05:11 +0100 |
commit | 4c04e32236062bf836517c9a01f2f3c9b8791786 (patch) | |
tree | c5412f24fc1378ccea14c72d74fa24e65c02d915 /atari | |
parent | 923feec091affcb92879535619c9374b56d8aa68 (diff) | |
download | netsurf-4c04e32236062bf836517c9a01f2f3c9b8791786.tar.gz netsurf-4c04e32236062bf836517c9a01f2f3c9b8791786.tar.bz2 |
Fix use of uninitialised scroll values.
Diffstat (limited to 'atari')
-rwxr-xr-x | atari/rootwin.c | 3 |
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); |