aboutsummaryrefslogtreecommitdiff
path: root/engines/access/screen.h
diff options
context:
space:
mode:
authorPaul Gilbert2016-03-10 21:51:06 -0500
committerPaul Gilbert2016-03-14 20:56:25 -0400
commit9c7569b74bf3493f7970a912ae54b87d73e6633e (patch)
treef76988bdb103698a9cc49676a7e7f0da0ef5a79a /engines/access/screen.h
parent433a2daa6a42b4cca3a715d4461a893be17ef61a (diff)
downloadscummvm-rg350-9c7569b74bf3493f7970a912ae54b87d73e6633e.tar.gz
scummvm-rg350-9c7569b74bf3493f7970a912ae54b87d73e6633e.tar.bz2
scummvm-rg350-9c7569b74bf3493f7970a912ae54b87d73e6633e.zip
ACCESS: Changed engine to use Graphics::ManagedSurface
Diffstat (limited to 'engines/access/screen.h')
-rw-r--r--engines/access/screen.h30
1 files changed, 8 insertions, 22 deletions
diff --git a/engines/access/screen.h b/engines/access/screen.h
index 6fa0fe3812..a022741f91 100644
--- a/engines/access/screen.h
+++ b/engines/access/screen.h
@@ -26,15 +26,13 @@
#include "common/scummsys.h"
#include "common/rect.h"
#include "common/stream.h"
+#include "graphics/screen.h"
#include "access/asurface.h"
namespace Access {
class AccessEngine;
-#define PALETTE_COUNT 256
-#define PALETTE_SIZE (256 * 3)
-
struct ScreenSave {
int _clipWidth;
int _clipHeight;
@@ -47,7 +45,7 @@ struct ScreenSave {
int _screenYOff;
};
-class Screen : public ASurface {
+class Screen : public virtual ASurface, public virtual Graphics::Screen {
private:
AccessEngine *_vm;
byte _tempPalette[PALETTE_SIZE];
@@ -66,10 +64,6 @@ private:
Common::List<Common::Rect> _dirtyRects;
void updatePalette();
-
- void mergeDirtyRects();
-
- bool unionRectangle(Common::Rect &destRect, const Common::Rect &src1, const Common::Rect &src2);
public:
int _vesaMode;
int _startColor, _numColors;
@@ -87,6 +81,11 @@ public:
bool _screenChangeFlag;
bool _fadeIn;
public:
+ /**
+ * Updates the screen
+ */
+ virtual void update();
+
virtual void copyBlock(ASurface *src, const Common::Rect &bounds);
virtual void restoreBlock();
@@ -95,15 +94,7 @@ public:
virtual void drawBox();
- virtual void transBlitFrom(ASurface *src, const Common::Point &destPos);
-
- virtual void transBlitFrom(ASurface *src, const Common::Rect &bounds);
-
- virtual void blitFrom(const Graphics::Surface &src);
-
- virtual void copyBuffer(Graphics::Surface *src);
-
- virtual void addDirtyRect(const Common::Rect &r);
+ virtual void copyBuffer(Graphics::ManagedSurface *src);
public:
Screen(AccessEngine *vm);
@@ -114,11 +105,6 @@ public:
void setPanel(int num);
/**
- * Update the underlying screen
- */
- void updateScreen();
-
- /**
* Fade out screen
*/
void forceFadeOut();