mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-25 13:37:02 +03:00
cosmetic
svn path=/trunk/netsurf/; revision=11874
This commit is contained in:
parent
a80af90142
commit
ca73991ef5
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user