aboutsummaryrefslogtreecommitdiff
path: root/engines/engine.h
diff options
context:
space:
mode:
authorJody Northup2009-06-27 05:58:44 +0000
committerJody Northup2009-06-27 05:58:44 +0000
commit853aec05ba4485f0bfc90e7515322dfd56a8d4af (patch)
treed088498595ba59e32df821d2f4b96602e7c91779 /engines/engine.h
parentfe65f6163c88b77a5997d47eff842b78812085be (diff)
downloadscummvm-rg350-853aec05ba4485f0bfc90e7515322dfd56a8d4af.tar.gz
scummvm-rg350-853aec05ba4485f0bfc90e7515322dfd56a8d4af.tar.bz2
scummvm-rg350-853aec05ba4485f0bfc90e7515322dfd56a8d4af.zip
changed initGraphics, and OSystem::initSize to take Graphics::PixelFormat * parameters instead of Graphics::PixelFormat parameters, to save unnecessary pixelformat initialization if ENABLE_RGB_COLOR is not set.
svn-id: r41909
Diffstat (limited to 'engines/engine.h')
-rw-r--r--engines/engine.h7
1 files changed, 1 insertions, 6 deletions
diff --git a/engines/engine.h b/engines/engine.h
index 864450d6e1..67454629e7 100644
--- a/engines/engine.h
+++ b/engines/engine.h
@@ -29,9 +29,7 @@
#include "common/error.h"
#include "common/fs.h"
#include "common/str.h"
-#ifdef ENABLE_RGB_COLOR
#include "graphics/pixelformat.h"
-#endif
class OSystem;
@@ -62,10 +60,7 @@ void initCommonGFX(bool defaultTo1XScaler);
* Errors out when backend is not able to switch to the specified
* mode.
*/
-#ifdef ENABLE_RGB_COLOR
-void initGraphics(int width, int height, bool defaultTo1xScaler, Graphics::PixelFormat format);
-#endif
-void initGraphics(int width, int height, bool defaultTo1xScaler);
+void initGraphics(int width, int height, bool defaultTo1xScaler, Graphics::PixelFormat *format = NULL);
/**
* Initializes graphics and shows error message.