diff options
author | Matt Ebb <matt@mke3.net> | 2009-09-13 07:08:46 +0400 |
---|---|---|
committer | Matt Ebb <matt@mke3.net> | 2009-09-13 07:08:46 +0400 |
commit | 896ada37ac2d9913f514a772b8e2356bac2b32ab (patch) | |
tree | 3b6a9e9e29d16634df3b34c984121bbfb9a5965c /source/blender/editors/screen/area.c | |
parent | 57ec59fb85a08371d360e9633e8f14ec3f882534 (diff) |
* Gave the region icons a bit more padding for the clickable area
Diffstat (limited to 'source/blender/editors/screen/area.c')
-rw-r--r-- | source/blender/editors/screen/area.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/source/blender/editors/screen/area.c b/source/blender/editors/screen/area.c index 93348d9d556..81f06611c39 100644 --- a/source/blender/editors/screen/area.c +++ b/source/blender/editors/screen/area.c @@ -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); |