Skip to content

Commit

Permalink
NULL: Fix compiler errors when using the NullGraphicsManager
Browse files Browse the repository at this point in the history
The errors fixed are inaccessible base class when trying to set the
_graphicsManager and a pure virtual function when trying to create
the NullGraphicsManager instance.
  • Loading branch information
criezy committed Feb 19, 2012
1 parent f6b8fec commit 7a3df46
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion backends/graphics/null/null-graphics.h
Expand Up @@ -27,7 +27,7 @@

static const OSystem::GraphicsMode s_noGraphicsModes[] = { {0, 0, 0} };

class NullGraphicsManager : GraphicsManager {
class NullGraphicsManager : public GraphicsManager {
public:
virtual ~NullGraphicsManager() {}

Expand All @@ -38,6 +38,7 @@ class NullGraphicsManager : GraphicsManager {
const OSystem::GraphicsMode *getSupportedGraphicsModes() const { return s_noGraphicsModes; }
int getDefaultGraphicsMode() const { return 0; }
bool setGraphicsMode(int mode) { return true; }
void resetGraphicsScale(){}
int getGraphicsMode() const { return 0; }
inline Graphics::PixelFormat getScreenFormat() const {
return Graphics::PixelFormat::createFormatCLUT8();
Expand Down

0 comments on commit 7a3df46

Please sign in to comment.