Bugfix [#27054] 2.57 icons and buttons aren't perfectly centered
authorJoshua Leung <aligorith@gmail.com>
Wed, 20 Apr 2011 10:10:07 +0000 (10:10 +0000)
committerJoshua Leung <aligorith@gmail.com>
Wed, 20 Apr 2011 10:10:07 +0000 (10:10 +0000)
This seems to make things look a bit better. What a difference 1px
makes...

source/blender/editors/screen/area.c

index 5a80799fc3b7f1d88dd1827ac004999a61b30bd5..1882d8491165d2bb411a7f14553b6b119dda1c82 100644 (file)
@@ -1457,7 +1457,7 @@ void ED_region_header(const bContext *C, ARegion *ar)
        UI_view2d_view_ortho(&ar->v2d);
 
        xco= maxco= 8;
-       yco= HEADERY-3;
+       yco= HEADERY-4;
 
        /* draw all headers types */
        for(ht= ar->type->headertypes.first; ht; ht= ht->next) {