Skip to content

Commit 0190af3

Browse files
dterrahejenshannoschwalm
authored andcommitted
don't recalc on small zoom changes
1 parent 41a2325 commit 0190af3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/views/view.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1744,7 +1744,7 @@ void dt_view_paint_surface(cairo_t *cr,
17441744

17451745
if(dev->preview_pipe->output_imgid == dev->image_storage.id
17461746
&& (port->pipe->output_imgid != dev->image_storage.id
1747-
|| backbuf_scale != buf_scale
1747+
|| fabsf(backbuf_scale / buf_scale - 1.0f) > .09f
17481748
|| floor(maxw / 2 / back_scale) - 1 > MIN(- trans_x, trans_x + buf_width)
17491749
|| floor(maxh / 2 / back_scale) - 1 > MIN(- trans_y, trans_y + buf_height))
17501750
&& (port == &dev->full || port == &dev->preview2))

0 commit comments

Comments
 (0)