Fix LowRes colors (swapping foreground and background).
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
This commit is contained in:
parent
d8d2cc2412
commit
26e377e3a1
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue