View2D: Code cleanup - UI_view2d_status_enforce()
authorJoshua Leung <aligorith@gmail.com>
Sat, 6 Dec 2008 09:25:42 +0000 (09:25 +0000)
committerJoshua Leung <aligorith@gmail.com>
Sat, 6 Dec 2008 09:25:42 +0000 (09:25 +0000)
commitafb45ae7cf67d18c2749a172c2a4ec5d57ce8003
tree989660478ca582a862216a00bcf4f4bf40772075
parent8a04f039adc852644bbdc8231353cce215692874
View2D: Code cleanup - UI_view2d_status_enforce()

This commit *should* bring UI_view2d_status_enforce() (formerly known in pre 2.5 as test_view2d) under control again.
I've attempted to reduce the amount of duplicated code here, so hopefully there won't be any nasty bugs that will show up in some of the other views when they are ported.

Summary of changes:
* Restored V2D_KEEPZOOM flag which I had previously removed, having misunderstood its function.
* Fixed bugs with resizing Outliner window
* Outliner width is now columns + 1 again. Documented reasons for this (otherwise, stuff gets covered by scrollbars, but we cannot see it)
source/blender/blenloader/intern/readfile.c
source/blender/editors/include/UI_view2d.h
source/blender/editors/interface/view2d.c
source/blender/editors/space_outliner/space_outliner.c
source/blender/makesdna/DNA_view2d_types.h