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
This commit is contained in:
parent
fe65f6163c
commit
853aec05ba
7 changed files with 14 additions and 21 deletions
|
@ -124,12 +124,7 @@ void initCommonGFX(bool defaultTo1XScaler) {
|
|||
if (gameDomain && gameDomain->contains("fullscreen"))
|
||||
g_system->setFeatureState(OSystem::kFeatureFullscreenMode, ConfMan.getBool("fullscreen"));
|
||||
}
|
||||
void initGraphics(int width, int height, bool defaultTo1xScaler) {
|
||||
#ifdef ENABLE_RGB_COLOR
|
||||
initGraphics(width,height,defaultTo1xScaler, Graphics::PixelFormat::createFormatCLUT8());
|
||||
}
|
||||
void initGraphics(int width, int height, bool defaultTo1xScaler, Graphics::PixelFormat format) {
|
||||
#endif
|
||||
void initGraphics(int width, int height, bool defaultTo1xScaler, Graphics::PixelFormat *format) {
|
||||
|
||||
g_system->beginGFXTransaction();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue