diff --git a/source/frontends/ncurses/colors.cpp b/source/frontends/ncurses/colors.cpp index 1a86f4d0..5e85685c 100644 --- a/source/frontends/ncurses/colors.cpp +++ b/source/frontends/ncurses/colors.cpp @@ -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;