diff options
author | Max Horn | 2008-03-26 14:56:51 +0000 |
---|---|---|
committer | Max Horn | 2008-03-26 14:56:51 +0000 |
commit | b2aea51d5851a70beb7bacdda1c057c6c588487e (patch) | |
tree | 093ded6fe52eed62c8257b2febcdeec1caf8355c /backends | |
parent | 53ea302f5d9a559c6d8cb3ece432fb8e322c17a1 (diff) | |
download | scummvm-rg350-b2aea51d5851a70beb7bacdda1c057c6c588487e.tar.gz scummvm-rg350-b2aea51d5851a70beb7bacdda1c057c6c588487e.tar.bz2 scummvm-rg350-b2aea51d5851a70beb7bacdda1c057c6c588487e.zip |
Call InitScalers instead of setting gBitFormat directly
svn-id: r31242
Diffstat (limited to 'backends')
-rw-r--r-- | backends/platform/psp/osys_psp.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/backends/platform/psp/osys_psp.cpp b/backends/platform/psp/osys_psp.cpp index c3e3e3545b..d5d59d4d6e 100644 --- a/backends/platform/psp/osys_psp.cpp +++ b/backends/platform/psp/osys_psp.cpp @@ -33,6 +33,7 @@ #include "backends/saves/default/default-saves.h" #include "backends/timer/default/default-timer.h" #include "graphics/surface.h" +#include "graphics/scaler.h" #include "sound/mixer.h" #include <pspgu.h> @@ -84,6 +85,9 @@ OSystem_PSP::OSystem_PSP() : _screenWidth(0), _screenHeight(0), _overlayWidth(0) sceDisplaySetMode(0, SCREEN_WIDTH, SCREEN_HEIGHT); sceDisplaySetFrameBuf((char *)DisplayBuffer, 512, 1, 1); sceDisplayWaitVblankStart(); + + // Correct pixel format ABBBBBGGGGGRRRRR + InitScalers(1555); } OSystem_PSP::~OSystem_PSP() { @@ -648,6 +652,3 @@ void OSystem_PSP::setWindowCaption(const char *caption) { void OSystem_PSP::displayMessageOnOSD(const char *msg) { } -// Correct pixel format ABBBBBGGGGGRRRRR -int gBitFormat = 1555; - |