2007-05-30 21:56:52 +00:00
|
|
|
/* ScummVM - Graphic Adventure Engine
|
|
|
|
*
|
|
|
|
* ScummVM is the legal property of its developers, whose names
|
|
|
|
* are too numerous to list here. Please refer to the COPYRIGHT
|
|
|
|
* file distributed with this source distribution.
|
2004-01-26 08:20:26 +00:00
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License
|
|
|
|
* as published by the Free Software Foundation; either version 2
|
|
|
|
* of the License, or (at your option) any later version.
|
2014-02-18 02:34:27 +01:00
|
|
|
*
|
2004-01-26 08:20:26 +00:00
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
2014-02-18 02:34:27 +01:00
|
|
|
*
|
2004-01-26 08:20:26 +00:00
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software
|
2005-10-18 01:30:26 +00:00
|
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
2004-01-26 08:20:26 +00:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef WINCE_SDL_H
|
|
|
|
#define WINCE_SDL_H
|
|
|
|
|
|
|
|
#include "common/scummsys.h"
|
|
|
|
#include "common/system.h"
|
2006-06-06 19:31:49 +00:00
|
|
|
#include "graphics/scaler.h"
|
2007-09-26 19:12:17 +00:00
|
|
|
#include "backends/platform/sdl/sdl.h"
|
2004-01-26 08:20:26 +00:00
|
|
|
|
2009-11-18 16:02:10 +00:00
|
|
|
#include "backends/platform/wince/CEgui/CEGUI.h"
|
|
|
|
#include "backends/platform/wince/CEkeys/CEKeys.h"
|
2009-11-18 15:22:15 +00:00
|
|
|
#include "backends/platform/wince/CEDevice.h"
|
2004-01-26 08:20:26 +00:00
|
|
|
|
2011-03-08 12:53:31 +01:00
|
|
|
#include "backends/graphics/wincesdl/wincesdl-graphics.h"
|
|
|
|
#include "backends/events/wincesdl/wincesdl-events.h"
|
|
|
|
#include "backends/timer/default/default-timer.h"
|
|
|
|
#include "backends/fs/windows/windows-fs-factory.h"
|
2004-12-23 01:15:27 +00:00
|
|
|
|
2006-10-10 15:15:00 +00:00
|
|
|
// defines used for implementing the raw frame buffer access method (2003+)
|
|
|
|
#define GETRAWFRAMEBUFFER 0x00020001
|
|
|
|
#define FORMAT_565 1
|
|
|
|
#define FORMAT_555 2
|
|
|
|
#define FORMAT_OTHER 3
|
|
|
|
|
2004-03-28 20:31:18 +00:00
|
|
|
class OSystem_WINCE3 : public OSystem_SDL {
|
2004-01-26 08:20:26 +00:00
|
|
|
public:
|
|
|
|
OSystem_WINCE3();
|
2011-03-08 12:53:31 +01:00
|
|
|
virtual ~OSystem_WINCE3();
|
2004-01-26 08:20:26 +00:00
|
|
|
|
2009-01-04 16:07:19 +00:00
|
|
|
void setGraphicsModeIntern();
|
2006-06-06 19:31:49 +00:00
|
|
|
void initBackend();
|
|
|
|
|
2008-12-18 08:06:08 +00:00
|
|
|
// Overloaded from SDL backend
|
2011-07-17 22:42:45 +02:00
|
|
|
void init();
|
2004-01-26 08:20:26 +00:00
|
|
|
void quit();
|
2018-05-27 22:24:55 +01:00
|
|
|
virtual void logMessage(LogMessageType::Type type, const char *message);
|
2011-06-13 04:39:38 +02:00
|
|
|
virtual Common::String getSystemLanguage() const;
|
|
|
|
|
2006-11-12 11:47:43 +00:00
|
|
|
// Overloaded from OSystem
|
2009-07-12 15:59:27 +00:00
|
|
|
void engineInit();
|
2009-10-08 19:41:38 +00:00
|
|
|
void getTimeAndDate(TimeDate &t) const;
|
2010-11-28 15:44:03 +00:00
|
|
|
|
|
|
|
virtual Common::String getDefaultConfigFileName();
|
2008-12-18 08:06:08 +00:00
|
|
|
|
2004-01-26 08:20:26 +00:00
|
|
|
void swap_sound_master();
|
2004-05-09 15:02:10 +00:00
|
|
|
|
2004-05-30 13:24:51 +00:00
|
|
|
static int getScreenWidth();
|
|
|
|
static int getScreenHeight();
|
|
|
|
static void initScreenInfos();
|
|
|
|
static bool isOzone();
|
2004-01-26 08:20:26 +00:00
|
|
|
|
2011-03-09 03:02:46 +01:00
|
|
|
static bool _soundMaster; // turn off sound after all calculations
|
|
|
|
// static since needed by the SDL callback
|
2004-01-26 08:20:26 +00:00
|
|
|
|
2011-03-08 12:53:31 +01:00
|
|
|
protected:
|
|
|
|
void initSDL();
|
|
|
|
Audio::MixerImpl *_mixer;
|
2005-10-16 22:52:46 +00:00
|
|
|
|
2004-01-26 08:20:26 +00:00
|
|
|
private:
|
2004-01-28 01:12:48 +00:00
|
|
|
void check_mappings();
|
2004-01-26 08:20:26 +00:00
|
|
|
|
2011-03-09 03:02:46 +01:00
|
|
|
bool _forcePanelInvisible; // force panel visibility for some cases
|
2004-05-30 13:24:51 +00:00
|
|
|
|
|
|
|
static int _platformScreenWidth;
|
|
|
|
static int _platformScreenHeight;
|
2011-03-09 03:02:46 +01:00
|
|
|
static bool _isOzone; // true if running on Windows 2003 SE
|
2004-12-21 00:31:58 +00:00
|
|
|
|
2004-01-26 08:20:26 +00:00
|
|
|
};
|
|
|
|
|
2004-05-30 13:30:29 +00:00
|
|
|
#endif
|