1 /* ScummVM - Graphic Adventure Engine 2 * 3 * ScummVM is the legal property of its developers, whose names 4 * are too numerous to list here. Please refer to the COPYRIGHT 5 * file distributed with this source distribution. 6 * 7 * This program is free software; you can redistribute it and/or 8 * modify it under the terms of the GNU General Public License 9 * as published by the Free Software Foundation; either version 2 10 * of the License, or (at your option) any later version. 11 * 12 * This program is distributed in the hope that it will be useful, 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 * GNU General Public License for more details. 16 * 17 * You should have received a copy of the GNU General Public License 18 * along with this program; if not, write to the Free Software 19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 20 * 21 */ 22 23 #ifndef TSAGE_SCREEN_H 24 #define TSAGE_SCREEN_H 25 26 #include "common/scummsys.h" 27 #include "common/array.h" 28 #include "graphics/screen.h" 29 #include "tsage/graphics.h" 30 31 namespace TsAGE { 32 33 #define SCREEN_WIDTH 320 34 #define SCREEN_HEIGHT 200 35 #define SCREEN_CENTER_X 160 36 #define SCREEN_CENTER_Y 100 37 #define UI_INTERFACE_Y 168 38 39 class Screen : public GfxSurface { 40 /** 41 * Override the addDirtyRect from GfxSurface, since for our screen 42 * class we need to reintroduce the standard Graphics::Screen implementation 43 */ addDirtyRect(const Common::Rect & r)44 virtual void addDirtyRect(const Common::Rect &r) { 45 Graphics::Screen::addDirtyRect(r); 46 } 47 public: 48 /** 49 * Constructor 50 */ 51 Screen(); 52 53 /** 54 * Destructor 55 */ 56 virtual ~Screen(); 57 58 /** 59 * Update the screen 60 */ 61 virtual void update(); 62 }; 63 64 } // End of namespace TsAGE 65 66 #endif /* MADS_SCREEN_H */ 67