summaryrefslogtreecommitdiff
path: root/desktop/history_core.c
diff options
context:
space:
mode:
Diffstat (limited to 'desktop/history_core.c')
-rw-r--r--desktop/history_core.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/desktop/history_core.c b/desktop/history_core.c
index ee964ad6d..96a760a9d 100644
--- a/desktop/history_core.c
+++ b/desktop/history_core.c
@@ -628,7 +628,12 @@ bool history_redraw_entry(struct history *history,
plot_font_style_t fstyle = *plot_style_font;
if (clip) {
- if(!plot.clip(x0 + xoffset, y0 + yoffset, x1 + xoffset, y1 + yoffset))
+ struct rect rect;
+ rect.x0 = x0 + xoffset;
+ rect.y0 = y0 + yoffset;
+ rect.x1 = x1 + xoffset;
+ rect.y1 = y1 + yoffset;
+ if(!plot.clip(&rect))
return false;
}