aboutsummaryrefslogtreecommitdiff
path: root/backends/platform/psp/osys_psp.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'backends/platform/psp/osys_psp.cpp')
-rw-r--r--backends/platform/psp/osys_psp.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/backends/platform/psp/osys_psp.cpp b/backends/platform/psp/osys_psp.cpp
index 1e0236cae4..ebda445019 100644
--- a/backends/platform/psp/osys_psp.cpp
+++ b/backends/platform/psp/osys_psp.cpp
@@ -26,6 +26,7 @@
#include "common/stdafx.h"
#include "common/scummsys.h"
+#include "graphics/surface.h"
#include "common/rect.h"
#include "osys_psp.h"
@@ -186,6 +187,15 @@ void OSystem_PSP::copyRectToScreen(const byte *buf, int pitch, int x, int y, int
}
}
+bool OSystem_PSP::grabRawScreen(Graphics::Surface *surf) {
+ assert(surf);
+
+ surf->create(_screenWidth, _screenHeight, 1);
+ memcpy(surf->pixels, _offscreen, _screenWidth * _screenHeight);
+
+ return true;
+}
+
void OSystem_PSP::updateScreen() {
unsigned short *temp;