* Gave the region icons a bit more padding for the clickable area
authorMatt Ebb <matt@mke3.net>
Sun, 13 Sep 2009 03:08:46 +0000 (03:08 +0000)
committerMatt Ebb <matt@mke3.net>
Sun, 13 Sep 2009 03:08:46 +0000 (03:08 +0000)
source/blender/editors/screen/area.c
source/blender/editors/space_view3d/view3d_draw.c

index 93348d9..81f0661 100644 (file)
@@ -462,7 +462,7 @@ static void area_azone_initialize(ScrArea *sa)
 }
 
 #define AZONEPAD_EDGE  4
-#define AZONEPAD_ICON  6
+#define AZONEPAD_ICON  8
 static void region_azone_edge(AZone *az, ARegion *ar)
 {
        if(az->edge=='t') {
@@ -511,15 +511,15 @@ static void region_azone_icon(ScrArea *sa, AZone *az, ARegion *ar)
        }
        else if(az->edge=='l') {
                az->x1= ar->winrct.xmin - 2*AZONEPAD_ICON;
-               az->y1= ar->winrct.ymax - 3*AZONEPAD_ICON;
+               az->y1= ar->winrct.ymax - 2*AZONEPAD_ICON;
                az->x2= ar->winrct.xmin - AZONEPAD_ICON;
-               az->y2= ar->winrct.ymax - 2*AZONEPAD_ICON;
+               az->y2= ar->winrct.ymax - AZONEPAD_ICON;
        }
        else { // if(az->edge=='r') {
                az->x1= ar->winrct.xmax + AZONEPAD_ICON;
-               az->y1= ar->winrct.ymax - 3*AZONEPAD_ICON;
+               az->y1= ar->winrct.ymax - 2*AZONEPAD_ICON;
                az->x2= ar->winrct.xmax + 2*AZONEPAD_ICON;
-               az->y2= ar->winrct.ymax - 2*AZONEPAD_ICON;
+               az->y2= ar->winrct.ymax - AZONEPAD_ICON;
        }
 
        BLI_init_rcti(&az->rect, az->x1, az->x2, az->y1, az->y2);
index 8571d36..918aebd 100644 (file)
@@ -742,7 +742,7 @@ static void draw_viewport_name(ARegion *ar, View3D *v3d)
 
        if (printable) {
                UI_ThemeColor(TH_TEXT_HI);
-               BLF_draw_default(20,  ar->winy-20, 0.0f, printable);
+               BLF_draw_default(22,  ar->winy-17, 0.0f, printable);
        }
 
        if (v3d->localview) {