From edabf3efa1131d31b60826bc89cf474ddb4b1674 Mon Sep 17 00:00:00 2001 From: darkvater Date: Wed, 22 Dec 2004 21:37:28 +0000 Subject: (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 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/viewport.h b/viewport.h index b21a4aa64..826e8c6c0 100644 --- a/viewport.h +++ b/viewport.h @@ -99,7 +99,8 @@ typedef struct TileHighlightData { 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; -- cgit v1.2.3-54-g00ecf