(svn r1237) -Fix: Viewports crash when too many viewports are open. Their amount was not updated to reflect the updated windows amount (thx lefti)
authordarkvater
Wed, 22 Dec 2004 21:37:28 +0000
changeset 771 837aa06c7461
parent 770 89dab23f04ca
child 772 7b1f5ae479ac
(svn r1237) -Fix: Viewports crash when too many viewports are open. Their amount was not updated to reflect the updated windows amount (thx lefti)
viewport.h
--- a/viewport.h	Wed Dec 22 21:12:36 2004 +0000
+++ b/viewport.h	Wed Dec 22 21:37:28 2004 +0000
@@ -99,7 +99,8 @@
 bool HandlePlacePushButton(Window *w, int widget, uint32 cursor, int mode, PlaceProc *placeproc);
 
 /* viewport.c */
-VARDEF ViewPort _viewports[18];
+// XXX - maximum viewports is maximum windows - 2 (main toolbar + status bar)
+VARDEF ViewPort _viewports[25 - 2];
 VARDEF TileHighlightData _thd;
 VARDEF uint32 _active_viewports;