Commit 5af8cc1d authored by Michael Natterer's avatar Michael Natterer 😴

app: translate the cr by allocation.x,y instead of doing this while drawing

parent b69eea8c
......@@ -189,9 +189,11 @@ gimp_palette_view_expose (GtkWidget *widget,
gdk_cairo_region (cr, eevent->region);
cairo_clip (cr);
cairo_translate (cr, allocation.x, allocation.y);
cairo_rectangle (cr,
allocation.x + col * renderer->cell_width + 0.5,
allocation.y + row * renderer->cell_height + 0.5,
col * renderer->cell_width + 0.5,
row * renderer->cell_height + 0.5,
renderer->cell_width,
renderer->cell_height);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment