aboutsummaryrefslogtreecommitdiff
path: root/engines/access/screen.h
diff options
context:
space:
mode:
Diffstat (limited to 'engines/access/screen.h')
-rw-r--r--engines/access/screen.h42
1 files changed, 19 insertions, 23 deletions
diff --git a/engines/access/screen.h b/engines/access/screen.h
index d45a533f9a..1c1932511d 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 BaseSurface {
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;
@@ -85,22 +79,22 @@ public:
int _bufferBytesWide;
int _vWindowLinesTall;
bool _screenChangeFlag;
+ bool _fadeIn;
public:
- virtual void copyBlock(ASurface *src, const Common::Rect &bounds);
+ /**
+ * Updates the screen
+ */
+ virtual void update();
+
+ virtual void copyBlock(BaseSurface *src, const Common::Rect &bounds);
virtual void restoreBlock();
virtual void drawRect();
- virtual void transBlitFrom(ASurface *src, const Common::Point &destPos);
-
- virtual void transBlitFrom(ASurface *src, const Common::Rect &bounds);
-
- virtual void blitFrom(Graphics::Surface &src);
+ virtual void drawBox();
- virtual void copyBuffer(Graphics::Surface *src);
-
- virtual void addDirtyRect(const Common::Rect &r);
+ virtual void copyBuffer(Graphics::ManagedSurface *src);
public:
Screen(AccessEngine *vm);
@@ -111,11 +105,6 @@ public:
void setPanel(int num);
/**
- * Update the underlying screen
- */
- void updateScreen();
-
- /**
* Fade out screen
*/
void forceFadeOut();
@@ -137,7 +126,12 @@ public:
/**
* Set icon palette
*/
- void setIconPalette() {}
+ void setIconPalette();
+
+ /**
+ * Set Tex palette (Martian Memorandum)
+ */
+ void setManPalette();
void loadPalette(int fileNum, int subfile);
@@ -151,6 +145,8 @@ public:
void getPalette(byte *pal);
+ void flashPalette(int count);
+
/**
* Copy a buffer to the screen
*/