summaryrefslogtreecommitdiff
path: root/atari
diff options
context:
space:
mode:
authorOle Loots <ole@monochrom.net>2011-03-01 19:28:12 +0000
committerOle Loots <ole@monochrom.net>2011-03-01 19:28:12 +0000
commitca73991ef597d581cdb158816da18ce751e96bed (patch)
treee41f39031aa38da02d3cf4de3bd93da0873024bc /atari
parenta80af90142526d5b026a89fdbac205e93e19d25a (diff)
downloadnetsurf-ca73991ef597d581cdb158816da18ce751e96bed.tar.gz
netsurf-ca73991ef597d581cdb158816da18ce751e96bed.tar.bz2
cosmetic
svn path=/trunk/netsurf/; revision=11874
Diffstat (limited to 'atari')
-rwxr-xr-xatari/browser.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/atari/browser.c b/atari/browser.c
index fe3e975df..73e8a1628 100755
--- a/atari/browser.c
+++ b/atari/browser.c
@@ -909,7 +909,7 @@ void browser_redraw_caret( struct gui_window * gw, GRECT * area )
clip.x0 = caret.g_x - 1;
clip.y0 = caret.g_y - 1;
clip.x1 = caret.g_x + caret.g_w + 1;
- clip.y1 = caret.g_y + caret.g_h + 1;
+ clip.y1 = caret.g_y + caret.g_h + 1;
/* store old clip before adjusting it: */
plot_get_clip( &old_clip );
/* clip to cursor: */
@@ -933,13 +933,10 @@ void browser_redraw( struct gui_window * gw )
short todo[4];
struct rect clip;
- if( b->attached == false ) {
+ if( b->attached == false || b->bw->current_content == NULL ) {
return;
}
- if( b->bw->current_content == NULL )
- return;
-
browser_get_rect(gw, BR_CONTENT, &bwrect);
plotter->resize(plotter, bwrect.g_w, bwrect.g_h);