Debugger: removed the now redundant Debug_UpdatePalette() func
This commit is contained in:
parent
3b9dc8d0f7
commit
9a0617e889
3 changed files with 3 additions and 26 deletions
|
@ -334,7 +334,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
void _BWZ_Clear( Breakpoint_t * aBreakWatchZero, int iSlot );
|
void _BWZ_Clear( Breakpoint_t * aBreakWatchZero, int iSlot );
|
||||||
|
|
||||||
// Config - Colors
|
// Config - Colors
|
||||||
static void _ConfigColorsReset ( BYTE *pPalDst = 0 );
|
static void _ConfigColorsReset ( void );
|
||||||
|
|
||||||
// Config - Save
|
// Config - Save
|
||||||
bool ConfigSave_BufferToDisk ( const char *pFileName, ConfigSave_t eConfigSave );
|
bool ConfigSave_BufferToDisk ( const char *pFileName, ConfigSave_t eConfigSave );
|
||||||
|
@ -8804,19 +8804,9 @@ void _SetupColorRamp( const int iPrimary, int & iColor_ )
|
||||||
}
|
}
|
||||||
#endif // _DEBUG
|
#endif // _DEBUG
|
||||||
|
|
||||||
// Full Screen uses the palette from g_pFramebufferinfo
|
|
||||||
// BUT DebutInitialize() is called before VideoInitialize()
|
|
||||||
// THUS this is called post-initialize to set up the global palette
|
|
||||||
//
|
|
||||||
// pPalDst is the first color in the palette that we can stick our custom debug colors in
|
|
||||||
//===========================================================================
|
|
||||||
void Debug_UpdatePalette( BYTE *pPalDst )
|
|
||||||
{
|
|
||||||
_ConfigColorsReset( pPalDst );
|
|
||||||
}
|
|
||||||
|
|
||||||
//===========================================================================
|
//===========================================================================
|
||||||
void _ConfigColorsReset( BYTE *pPalDst )
|
void _ConfigColorsReset( void )
|
||||||
{
|
{
|
||||||
// int iColor = 1; // black only has one level, skip it, since black levels same as white levels
|
// int iColor = 1; // black only has one level, skip it, since black levels same as white levels
|
||||||
// for (int iPrimary = 1; iPrimary < 8; iPrimary++ )
|
// for (int iPrimary = 1; iPrimary < 8; iPrimary++ )
|
||||||
|
@ -8824,8 +8814,6 @@ void _ConfigColorsReset( BYTE *pPalDst )
|
||||||
// _SetupColorRamp( iPrimary, iColor );
|
// _SetupColorRamp( iPrimary, iColor );
|
||||||
// }
|
// }
|
||||||
|
|
||||||
BYTE *pDst = pPalDst;
|
|
||||||
|
|
||||||
// Setup default colors
|
// Setup default colors
|
||||||
int iColor;
|
int iColor;
|
||||||
for (iColor = 0; iColor < NUM_DEBUG_COLORS; iColor++ )
|
for (iColor = 0; iColor < NUM_DEBUG_COLORS; iColor++ )
|
||||||
|
@ -8836,15 +8824,6 @@ void _ConfigColorsReset( BYTE *pPalDst )
|
||||||
int G = (nColor >> 8) & 0xFF;
|
int G = (nColor >> 8) & 0xFF;
|
||||||
int B = (nColor >> 16) & 0xFF;
|
int B = (nColor >> 16) & 0xFF;
|
||||||
|
|
||||||
if( pDst )
|
|
||||||
{
|
|
||||||
*(pDst + 0) = B;
|
|
||||||
*(pDst + 1) = G;
|
|
||||||
*(pDst + 2) = R;
|
|
||||||
*(pDst + 3) = 0;
|
|
||||||
pDst += 4;
|
|
||||||
}
|
|
||||||
|
|
||||||
// There are many, many ways of shifting the color domain to the monochrome domain
|
// There are many, many ways of shifting the color domain to the monochrome domain
|
||||||
// NTSC uses 3x3 matrix, could map RGB -> wavelength, etc.
|
// NTSC uses 3x3 matrix, could map RGB -> wavelength, etc.
|
||||||
int M = (R + G + B) / 3; // Monochrome component
|
int M = (R + G + B) / 3; // Monochrome component
|
||||||
|
|
|
@ -131,7 +131,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
|
|
||||||
COLORREF g_aColors[ NUM_COLOR_SCHEMES ][ NUM_DEBUG_COLORS ];
|
COLORREF g_aColors[ NUM_COLOR_SCHEMES ][ NUM_DEBUG_COLORS ];
|
||||||
|
|
||||||
COLORREF DebuggerGetColor ( int iColor );
|
// COLORREF DebuggerGetColor ( int iColor );
|
||||||
|
|
||||||
|
|
||||||
//===========================================================================
|
//===========================================================================
|
||||||
|
|
|
@ -89,8 +89,6 @@
|
||||||
void DrawWatches ( int line);
|
void DrawWatches ( int line);
|
||||||
void DrawZeroPagePointers ( int line);
|
void DrawZeroPagePointers ( int line);
|
||||||
|
|
||||||
void Debug_UpdatePalette( BYTE *pPalDst );
|
|
||||||
|
|
||||||
//
|
//
|
||||||
|
|
||||||
extern HDC GetDebuggerMemDC(void);
|
extern HDC GetDebuggerMemDC(void);
|
||||||
|
|
Loading…
Add table
Reference in a new issue