summaryrefslogtreecommitdiff
path: root/viewport.h
diff options
context:
space:
mode:
Diffstat (limited to 'viewport.h')
-rw-r--r--viewport.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/viewport.h b/viewport.h
index 018a1693d..b9d1fce7e 100644
--- a/viewport.h
+++ b/viewport.h
@@ -16,6 +16,8 @@ struct ViewPort {
void SetSelectionRed(bool);
/* viewport.c */
+void InitViewports(void);
+void DeleteWindowViewport(Window *w);
void AssignWindowViewport(Window *w, int x, int y,
int width, int height, uint32 follow_flags, byte zoom);
ViewPort *IsPtInWindowViewport(const Window *w, int x, int y);
@@ -139,11 +141,6 @@ typedef struct TileHighlightData {
// common button handler
bool HandlePlacePushButton(Window *w, int widget, uint32 cursor, int mode, PlaceProc *placeproc);
-/* viewport.c */
-// XXX - maximum viewports is maximum windows - 2 (main toolbar + status bar)
-VARDEF ViewPort _viewports[25 - 2];
-VARDEF uint32 _active_viewports;
-
VARDEF Point _tile_fract_coords;
extern TileHighlightData _thd;