diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-08-19 14:54:07 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-08-19 14:54:07 +0400 |
commit | 78f393f0c3789221603cde786b66b04bcf164594 (patch) | |
tree | 8188e195f3ab7d7c29a0d36b6135013812468218 /source/blender/editors/screen | |
parent | 1f40c0ffa71f07d75c4aecccf33c8a0cbf5e085a (diff) | |
parent | 5f341a846b78df701686a56da7caf61c087a716f (diff) |
svn merge ^/trunk/blender -r49750:49800
Diffstat (limited to 'source/blender/editors/screen')
-rw-r--r-- | source/blender/editors/screen/area.c | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/source/blender/editors/screen/area.c b/source/blender/editors/screen/area.c index a57659f97eb..13f2aa1c126 100644 --- a/source/blender/editors/screen/area.c +++ b/source/blender/editors/screen/area.c @@ -167,6 +167,9 @@ void ED_area_overdraw_flush(ScrArea *sa, ARegion *ar) } } +/** + * \brief Corner widgets use for dragging and splitting the view. + */ static void area_draw_azone(short x1, short y1, short x2, short y2) { int dx = x2 - x1; @@ -592,13 +595,17 @@ void ED_area_headerprint(ScrArea *sa, const char *str) /* ************************************************************ */ -static void area_azone_initialize(ScrArea *sa) +static void area_azone_initialize(bScreen *screen, ScrArea *sa) { AZone *az; /* reinitalize entirely, regions add azones too */ BLI_freelistN(&sa->actionzones); - + + if (screen->full != SCREENNORMAL) { + return; + } + /* set area action zones */ az = (AZone *)MEM_callocN(sizeof(AZone), "actionzone"); BLI_addtail(&(sa->actionzones), az); @@ -1231,7 +1238,7 @@ void ED_area_initialize(wmWindowManager *wm, wmWindow *win, ScrArea *sa) area_calc_totrct(sa, win->sizex, win->sizey); /* clear all azones, add the area triange widgets */ - area_azone_initialize(sa); + area_azone_initialize(win->screen, sa); /* region rect sizes */ rect = sa->totrct; |