diff options
| -rw-r--r-- | gui/InterfaceManager.cpp | 3 | ||||
| -rw-r--r-- | gui/InterfaceManager.h | 9 |
2 files changed, 4 insertions, 8 deletions
diff --git a/gui/InterfaceManager.cpp b/gui/InterfaceManager.cpp index 8469654657..6aa5bac733 100644 --- a/gui/InterfaceManager.cpp +++ b/gui/InterfaceManager.cpp @@ -59,6 +59,9 @@ void InterfaceManager::setGraphicsMode(Graphics_Mode mode) { _bytesPerPixel = sizeof(uint16); screenInit<uint16>(); break; + + default: + return; } _vectorRenderer = Graphics::createRenderer(mode); diff --git a/gui/InterfaceManager.h b/gui/InterfaceManager.h index 5a5eccff41..4e98fbc692 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<uint16, ColorMasks<565> >; - } - - template<typename PixelType> - void screenInit(); + template<typename PixelType> void screenInit(); void freeRenderer() { if (_vectorRenderer != NULL) |
