diff options
author | Campbell Barton <ideasman42@gmail.com> | 2014-02-22 06:07:02 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2014-02-22 06:07:02 +0400 |
commit | 543b57fbeb6592421d3f133d4d40cc161a46894c (patch) | |
tree | 06381d4ba3e5f3dbcc0412a04c1e7dba986ce9a9 /source/blender/editors/include/UI_view2d.h | |
parent | b7fa08f88a260bbd9008c11875cb14052d6c7eb1 (diff) |
Fix T38348: Panel remains scrolled when switching tabs
Diffstat (limited to 'source/blender/editors/include/UI_view2d.h')
-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 3bae255f297..fe8ddee136c 100644 --- a/source/blender/editors/include/UI_view2d.h +++ b/source/blender/editors/include/UI_view2d.h @@ -205,6 +205,8 @@ void UI_view2d_getscale_inverse(struct View2D *v2d, float *x, float *y); void UI_view2d_getcenter(struct View2D *v2d, float *x, float *y); void UI_view2d_setcenter(struct View2D *v2d, float x, float y); +void UI_view2d_offset(struct View2D *v2d, float xfac, float yfac); + short UI_view2d_mouse_in_scrollers(const struct bContext *C, struct View2D *v2d, int x, int y); /* cached text drawing in v2d, to allow pixel-aligned draw as post process */ |