From 39727d6a81a0aca1c7eec4b44b4fc49d43c2db47 Mon Sep 17 00:00:00 2001 From: darkvater Date: Wed, 22 Dec 2004 21:37:28 +0000 Subject: [PATCH] (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 b21a4aa642..826e8c6c08 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;