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.
This commit is contained in:
2005-01-31 18:37:54 +00:00
parent 732f608e33
commit 78f133b8a7
9 changed files with 13 additions and 13 deletions

View File

@@ -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);