From b2aea51d5851a70beb7bacdda1c057c6c588487e Mon Sep 17 00:00:00 2001 From: Max Horn Date: Wed, 26 Mar 2008 14:56:51 +0000 Subject: Call InitScalers instead of setting gBitFormat directly svn-id: r31242 --- backends/platform/psp/osys_psp.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'backends') 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 @@ -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; - -- cgit v1.2.3