diff options
author | Ton Roosendaal <ton@blender.org> | 2005-01-31 21:37:54 +0300 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2005-01-31 21:37:54 +0300 |
commit | 78f133b8a7bc1db280d5d052bf83d7ea959cd1cb (patch) | |
tree | d11f1a84c75be2820736e60239206cac4312ef93 /source/blender/src/drawnla.c | |
parent | 732f608e33df86e973fa3f3c5059a3be0c6cea67 (diff) |
Bug found by Bassam; in certain occasions reading a file calls setscreen()
without the (ugly) global curarea being set.
Fixed the crash in his sample by nicely passing on 'current area' as
argument.
Diffstat (limited to 'source/blender/src/drawnla.c')
-rw-r--r-- | source/blender/src/drawnla.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/src/drawnla.c b/source/blender/src/drawnla.c index f4da9655c5a..7c3f21c9cae 100644 --- a/source/blender/src/drawnla.c +++ b/source/blender/src/drawnla.c @@ -537,7 +537,7 @@ void drawnlaspace(ScrArea *sa, void *spacedata) glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA) ; - calc_scrollrcts(G.v2d, curarea->winx, curarea->winy); + calc_scrollrcts(sa, G.v2d, curarea->winx, curarea->winy); /* clear all, becomes the color for left part */ BIF_GetThemeColor3fv(TH_HEADER, col); |