Apply patch 2802544: WINCE: Implement OSystem::engineInit to remove hack

svn-id: r42419
This commit is contained in:
Kostas Nakos 2009-07-12 15:59:27 +00:00
parent 32f1e47eff
commit d6fb5bb922
2 changed files with 2 additions and 8 deletions

7
backends/platform/wince/wince-sdl.cpp Normal file → Executable file
View File

@ -908,18 +908,13 @@ int OSystem_WINCE3::getOutputSampleRate() const {
return _sampleRate;
}
void OSystem_WINCE3::setWindowCaption(const char *caption) {
void OSystem_WINCE3::engineInit() {
check_mappings(); // called here to initialize virtual keys handling
//update_game_settings();
// finalize mixer init
compute_sample_rate();
setupMixer();
FIXME: move check_mappings() etc. calls to engineInit() & engineDone()
// handle the actual event
OSystem_SDL::setWindowCaption(caption);
}
bool OSystem_WINCE3::openCD(int drive) {

View File

@ -84,7 +84,7 @@ public:
// Overloaded from SDL backend (master volume and sample rate subtleties)
void setupMixer();
// Overloaded from OSystem
//void engineInit();
void engineInit();
void getTimeAndDate(struct tm &t) const;
virtual Common::SeekableReadStream *createConfigReadStream();
virtual Common::WriteStream *createConfigWriteStream();
@ -145,7 +145,6 @@ protected:
//int getGraphicsMode() const;
int getDefaultGraphicsMode() const;
void setWindowCaption(const char *caption);
bool openCD(int drive);
int getOutputSampleRate() const;