comparison engine/core/controller/engine.cpp @ 640:855ad500f991

* Added the ability to set/get the video driver used using the settings interface. Note that the default driver for the OS will be used unless explicitly specified.
author prock@33b003aa-7bff-0310-803a-e67f0ece8222
date Thu, 07 Oct 2010 18:37:02 +0000
parents 3094988564d5
children 6e2151325017
comparison
equal deleted inserted replaced
639:685d250f2c2d 640:855ad500f991
193 FL_WARN(_log, "Tried to select OpenGL, even though it is not compiled into the engine. Falling back to SDL Render backend"); 193 FL_WARN(_log, "Tried to select OpenGL, even though it is not compiled into the engine. Falling back to SDL Render backend");
194 #endif 194 #endif
195 } 195 }
196 FL_LOG(_log, "Initializing render backend"); 196 FL_LOG(_log, "Initializing render backend");
197 m_renderbackend->setColorKeyEnabled(m_settings.isColorKeyEnabled()); 197 m_renderbackend->setColorKeyEnabled(m_settings.isColorKeyEnabled());
198 m_renderbackend->init(); 198 m_renderbackend->init(m_settings.getVideoDriver());
199 199
200 FL_LOG(_log, "Querying device capabilities"); 200 FL_LOG(_log, "Querying device capabilities");
201 m_devcaps.fillDeviceCaps(); 201 m_devcaps.fillDeviceCaps();
202 202
203 FL_LOG(_log, "Creating main screen"); 203 FL_LOG(_log, "Creating main screen");