MCPcopy Create free account
hub / github.com/AppleWin/AppleWin / _ColorPrint

Function _ColorPrint

source/Debugger/Debug.cpp:2852–2859  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2850// Color __________________________________________________________________________________________
2851
2852void _ColorPrint ( int iColor, COLORREF nColor )
2853{
2854 int R = (nColor >> 0) & 0xFF;
2855 int G = (nColor >> 8) & 0xFF;
2856 int B = (nColor >> 16) & 0xFF;
2857
2858 ConsoleBufferPushFormat( " Color %01X: %02X %02X %02X", iColor, R, G, B ); // TODO: print name of colors!
2859}
2860
2861void _CmdColorGet ( const int iScheme, const int iColor )
2862{

Callers 1

_CmdColorGetFunction · 0.85

Calls 1

ConsoleBufferPushFormatFunction · 0.85

Tested by

no test coverage detected