diff options
author | Hans Goudey <h.goudey@me.com> | 2020-11-30 02:10:47 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2020-11-30 02:10:47 +0300 |
commit | 748f468fdc7b80b7e84a854c63443050fcacad9c (patch) | |
tree | a699415443baf6df330e3ab5542e071dbcc7dcee /source/blender/draw/intern/draw_manager.c | |
parent | dca9aa0053f7d711c1b42a4f2042827a1e286bea (diff) |
Cleanup: Use "region" for ARegion variable names
As proposed in T74432 and already implemented in several commits,
"region" is the preferred name for `ARegion` variables, rather than
any variant of "ar". This commit changes a few "ar" variables that have
popped up over time and also adjusted names of variants like "arnew".
Diffstat (limited to 'source/blender/draw/intern/draw_manager.c')
-rw-r--r-- | source/blender/draw/intern/draw_manager.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/draw/intern/draw_manager.c b/source/blender/draw/intern/draw_manager.c index 99f102680e5..988975bd399 100644 --- a/source/blender/draw/intern/draw_manager.c +++ b/source/blender/draw/intern/draw_manager.c @@ -1512,10 +1512,10 @@ void DRW_draw_view(const bContext *C) } else { Depsgraph *depsgraph = CTX_data_expect_evaluated_depsgraph(C); - ARegion *ar = CTX_wm_region(C); - GPUViewport *viewport = WM_draw_region_get_bound_viewport(ar); + ARegion *region = CTX_wm_region(C); + GPUViewport *viewport = WM_draw_region_get_bound_viewport(region); drw_state_prepare_clean_for_draw(&DST); - DRW_draw_render_loop_2d_ex(depsgraph, ar, viewport, C); + DRW_draw_render_loop_2d_ex(depsgraph, region, viewport, C); } } |