From 7c3588ec2a74aa75e3e1a06849b751b3c203d42a Mon Sep 17 00:00:00 2001 From: anotherguest Date: Mon, 25 Nov 2013 16:43:11 +0100 Subject: SYMBIAN OS:Added new engines, updated resolution support. Version number changes --- backends/platform/symbian/src/SymbianOS.cpp | 30 +++++++++++++++++++++++++++++ backends/platform/symbian/src/SymbianOS.h | 2 +- backends/platform/symbian/src/portdefs.h | 2 ++ 3 files changed, 33 insertions(+), 1 deletion(-) (limited to 'backends/platform/symbian/src') diff --git a/backends/platform/symbian/src/SymbianOS.cpp b/backends/platform/symbian/src/SymbianOS.cpp index b1bd976f9e..101b216493 100644 --- a/backends/platform/symbian/src/SymbianOS.cpp +++ b/backends/platform/symbian/src/SymbianOS.cpp @@ -178,6 +178,31 @@ RFs& OSystem_SDL_Symbian::FsSession() { return *_RFs; } +void OSystem_SDL_Symbian::initSize(uint w, uint h, const Graphics::PixelFormat *format ) { + if(w != 640 && w != 320) { + if(w > 320) { + w = 640; + } + else { + w = 320; + } + } + + if(h != 480 && h != 400 && h != 240 && h != 200) { + if(h > 400) { + h = 480; + } else if(h > 240){ + h = 400; + } else if(h > 200) { + h = 240; + } else { + h = 200; + } + } + + ModularBackend::initSize(w, h, format); +} + // Symbian bsearch implementation is flawed void* scumm_bsearch(const void *key, const void *base, size_t nmemb, size_t size, int (*compar)(const void *, const void *)) { // Perform binary search @@ -197,3 +222,8 @@ void* scumm_bsearch(const void *key, const void *base, size_t nmemb, size_t size return NULL; } + +int remove(const char *path) +{ + return unlink(path); +} diff --git a/backends/platform/symbian/src/SymbianOS.h b/backends/platform/symbian/src/SymbianOS.h index 74a102dc15..89ae0d825c 100644 --- a/backends/platform/symbian/src/SymbianOS.h +++ b/backends/platform/symbian/src/SymbianOS.h @@ -39,7 +39,7 @@ public: virtual bool setGraphicsMode(const char *name); virtual Common::String getDefaultConfigFileName(); virtual void setupIcon(); - + virtual void initSize(uint w, uint h, const Graphics::PixelFormat *format ); /** * Returns reference to File session */ diff --git a/backends/platform/symbian/src/portdefs.h b/backends/platform/symbian/src/portdefs.h index 1f9128a54f..f69a90e009 100644 --- a/backends/platform/symbian/src/portdefs.h +++ b/backends/platform/symbian/src/portdefs.h @@ -60,6 +60,8 @@ typedef signed long int int32; #define SMALL_SCREEN_DEVICE #define DISABLE_COMMAND_LINE +#define USE_RGB_COLOR +int remove(const char *path); #if defined(USE_TREMOR) && !defined(USE_VORBIS) #define USE_VORBIS // make sure this one is defined together with USE_TREMOR! -- cgit v1.2.3 From f4137df940c1f0532742f2eb1894db2947944f66 Mon Sep 17 00:00:00 2001 From: anotherguest Date: Tue, 26 Nov 2013 10:39:46 +0100 Subject: SYMBIAN OS:Removed resolution fix from Symbian OS Backend, handle this in SDL backend instead. Add more engines for the split build. --- backends/platform/symbian/src/SymbianOS.cpp | 25 ------------------------- backends/platform/symbian/src/SymbianOS.h | 2 +- 2 files changed, 1 insertion(+), 26 deletions(-) (limited to 'backends/platform/symbian/src') diff --git a/backends/platform/symbian/src/SymbianOS.cpp b/backends/platform/symbian/src/SymbianOS.cpp index 101b216493..ead85a933e 100644 --- a/backends/platform/symbian/src/SymbianOS.cpp +++ b/backends/platform/symbian/src/SymbianOS.cpp @@ -178,31 +178,6 @@ RFs& OSystem_SDL_Symbian::FsSession() { return *_RFs; } -void OSystem_SDL_Symbian::initSize(uint w, uint h, const Graphics::PixelFormat *format ) { - if(w != 640 && w != 320) { - if(w > 320) { - w = 640; - } - else { - w = 320; - } - } - - if(h != 480 && h != 400 && h != 240 && h != 200) { - if(h > 400) { - h = 480; - } else if(h > 240){ - h = 400; - } else if(h > 200) { - h = 240; - } else { - h = 200; - } - } - - ModularBackend::initSize(w, h, format); -} - // Symbian bsearch implementation is flawed void* scumm_bsearch(const void *key, const void *base, size_t nmemb, size_t size, int (*compar)(const void *, const void *)) { // Perform binary search diff --git a/backends/platform/symbian/src/SymbianOS.h b/backends/platform/symbian/src/SymbianOS.h index 89ae0d825c..74a102dc15 100644 --- a/backends/platform/symbian/src/SymbianOS.h +++ b/backends/platform/symbian/src/SymbianOS.h @@ -39,7 +39,7 @@ public: virtual bool setGraphicsMode(const char *name); virtual Common::String getDefaultConfigFileName(); virtual void setupIcon(); - virtual void initSize(uint w, uint h, const Graphics::PixelFormat *format ); + /** * Returns reference to File session */ -- cgit v1.2.3