diff options
author | Campbell Barton <ideasman42@gmail.com> | 2014-01-20 05:43:56 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2014-01-20 05:45:38 +0400 |
commit | 7436a3f4ce2069b7036cc56901f09270686bc0a5 (patch) | |
tree | b3bdf921189bf9fde4dabcb8cbdf51ab08805417 /source/blender/editors/include | |
parent | 60c53a5bdeff85a3abb72d2df84c44858637db5a (diff) |
Correction for recent commit clearing font cache
- move cache reset into view2d and comment about the rationale for resetting cache there.
- missed other places where view2d zoom level can change (smoothview, borderzoom, home and file reload)
- comment about DPI wasn't correct.
Diffstat (limited to 'source/blender/editors/include')
-rw-r--r-- | source/blender/editors/include/UI_view2d.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/editors/include/UI_view2d.h b/source/blender/editors/include/UI_view2d.h index da26b3d71a4..0d5198ea338 100644 --- a/source/blender/editors/include/UI_view2d.h +++ b/source/blender/editors/include/UI_view2d.h @@ -157,6 +157,8 @@ void UI_view2d_totRect_set_resize(struct View2D *v2d, int width, int height, int /* per tab offsets, returns 1 if tab changed */ bool UI_view2d_tab_set(struct View2D *v2d, int tab); +void UI_view2d_zoom_cache_reset(void); + /* view matrix operations */ void UI_view2d_view_ortho(struct View2D *v2d); void UI_view2d_view_orthoSpecial(struct ARegion *ar, struct View2D *v2d, short xaxis); |