mirror of
https://github.com/AppleWin/AppleWin.git
synced 2025-01-01 12:31:59 +00:00
Debugger: Remove DebugDisplay()'s unused first parameter: bDrawBackground because it was unused and in some cases it was being passed a bitfield, not a BOOL
This commit is contained in:
parent
124eca4546
commit
41286cd29f
@ -4845,7 +4845,7 @@ size_t Util_GetDebuggerText( char* &pText_ )
|
||||
memset( pBeg, 0, sizeof( g_aTextScreen ) );
|
||||
|
||||
memset( g_aDebuggerVirtualTextScreen, 0, sizeof( g_aDebuggerVirtualTextScreen ) );
|
||||
DebugDisplay(TRUE);
|
||||
DebugDisplay();
|
||||
|
||||
for( int y = 0; y < DEBUG_VIRTUAL_TEXT_HEIGHT; y++ )
|
||||
{
|
||||
@ -9578,18 +9578,12 @@ void DebuggerProcessKey( int keycode )
|
||||
UpdateDisplay( bUpdateDisplay );
|
||||
}
|
||||
|
||||
// Still called from external file
|
||||
void DebugDisplay( BOOL bDrawBackground, BOOL bInitDisasm/*=FALSE*/ )
|
||||
void DebugDisplay( BOOL bInitDisasm/*=FALSE*/ )
|
||||
{
|
||||
Update_t bUpdateFlags = UPDATE_ALL;
|
||||
|
||||
// if (! bDrawBackground)
|
||||
// bUpdateFlags &= ~UPDATE_BACKGROUND;
|
||||
|
||||
if (bInitDisasm)
|
||||
InitDisasm();
|
||||
|
||||
UpdateDisplay( bUpdateFlags );
|
||||
UpdateDisplay( UPDATE_ALL );
|
||||
}
|
||||
|
||||
|
||||
@ -9663,7 +9657,7 @@ void DebuggerMouseClick( int x, int y )
|
||||
char sText[ CONSOLE_WIDTH ];
|
||||
sprintf( sText, "x:%d y:%d cx:%d cy:%d", x, y, cx, cy );
|
||||
ConsoleDisplayPush( sText );
|
||||
DebugDisplay( UPDATE_CONSOLE_DISPLAY );
|
||||
DebugDisplay();
|
||||
#endif
|
||||
|
||||
if (g_iWindowThis == WINDOW_CODE)
|
||||
@ -9676,19 +9670,19 @@ void DebuggerMouseClick( int x, int y )
|
||||
if( cx < 4) // ####
|
||||
{
|
||||
g_bConfigDisasmAddressView ^= true;
|
||||
DebugDisplay( UPDATE_DISASM );
|
||||
DebugDisplay();
|
||||
}
|
||||
else
|
||||
if (cx == 4) // :
|
||||
{
|
||||
g_bConfigDisasmAddressColon ^= true;
|
||||
DebugDisplay( UPDATE_DISASM );
|
||||
DebugDisplay();
|
||||
}
|
||||
else // AD 00 00
|
||||
if ((cx > 4) && (cx <= 13))
|
||||
{
|
||||
g_bConfigDisasmOpcodesView ^= true;
|
||||
DebugDisplay( UPDATE_DISASM );
|
||||
DebugDisplay();
|
||||
}
|
||||
|
||||
} else
|
||||
@ -9704,13 +9698,13 @@ void DebuggerMouseClick( int x, int y )
|
||||
{
|
||||
g_bConfigDisasmAddressView ^= true;
|
||||
}
|
||||
DebugDisplay( UPDATE_DISASM );
|
||||
DebugDisplay();
|
||||
}
|
||||
else
|
||||
if ((cx > 0) & (cx <= 13))
|
||||
{
|
||||
g_bConfigDisasmOpcodesView ^= true;
|
||||
DebugDisplay( UPDATE_DISASM );
|
||||
DebugDisplay();
|
||||
}
|
||||
}
|
||||
// Click on PC inside reg window?
|
||||
@ -9719,7 +9713,7 @@ void DebuggerMouseClick( int x, int y )
|
||||
if (cy == 3)
|
||||
{
|
||||
CmdCursorJumpPC( CURSOR_ALIGN_CENTER );
|
||||
DebugDisplay( UPDATE_DISASM );
|
||||
DebugDisplay();
|
||||
}
|
||||
else // Click on stack
|
||||
if( cy > 3)
|
||||
|
@ -168,7 +168,7 @@
|
||||
void DebugContinueStepping ();
|
||||
void DebugStopStepping(void);
|
||||
void DebugDestroy ();
|
||||
void DebugDisplay (BOOL bDrawBackground, BOOL bInitDisasm = FALSE );
|
||||
void DebugDisplay ( BOOL bInitDisasm = FALSE );
|
||||
void DebugInitialize ();
|
||||
|
||||
void DebuggerInputConsoleChar( TCHAR ch );
|
||||
|
@ -625,7 +625,7 @@ static void DrawFrameWindow ()
|
||||
if (g_nAppMode == MODE_LOGO)
|
||||
VideoDisplayLogo();
|
||||
else if (g_nAppMode == MODE_DEBUG)
|
||||
DebugDisplay(TRUE);
|
||||
DebugDisplay();
|
||||
else
|
||||
VideoRedrawScreen();
|
||||
|
||||
@ -1842,7 +1842,7 @@ static void ProcessButtonClick(int button, bool bFromButtonUI /*=false*/)
|
||||
{
|
||||
CtrlReset();
|
||||
if (g_nAppMode == MODE_DEBUG)
|
||||
DebugDisplay(TRUE, TRUE);
|
||||
DebugDisplay(TRUE);
|
||||
return;
|
||||
}
|
||||
|
||||
@ -1861,7 +1861,7 @@ static void ProcessButtonClick(int button, bool bFromButtonUI /*=false*/)
|
||||
// NB. Don't exit debugger or stepping
|
||||
|
||||
if (g_nAppMode == MODE_DEBUG)
|
||||
DebugDisplay(TRUE, TRUE);
|
||||
DebugDisplay(TRUE);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user