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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user