diff options
Diffstat (limited to 'backends/platform/psp')
-rw-r--r-- | backends/platform/psp/osys_psp.cpp | 16 | ||||
-rw-r--r-- | backends/platform/psp/osys_psp.h | 2 |
2 files changed, 0 insertions, 18 deletions
diff --git a/backends/platform/psp/osys_psp.cpp b/backends/platform/psp/osys_psp.cpp index 52d0913a4b..8670456e55 100644 --- a/backends/platform/psp/osys_psp.cpp +++ b/backends/platform/psp/osys_psp.cpp @@ -363,22 +363,6 @@ void OSystem_PSP::colorToRGB(OverlayColor color, uint8 &r, uint8 &g, uint8 &b) { b = (((color >> 10) & 0x1F) << 3); } -OverlayColor OSystem_PSP::ARGBToColor(uint8 a, uint8 r, uint8 g, uint8 b) { - OverlayColor color = RGBToColor(r, g, b); - - if (a == 255) - color |= 0x8000; - - return color; -} - -void OSystem_PSP::colorToARGB(OverlayColor color, uint8 &a, uint8 &r, uint8 &g, uint8 &b) { - colorToRGB(color, r, g, b); - if (color & 0x8000) - a = 255; - else - a = 0; -} void OSystem_PSP::grabPalette(byte *colors, uint start, uint num) { uint i; diff --git a/backends/platform/psp/osys_psp.h b/backends/platform/psp/osys_psp.h index 6da16c6e3b..783bb87b9c 100644 --- a/backends/platform/psp/osys_psp.h +++ b/backends/platform/psp/osys_psp.h @@ -109,8 +109,6 @@ public: virtual int16 getOverlayWidth(); virtual OverlayColor RGBToColor(uint8 r, uint8 g, uint8 b); virtual void colorToRGB(OverlayColor color, uint8 &r, uint8 &g, uint8 &b); - virtual OverlayColor ARGBToColor(uint8 a, uint8 r, uint8 g, uint8 b); - virtual void colorToARGB(OverlayColor color, uint8 &a, uint8 &r, uint8 &g, uint8 &b); virtual void grabPalette(byte *colors, uint start, uint num); virtual Graphics::PixelFormat getOverlayFormat() const { return Graphics::createPixelFormat<1555>(); } |