From d0fd0f1151a1754905c49c923f7ab0b37173325d Mon Sep 17 00:00:00 2001 From: rsn8887 Date: Sat, 10 Oct 2020 09:48:50 -0500 Subject: [PATCH] BACKENDS: Implement getScreenPixelBuffer() for PSP --- backends/platform/psp/osys_psp.cpp | 5 +++++ backends/platform/psp/osys_psp.h | 1 + 2 files changed, 6 insertions(+) diff --git a/backends/platform/psp/osys_psp.cpp b/backends/platform/psp/osys_psp.cpp index b5a612d41c3..5dba7f88038 100644 --- a/backends/platform/psp/osys_psp.cpp +++ b/backends/platform/psp/osys_psp.cpp @@ -41,6 +41,7 @@ #include "backends/saves/default/default-saves.h" #include "backends/timer/psp/timer.h" #include "graphics/surface.h" +#include "graphics/pixelbuffer.h" #include "audio/mixer_intern.h" //#define __PSP_DEBUG_FUNCS__ /* For debugging function calls */ @@ -130,6 +131,10 @@ const OSystem::GraphicsMode* OSystem_PSP::getSupportedGraphicsModes() const { return _displayManager.getSupportedGraphicsModes(); } +Graphics::PixelBuffer OSystem_PSP::getScreenPixelBuffer() { + return Graphics::PixelBuffer(); +} + int OSystem_PSP::getDefaultGraphicsMode() const { DEBUG_ENTER_FUNC(); return _displayManager.getDefaultGraphicsMode(); diff --git a/backends/platform/psp/osys_psp.h b/backends/platform/psp/osys_psp.h index 8e263e2898a..e3bf787ecad 100644 --- a/backends/platform/psp/osys_psp.h +++ b/backends/platform/psp/osys_psp.h @@ -79,6 +79,7 @@ public: virtual Graphics::PixelFormat getScreenFormat() const; virtual Common::List getSupportedFormats() const; #endif + virtual Graphics::PixelBuffer getScreenPixelBuffer(); // Screen size void initSize(uint width, uint height, const Graphics::PixelFormat *format);