Clean up hard-coded hidpi scale factor in debug codepath
authorOmari Stephens <xsdg@xsdg.org>
Mon, 29 Apr 2024 18:11:51 +0000 (18:11 +0000)
committerColin Clark <colin.clark@cclark.uk>
Tue, 30 Apr 2024 09:12:11 +0000 (10:12 +0100)
src/renderer-tiles.cc

index ff3e5df..0ab5c27 100644 (file)
@@ -1167,7 +1167,7 @@ static gboolean rt_source_tile_render(RendererTiles *rt, ImageTile *it,
 
 #if 0
        // Draws red over draw region, to check for leaks (regions not filled)
-       pixbuf_set_rect_fill(it->pixbuf, x, y, 2*w, 2*h, 255, 0, 0, 255);
+       pixbuf_set_rect_fill(it->pixbuf, x, y, rt->hidpi_scale * w, rt->hidpi_scale * h, 255, 0, 0, 255);
 #endif
 
        // Since the RendererTiles ImageTiles and PixbufRenderer SourceTiles are different