diff options
author | Joshua Leung <aligorith@gmail.com> | 2009-01-05 03:38:17 +0300 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2009-01-05 03:38:17 +0300 |
commit | 91be2ba9b556a88877c4fa2f3c6ecd339f7e626a (patch) | |
tree | 7a85bfbb90222db1e6c389c7787d0189b479f143 /source/blender/editors/interface/view2d.c | |
parent | 33dd818310c9a43edc59bb28df9fb4803a20c5e7 (diff) |
2.5 - Various Cleanups/Fixes
* Animation channels - cleaned up the code for selecting channels (removed various TODO stuff that's going to be replaced by something better later). Also, added back the ctrl-shift select feature for groups, which should be extended for other channels too at some stage.
* Outliner - added missing flags to do-versions, and replaced the width calculations with the rna-width version for now, as that uses constant width of 100 with OL_X*indention
Diffstat (limited to 'source/blender/editors/interface/view2d.c')
-rw-r--r-- | source/blender/editors/interface/view2d.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/editors/interface/view2d.c b/source/blender/editors/interface/view2d.c index e92b2d031b6..b412641284d 100644 --- a/source/blender/editors/interface/view2d.c +++ b/source/blender/editors/interface/view2d.c @@ -177,6 +177,7 @@ void UI_view2d_region_reinit(View2D *v2d, short type, int winx, int winy) else if (v2d->scroll & V2D_SCROLL_RIGHT) { /* on right-hand edge of region */ v2d->vert= v2d->mask; + v2d->vert.xmax++; /* one pixel extra... was having leaving a minor gap... */ v2d->vert.xmin= v2d->vert.xmax - V2D_SCROLL_WIDTH; v2d->mask.xmax= v2d->vert.xmin - 1; } @@ -675,7 +676,7 @@ void UI_view2d_totRect_set (View2D *v2d, int width, int height) height= abs(height); if (ELEM3(0, v2d, width, height)) { - printf("Error: View2D totRect set exiting: %p %d %d \n", v2d, width, height); // XXX temp debug string + printf("Error: View2D totRect set exiting: v2d=%p width=%d height=%d \n", v2d, width, height); // XXX temp debug info return; } |