Bugfixes: Discarded function, switch fix.

svn-id: r32340
This commit is contained in:
Vicent Marti 2008-05-28 14:30:51 +00:00
parent 119b7126b9
commit 426c36992d
2 changed files with 4 additions and 8 deletions

View File

@ -59,6 +59,9 @@ void InterfaceManager::setGraphicsMode(Graphics_Mode mode) {
_bytesPerPixel = sizeof(uint16);
screenInit<uint16>();
break;
default:
return;
}
_vectorRenderer = Graphics::createRenderer(mode);

View File

@ -58,14 +58,7 @@ public:
int runGUI();
protected:
Graphics::VectorRenderer *createRenderer() {
// TODO: Find out what pixel format we are using,
// create the renderer accordingly
return new Graphics::VectorRendererSpec<uint16, ColorMasks<565> >;
}
template<typename PixelType>
void screenInit();
template<typename PixelType> void screenInit();
void freeRenderer() {
if (_vectorRenderer != NULL)