[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [23166] trunk/blender/source/blender/ editors: * Gave the region icons a bit more padding for the clickable area
Matt Ebb
matt at mke3.net
Sun Sep 13 05:08:49 CEST 2009
Revision: 23166
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=23166
Author: broken
Date: 2009-09-13 05:08:46 +0200 (Sun, 13 Sep 2009)
Log Message:
-----------
* Gave the region icons a bit more padding for the clickable area
Modified Paths:
--------------
trunk/blender/source/blender/editors/screen/area.c
trunk/blender/source/blender/editors/space_view3d/view3d_draw.c
Modified: trunk/blender/source/blender/editors/screen/area.c
===================================================================
--- trunk/blender/source/blender/editors/screen/area.c 2009-09-13 02:14:41 UTC (rev 23165)
+++ trunk/blender/source/blender/editors/screen/area.c 2009-09-13 03:08:46 UTC (rev 23166)
@@ -462,7 +462,7 @@
}
#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 @@
}
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);
Modified: trunk/blender/source/blender/editors/space_view3d/view3d_draw.c
===================================================================
--- trunk/blender/source/blender/editors/space_view3d/view3d_draw.c 2009-09-13 02:14:41 UTC (rev 23165)
+++ trunk/blender/source/blender/editors/space_view3d/view3d_draw.c 2009-09-13 03:08:46 UTC (rev 23166)
@@ -742,7 +742,7 @@
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) {
More information about the Bf-blender-cvs
mailing list