aboutsummaryrefslogtreecommitdiff
path: root/backends/base-backend.h
diff options
context:
space:
mode:
authorStrangerke2011-06-29 16:15:41 +0200
committerStrangerke2011-06-29 16:15:41 +0200
commitb0c9c9122fc678074aba30068e5b36d347208e65 (patch)
tree79a99db08ec985f2e5f1e216823b1104d5b753fb /backends/base-backend.h
parentf2f3124246a77036f843dee2d83ad28084234ebc (diff)
parentc32a3ea0d30336771bab460ecccb58c4614e6294 (diff)
downloadscummvm-rg350-b0c9c9122fc678074aba30068e5b36d347208e65.tar.gz
scummvm-rg350-b0c9c9122fc678074aba30068e5b36d347208e65.tar.bz2
scummvm-rg350-b0c9c9122fc678074aba30068e5b36d347208e65.zip
Merge branch 'master' of github.com:scummvm/scummvm into soltys_wip2
Diffstat (limited to 'backends/base-backend.h')
-rw-r--r--backends/base-backend.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/backends/base-backend.h b/backends/base-backend.h
index 6b19b7a9cb..c797e831a8 100644
--- a/backends/base-backend.h
+++ b/backends/base-backend.h
@@ -24,16 +24,22 @@
#define BACKENDS_BASE_BACKEND_H
#include "common/system.h"
-#include "backends/events/default/default-events.h"
+#include "common/events.h"
-class BaseBackend : public OSystem, Common::EventSource {
+class BaseBackend : public OSystem {
+protected:
+ virtual Common::EventSource *getDefaultEventSource() = 0;
public:
virtual void initBackend();
virtual void displayMessageOnOSD(const char *msg);
virtual void fillScreen(uint32 col);
+};
- virtual void resetGraphicsScale();
+class EventsBaseBackend : public BaseBackend, Common::EventSource {
+protected:
+ virtual Common::EventSource *getDefaultEventSource() { return this; }
+public:
};