Unverified Commit afa143ac authored by Libretro-Admin's avatar Libretro-Admin Committed by GitHub
Browse files

Merge pull request #12 from phcoder/ps2col

Fix colors on PS2
parents 75743fe2 fd1ec6c9
Pipeline #120408 passed with stages
in 10 minutes and 16 seconds
......@@ -78,7 +78,13 @@ public:
private:
struct ColorMapper16
{
r8::gfx::ColorTable::pixel_t operator()(uint8_t r, uint8_t g, uint8_t b) const { return ((r & 0xf8) << 8) | ((g & 0xfc) << 3) | ((b & 0xf8) >> 3); }
r8::gfx::ColorTable::pixel_t operator()(uint8_t r, uint8_t g, uint8_t b) const {
#ifdef ABGR1555
return ((b & 0xf8) << 7) | ((g & 0xf8) << 2) | ((r & 0xf8) >> 3);
#else
return ((r & 0xf8) << 8) | ((g & 0xfc) << 3) | ((b & 0xf8) >> 3);
#endif
}
};
};
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment