Mercurial > fife-parpg
comparison engine/core/video/renderbackend.cpp @ 642:6e2151325017
* Added the ability to query the current running screen mode
* Added a method to detect the closest supported screen mode (not complete yet). If no matching screen modes are detected an exception is thrown.
* Small change to the way the screen is initialized. The screen mode now MUST be in the supported screen mode list before the screen will initialize.
author | prock@33b003aa-7bff-0310-803a-e67f0ece8222 |
---|---|
date | Fri, 08 Oct 2010 21:22:02 +0000 |
parents | 3094988564d5 |
children | 01acc9fc35ea |
comparison
equal
deleted
inserted
replaced
641:52708806f35c | 642:6e2151325017 |
---|---|
41 m_colorkey(colorkey) { | 41 m_colorkey(colorkey) { |
42 } | 42 } |
43 | 43 |
44 | 44 |
45 RenderBackend::~RenderBackend() { | 45 RenderBackend::~RenderBackend() { |
46 } | |
47 | |
48 Image* RenderBackend::createMainScreen(const ScreenMode& mode, const std::string& title, const std::string& icon) | |
49 { | |
50 bool fs = (mode.getSDLFlags() & SDL_FULLSCREEN) ? true : false; | |
51 return createMainScreen(mode.getWidth(), mode.getHeight(), mode.getBPP(), fs, title, icon); | |
52 } | 46 } |
53 | 47 |
54 void RenderBackend::deinit() { | 48 void RenderBackend::deinit() { |
55 delete m_screen; | 49 delete m_screen; |
56 m_screen = NULL; | 50 m_screen = NULL; |