mirror of
https://github.com/netsurf-browser/netsurf
synced 2025-02-17 15:04:18 +03:00
Remove redundant bw->current_content check.
svn path=/trunk/netsurf/; revision=12696
This commit is contained in:
parent
088c91b127
commit
a7d4f08b77
@ -754,14 +754,10 @@ void gui_window_redraw_window(struct gui_window *g)
|
|||||||
|
|
||||||
void gui_window_update_box(struct gui_window *g, const struct rect *rect)
|
void gui_window_update_box(struct gui_window *g, const struct rect *rect)
|
||||||
{
|
{
|
||||||
hlcache_handle *h = g->bw->current_content;
|
|
||||||
bool use_buffer;
|
bool use_buffer;
|
||||||
int x0, y0, x1, y1;
|
int x0, y0, x1, y1;
|
||||||
struct update_box *cur;
|
struct update_box *cur;
|
||||||
|
|
||||||
if (!h)
|
|
||||||
return;
|
|
||||||
|
|
||||||
x0 = floorf(rect->x0 * 2 * g->bw->scale);
|
x0 = floorf(rect->x0 * 2 * g->bw->scale);
|
||||||
y0 = -ceilf(rect->y1 * 2 * g->bw->scale);
|
y0 = -ceilf(rect->y1 * 2 * g->bw->scale);
|
||||||
x1 = ceilf(rect->x1 * 2 * g->bw->scale) + 1;
|
x1 = ceilf(rect->x1 * 2 * g->bw->scale) + 1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user