diff options
author | Ole Loots <ole@monochrom.net> | 2011-11-28 23:23:28 +0000 |
---|---|---|
committer | Ole Loots <ole@monochrom.net> | 2011-11-28 23:23:28 +0000 |
commit | 999410adc818e9bc9e566580b38954720d7dad55 (patch) | |
tree | 6abf17a5a94a9835673e2b5b5a6542087f010737 /atari/treeview.c | |
parent | a7ba1b7ccd1178717e8e4a0546282270ed2fb1d6 (diff) | |
download | netsurf-999410adc818e9bc9e566580b38954720d7dad55.tar.gz netsurf-999410adc818e9bc9e566580b38954720d7dad55.tar.bz2 |
I'm actually trying to simplify the frontend code, changes:
- Optimized browser window caret, uses back-buffer now. ( So no content redraw is scheduled by the frontend just for a caret move )
- Fixed a double redraw issue when the browser reformat is pending and the AES also sends an redraw request because of the resize.
- Started to use netsurfs textarea instead of a custom implementation ( to reduce code size ).
svn path=/trunk/netsurf/; revision=13191
Diffstat (limited to 'atari/treeview.c')
-rwxr-xr-x | atari/treeview.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/atari/treeview.c b/atari/treeview.c index 07fe395fb..1c1c9b9ab 100755 --- a/atari/treeview.c +++ b/atari/treeview.c @@ -104,8 +104,10 @@ static void __CDECL evnt_tv_redraw( WINDOW *win, short buff[8], void * data ) clip.g_y = 0;
}
if( clip.g_h > 0 && clip.g_w > 0 ) {
- atari_treeview_request_redraw( win->xpos*win->w_u + clip.g_x, win->ypos*win->h_u + clip.g_y,
- clip.g_w, clip.g_h, tv
+ atari_treeview_request_redraw( + win->xpos*win->w_u + clip.g_x, + win->ypos*win->h_u + clip.g_y,
+ clip.g_w, clip.g_h, tv );
}
}
@@ -355,7 +357,7 @@ void atari_treeview_redraw( NSTREEVIEW tv) */
void atari_treeview_request_redraw(int x, int y, int w, int h, void *pw)
{
- if (pw != NULL) {
+ if ( pw != NULL ) {
NSTREEVIEW tv = (NSTREEVIEW) pw;
if( tv->redraw == false ){
tv->redraw = true;
|