diff options
author | Ole Loots <ole@monochrom.net> | 2013-01-10 01:31:36 +0100 |
---|---|---|
committer | Ole Loots <ole@monochrom.net> | 2013-01-10 01:31:36 +0100 |
commit | 26cc21c5c078f411d3b08d71b27e49f0f55a832a (patch) | |
tree | deb31b16b2334b5a36722b44683a7d7af8846383 /atari/gemtk/guiwin.c | |
parent | b6b900920c151f92bc695824ac846d11b137ec39 (diff) | |
download | netsurf-26cc21c5c078f411d3b08d71b27e49f0f55a832a.tar.gz netsurf-26cc21c5c078f411d3b08d71b27e49f0f55a832a.tar.bz2 |
Fixed WM_FULLED handling
Diffstat (limited to 'atari/gemtk/guiwin.c')
-rw-r--r-- | atari/gemtk/guiwin.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/atari/gemtk/guiwin.c b/atari/gemtk/guiwin.c index 8d75c332f..150e5a4b2 100644 --- a/atari/gemtk/guiwin.c +++ b/atari/gemtk/guiwin.c @@ -224,7 +224,7 @@ static short preproc_wm(GUIWIN * gw, EVMULT_OUT *ev_out, short msg[8]) break; case WM_FULLED: - wind_get_grect(gw->handle, WF_FULLXYWH, &g); + wind_get_grect(DESKTOP_HANDLE, WF_WORKXYWH, &g); wind_get_grect(gw->handle, WF_CURRXYWH, &g2); if(g.g_w == g2.g_w && g.g_h == g2.g_h) { wind_get_grect(gw->handle, WF_PREVXYWH, &g); @@ -716,7 +716,7 @@ void guiwin_scroll(GUIWIN *win, short orientation, int units, bool refresh) int abs_pix = 0; GRECT *redraw=NULL, g, g_ro; - guiwin_get_grectw(win, GUIWIN_AREA_CONTENT, &g); + guiwin_get_grect(win, GUIWIN_AREA_CONTENT, &g); g_ro = g; if (orientation == GUIWIN_VSLIDER) { @@ -732,7 +732,7 @@ void guiwin_scroll(GUIWIN *win, short orientation, int units, bool refresh) if(oldpos == newpos) return; - if (units>=vis_units || guiwin_has_intersection(gw, &g_ro)) { + if (units>=vis_units || guiwin_has_intersection(win, &g_ro)) { // send complete redraw redraw = &g_ro; } else { @@ -768,7 +768,7 @@ void guiwin_scroll(GUIWIN *win, short orientation, int units, bool refresh) if(oldpos == newpos) return; - if (units>=vis_units || guiwin_has_intersection(gw, &g_ro)) { + if (units>=vis_units || guiwin_has_intersection(win, &g_ro)) { // send complete redraw redraw = &g_ro; } else { |