Skip to content

Commit 6002597

Browse files
qarkaicaclark
authored andcommitted
Rename couple functions in renderer-tiles according to first parameter type
1 parent 72dcafd commit 6002597

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/renderer-tiles.cc

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1816,7 +1816,7 @@ void rt_queue(RendererTiles *rt, gint x, gint y, gint w, gint h,
18161816
}
18171817
}
18181818

1819-
void rt_scroll(void *renderer, gint x_off, gint y_off)
1819+
void renderer_scroll(void *renderer, gint x_off, gint y_off)
18201820
{
18211821
auto rt = static_cast<RendererTiles *>(renderer);
18221822
PixbufRenderer *pr = rt->pr;
@@ -1929,8 +1929,8 @@ void renderer_area_changed(void *renderer, GdkRectangle src)
19291929
rt_queue(rt, x1, y1, x2 - x1, y2 - y1, FALSE, TILE_RENDER_AREA, TRUE, TRUE);
19301930
}
19311931

1932-
void renderer_redraw(RendererTiles *rt, gint x, gint y, gint w, gint h,
1933-
gint clamp, ImageRenderType render, gboolean new_data, gboolean only_existing)
1932+
void rt_redraw(RendererTiles *rt, gint x, gint y, gint w, gint h,
1933+
gint clamp, ImageRenderType render, gboolean new_data, gboolean only_existing)
19341934
{
19351935
PixbufRenderer *pr = rt->pr;
19361936

@@ -1959,10 +1959,10 @@ void renderer_update_zoom(void *renderer, gboolean lazy)
19591959
auto rt = static_cast<RendererTiles *>(renderer);
19601960
PixbufRenderer *pr = rt->pr;
19611961

1962-
rt_tile_invalidate_all(static_cast<RendererTiles *>(renderer));
1962+
rt_tile_invalidate_all(rt);
19631963
if (!lazy)
19641964
{
1965-
renderer_redraw(static_cast<RendererTiles *>(renderer), 0, 0, pr->width, pr->height, TRUE, TILE_RENDER_ALL, TRUE, FALSE);
1965+
rt_redraw(rt, 0, 0, pr->width, pr->height, TRUE, TILE_RENDER_ALL, TRUE, FALSE);
19661966
}
19671967
rt_border_clear(rt);
19681968
}
@@ -2086,7 +2086,7 @@ gboolean rt_size_allocate_cb(GtkWidget *widget, GdkRectangle *allocation, gpoin
20862086
cairo_destroy(cr);
20872087
cairo_surface_destroy(old_surface);
20882088

2089-
renderer_redraw(rt, allocation->x, allocation->y, allocation->width, allocation->height, FALSE, TILE_RENDER_ALL, FALSE, FALSE);
2089+
rt_redraw(rt, allocation->x, allocation->y, allocation->width, allocation->height, FALSE, TILE_RENDER_ALL, FALSE, FALSE);
20902090
}
20912091

20922092
return FALSE;
@@ -2151,7 +2151,7 @@ RendererFuncs *renderer_tiles_new(PixbufRenderer *pr)
21512151
rt->f.free = renderer_free;
21522152
rt->f.update_zoom = renderer_update_zoom;
21532153
rt->f.invalidate_region = renderer_invalidate_region;
2154-
rt->f.scroll = rt_scroll;
2154+
rt->f.scroll = renderer_scroll;
21552155
rt->f.update_viewport = renderer_update_viewport;
21562156

21572157

0 commit comments

Comments
 (0)