mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2026-01-02 01:03:29 +01:00
Fixed bug; added unit tests
This commit is contained in:
@@ -833,7 +833,7 @@ internal class CursesDriver : ConsoleDriver
|
||||
/// <returns></returns>
|
||||
private static Attribute MakeColor (short foreground, short background)
|
||||
{
|
||||
var v = (short)(foreground | (background << 4));
|
||||
var v = (short)((ushort)foreground | (background << 4));
|
||||
|
||||
// TODO: for TrueColor - Use InitExtendedPair
|
||||
Curses.InitColorPair (v, foreground, background);
|
||||
|
||||
Reference in New Issue
Block a user