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/drawsound.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/drawsound.c')
-rw-r--r-- | source/blender/src/drawsound.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/src/drawsound.c b/source/blender/src/drawsound.c index d08f5d0ee0e..69089bc0cb4 100644 --- a/source/blender/src/drawsound.c +++ b/source/blender/src/drawsound.c @@ -200,7 +200,7 @@ void drawsoundspace(ScrArea *sa, void *spacedata) glClearColor(col[0], col[1], col[2], 0.0); glClear(GL_COLOR_BUFFER_BIT); - calc_scrollrcts(G.v2d, curarea->winx, curarea->winy); + calc_scrollrcts(sa, G.v2d, curarea->winx, curarea->winy); if(curarea->winx>SCROLLB+10 && curarea->winy>SCROLLH+10) { if(G.v2d->scroll) { |