diff options
author | Ole Loots <ole@monochrom.net> | 2013-01-11 02:12:30 +0100 |
---|---|---|
committer | Ole Loots <ole@monochrom.net> | 2013-01-11 02:12:30 +0100 |
commit | adcbbbe88033e245732b73bd6319c0cb9b4da9b3 (patch) | |
tree | 4e52b45db9be0da17aeb625570f084fb9695fbf4 /atari/gemtk/guiwin.c | |
parent | cca5bb43049548daee486b1490ef79101f4c93d1 (diff) | |
download | netsurf-adcbbbe88033e245732b73bd6319c0cb9b4da9b3.tar.gz netsurf-adcbbbe88033e245732b73bd6319c0cb9b4da9b3.tar.bz2 |
Started to move the search form into the browser window.
Diffstat (limited to 'atari/gemtk/guiwin.c')
-rw-r--r-- | atari/gemtk/guiwin.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/atari/gemtk/guiwin.c b/atari/gemtk/guiwin.c index ad12499b1..17c577ec0 100644 --- a/atari/gemtk/guiwin.c +++ b/atari/gemtk/guiwin.c @@ -348,6 +348,7 @@ static short preproc_mu_button(GUIWIN * gw, EVMULT_OUT *ev_out, short msg[8]) slid = guiwin_get_scroll_info(gw); + // adjust form position (considering window and scroll position): gw->form[gw->form_idx].ob_x = content_area.g_x - (slid->x_pos * slid->x_unit_px); gw->form[gw->form_idx].ob_y = content_area.g_y - @@ -368,6 +369,10 @@ static short preproc_mu_button(GUIWIN * gw, EVMULT_OUT *ev_out, short msg[8]) if (type == G_FTEXT || type == G_FBOXTEXT) { + // edit field handling, this causes ugly redraws when the + // form is scrolled and larger than the window in which + // it is attached. + // report mouse click to the tree: retval = form_button(gw->form, gw->form_focus_obj, ev_out->emo_mclicks, &nextobj); |