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

Function _CmdColorGet

source/Debugger/Debug.cpp:2861–2875  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2859}
2860
2861void _CmdColorGet ( const int iScheme, const int iColor )
2862{
2863 if (iColor < NUM_DEBUG_COLORS)
2864 {
2865// COLORREF nColor = g_aColors[ iScheme ][ iColor ];
2866 DebugColors_e eColor = static_cast<DebugColors_e>( iColor );
2867 COLORREF nColor = DebuggerGetColor( eColor );
2868 _ColorPrint( iColor, nColor );
2869 }
2870 else
2871 {
2872 std::string sText = StrFormat( "Color: %d\nOut of range!", iColor );
2873 GetFrame().FrameMessageBox(sText.c_str(), "ERROR", MB_OK);
2874 }
2875}
2876
2877//===========================================================================
2878Update_t CmdConfigColorMono (int nArgs)

Callers 1

CmdConfigColorMonoFunction · 0.85

Calls 4

DebuggerGetColorFunction · 0.85
_ColorPrintFunction · 0.85
StrFormatFunction · 0.85
FrameMessageBoxMethod · 0.80

Tested by

no test coverage detected