diff options
author | Joshua Leung <aligorith@gmail.com> | 2008-12-14 11:32:21 +0300 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2008-12-14 11:32:21 +0300 |
commit | ffc0089b7b8a9d067ce96c0d0ccde8f85fefb736 (patch) | |
tree | b6612da25ac1b21f3cb992c1988ce80b3f7ed10d /source/blender/editors/space_buttons | |
parent | 213f30078c3c972a9bc42b96ce35ecbaaa9429ca (diff) |
View2D: Cosmetic changes and bugfixes
* Scrollers now draw using nice rounded+shaded style everywhere
* When scrollers 'bubble' completely fills a scroller or is completely out of view, the view zooming using the handles is now only activated if the mouse is within a quarter of the total length of the scroller on either end of the scroller. Otherwise, pan is activated. This should make the scrollers more usable in anim editors.
* Fixed drawing of gridlines in TimeLine - needed to adjust ymin value of cur and tot rects to accomodate for the new mask/cur adjustments as old TimeLines didn't draw with 'real' scrollbars. Also, adjusted min/max values to fit these new tot/cur rect y-sizes.
* Tidying up vars and fixing errors in declaring new View2D types in preparation for simpler method of initialising views...
Diffstat (limited to 'source/blender/editors/space_buttons')
-rw-r--r-- | source/blender/editors/space_buttons/space_buttons.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/source/blender/editors/space_buttons/space_buttons.c b/source/blender/editors/space_buttons/space_buttons.c index ccc8f18d983..9fc7ca123dc 100644 --- a/source/blender/editors/space_buttons/space_buttons.c +++ b/source/blender/editors/space_buttons/space_buttons.c @@ -101,9 +101,8 @@ static SpaceLink *buttons_new(void) sbuts->v2d.minzoom= 0.5f; sbuts->v2d.maxzoom= 1.21f; - sbuts->v2d.scroll= 0; - sbuts->v2d.keepaspect= 1; - sbuts->v2d.keepzoom= 1; + sbuts->v2d.scroll= 0; // TODO: will we need scrollbars? + sbuts->v2d.keepzoom= V2D_KEEPZOOM|V2D_KEEPASPECT; sbuts->v2d.keeptot= 1; sbuts->v2d.cur= sbuts->v2d.tot; |