Fix LowRes colors (swapping foreground and background).

Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
This commit is contained in:
Andrea Odetti 2017-06-10 19:30:39 +01:00
parent d8d2cc2412
commit 26e377e3a1

View file

@ -103,8 +103,8 @@ GraphicsColors::GraphicsColors(const int firstColor, const int firstPair, const
int GraphicsColors::getPair(int color) const
{
const int bg = color & 0x0f;
const int fg = color >> 4;
const int fg = color & 0x0f;
const int bg = color >> 4;
const int pair = myFirstGRPair + fg * myNumberOfGRColors + bg;