diff options
author | Joshua Leung <aligorith@gmail.com> | 2008-12-27 08:24:03 +0300 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2008-12-27 08:24:03 +0300 |
commit | b6ac77f6026c027025dbb29f02c2a23b3d25c2d1 (patch) | |
tree | ab92098a59520cfa974afb8627bfab769da84c62 /source/blender/editors/space_action/space_action.c | |
parent | a2369a5e01b9722eea704639f1f2e4f1ea8e8059 (diff) |
2.5 - Assorted comments, and made the default size of the Action Editor more sensible.
Diffstat (limited to 'source/blender/editors/space_action/space_action.c')
-rw-r--r-- | source/blender/editors/space_action/space_action.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/source/blender/editors/space_action/space_action.c b/source/blender/editors/space_action/space_action.c index fec2e28fa0e..b9e7c76cbf4 100644 --- a/source/blender/editors/space_action/space_action.c +++ b/source/blender/editors/space_action/space_action.c @@ -68,8 +68,9 @@ static SpaceLink *action_new(const bContext *C) { - ARegion *ar; + ScrArea *sa= CTX_wm_area(C); SpaceAction *saction; + ARegion *ar; saction= MEM_callocN(sizeof(SpaceAction), "initaction"); saction->spacetype= SPACE_ACTION; @@ -100,12 +101,12 @@ static SpaceLink *action_new(const bContext *C) ar->regiontype= RGN_TYPE_WINDOW; ar->v2d.tot.xmin= -2.0f; - ar->v2d.tot.ymin= -2000.0f; + ar->v2d.tot.ymin= (float)(-sa->winy); ar->v2d.tot.xmax= 100.0f; ar->v2d.tot.ymax= 0.0f; ar->v2d.cur.xmin= -2.0f; - ar->v2d.cur.ymin= -2000.0f; /* ideally this would be the size of the region */ + ar->v2d.cur.ymin= (float)(-sa->winy); ar->v2d.cur.xmax= 100.0f; ar->v2d.cur.ymax= 0.0f; |