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

View File

@@ -55,7 +55,7 @@ void ipoco_to_areaco_noclip (struct View2D *v2d, float *vec, short *mval);
void view2d_zoom (struct View2D *v2d, float factor, int winx, int winy);
void test_view2d (struct View2D *v2d, int winx, int winy);
void calc_scrollrcts (struct View2D *v2d, int winx, int winy);
void calc_scrollrcts (struct ScrArea *sa, struct View2D *v2d, int winx, int winy);
int in_ipo_buttons(void);
void drawscroll(int disptype);