diff options
Diffstat (limited to 'backends/platform/symbian/src/SymbianOS.cpp')
-rw-r--r-- | backends/platform/symbian/src/SymbianOS.cpp | 30 |
1 files changed, 30 insertions, 0 deletions
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); +} |