aboutsummaryrefslogtreecommitdiff
path: root/backends/platform/ps2/Gs2dScreen.h
diff options
context:
space:
mode:
authorRobert Göffringmann2008-03-03 00:41:59 +0000
committerRobert Göffringmann2008-03-03 00:41:59 +0000
commit3b27b9fa438611c3a05fcf2d07a3dfde6be192fa (patch)
tree8605c47d67b779fb33ce4dda3a64a7d3caecdb4d /backends/platform/ps2/Gs2dScreen.h
parentfc91de07dfdfe6bd29edadf739f324f30f5624d0 (diff)
downloadscummvm-rg350-3b27b9fa438611c3a05fcf2d07a3dfde6be192fa.tar.gz
scummvm-rg350-3b27b9fa438611c3a05fcf2d07a3dfde6be192fa.tar.bz2
scummvm-rg350-3b27b9fa438611c3a05fcf2d07a3dfde6be192fa.zip
the ps2 changes from the 0.11.1 release, plus some bugfixes and cleanup.
svn-id: r31034
Diffstat (limited to 'backends/platform/ps2/Gs2dScreen.h')
-rw-r--r--backends/platform/ps2/Gs2dScreen.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/backends/platform/ps2/Gs2dScreen.h b/backends/platform/ps2/Gs2dScreen.h
index 471ec87789..94ef218a40 100644
--- a/backends/platform/ps2/Gs2dScreen.h
+++ b/backends/platform/ps2/Gs2dScreen.h
@@ -28,6 +28,7 @@
#include "sysdefs.h"
#include "backends/platform/ps2/DmaPipe.h"
+#include "graphics/surface.h"
enum TVMode {
TV_DONT_CARE = 0,
@@ -56,13 +57,16 @@ public:
void copyPrintfOverlay(const uint8* buf);
void clearPrintfOverlay(void);
+ void clearScreen(void);
+
+ Graphics::Surface *lockScreen();
+ void unlockScreen();
void copyScreenRect(const uint8 *buf, int pitch, int x, int y, int w, int h);
void setPalette(const uint32 *pal, uint8 start, uint16 num);
void updateScreen(void);
void grabPalette(uint32 *pal, uint8 start, uint16 num);
- Graphics::Surface *lockScreen();
- void unlockScreen();
+ void grabScreen(Graphics::Surface *surf);
//- overlay routines
void copyOverlayRect(const uint16 *buf, uint16 pitch, uint16 x, uint16 y, uint16 w, uint16 h);
void grabOverlay(uint16 *buf, uint16 pitch);
@@ -94,13 +98,12 @@ private:
uint32 _clutPtrs[3]; // vram pointers
uint32 _texPtrs[4]; //
+ Graphics::Surface _framebuffer;
uint16 _width, _height, _pitch;
int16 _mouseX, _mouseY, _hotSpotX, _hotSpotY;
uint32 _mouseScaleX, _mouseScaleY;
uint8 _mTraCol;
- Graphics::Surface _framebuffer;
-
int _shakePos;
bool _showMouse, _showOverlay, _screenChanged, _overlayChanged, _clutChanged;