From 426c36992dd23647b7316de9ba2aeb12a4d8d94c Mon Sep 17 00:00:00 2001 From: Vicent Marti Date: Wed, 28 May 2008 14:30:51 +0000 Subject: [PATCH] Bugfixes: Discarded function, switch fix. svn-id: r32340 --- gui/InterfaceManager.cpp | 3 +++ gui/InterfaceManager.h | 9 +-------- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/gui/InterfaceManager.cpp b/gui/InterfaceManager.cpp index 84696546576..6aa5bac733d 100644 --- a/gui/InterfaceManager.cpp +++ b/gui/InterfaceManager.cpp @@ -59,6 +59,9 @@ void InterfaceManager::setGraphicsMode(Graphics_Mode mode) { _bytesPerPixel = sizeof(uint16); screenInit(); break; + + default: + return; } _vectorRenderer = Graphics::createRenderer(mode); diff --git a/gui/InterfaceManager.h b/gui/InterfaceManager.h index 5a5eccff41f..4e98fbc6926 100644 --- a/gui/InterfaceManager.h +++ b/gui/InterfaceManager.h @@ -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 >; - } - - template - void screenInit(); + template void screenInit(); void freeRenderer() { if (_vectorRenderer != NULL)