mirror of
https://github.com/AppleWin/AppleWin.git
synced 2024-06-28 14:29:51 +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( pBeg, 0, sizeof( g_aTextScreen ) );
|
||||||
|
|
||||||
memset( g_aDebuggerVirtualTextScreen, 0, sizeof( g_aDebuggerVirtualTextScreen ) );
|
memset( g_aDebuggerVirtualTextScreen, 0, sizeof( g_aDebuggerVirtualTextScreen ) );
|
||||||
DebugDisplay(TRUE);
|
DebugDisplay();
|
||||||
|
|
||||||
for( int y = 0; y < DEBUG_VIRTUAL_TEXT_HEIGHT; y++ )
|
for( int y = 0; y < DEBUG_VIRTUAL_TEXT_HEIGHT; y++ )
|
||||||
{
|
{
|
||||||
|
@ -9578,18 +9578,12 @@ void DebuggerProcessKey( int keycode )
|
||||||
UpdateDisplay( bUpdateDisplay );
|
UpdateDisplay( bUpdateDisplay );
|
||||||
}
|
}
|
||||||
|
|
||||||
// Still called from external file
|
void DebugDisplay( BOOL bInitDisasm/*=FALSE*/ )
|
||||||
void DebugDisplay( BOOL bDrawBackground, BOOL bInitDisasm/*=FALSE*/ )
|
|
||||||
{
|
{
|
||||||
Update_t bUpdateFlags = UPDATE_ALL;
|
|
||||||
|
|
||||||
// if (! bDrawBackground)
|
|
||||||
// bUpdateFlags &= ~UPDATE_BACKGROUND;
|
|
||||||
|
|
||||||
if (bInitDisasm)
|
if (bInitDisasm)
|
||||||
InitDisasm();
|
InitDisasm();
|
||||||
|
|
||||||
UpdateDisplay( bUpdateFlags );
|
UpdateDisplay( UPDATE_ALL );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -9663,7 +9657,7 @@ void DebuggerMouseClick( int x, int y )
|
||||||
char sText[ CONSOLE_WIDTH ];
|
char sText[ CONSOLE_WIDTH ];
|
||||||
sprintf( sText, "x:%d y:%d cx:%d cy:%d", x, y, cx, cy );
|
sprintf( sText, "x:%d y:%d cx:%d cy:%d", x, y, cx, cy );
|
||||||
ConsoleDisplayPush( sText );
|
ConsoleDisplayPush( sText );
|
||||||
DebugDisplay( UPDATE_CONSOLE_DISPLAY );
|
DebugDisplay();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (g_iWindowThis == WINDOW_CODE)
|
if (g_iWindowThis == WINDOW_CODE)
|
||||||
|
@ -9676,19 +9670,19 @@ void DebuggerMouseClick( int x, int y )
|
||||||
if( cx < 4) // ####
|
if( cx < 4) // ####
|
||||||
{
|
{
|
||||||
g_bConfigDisasmAddressView ^= true;
|
g_bConfigDisasmAddressView ^= true;
|
||||||
DebugDisplay( UPDATE_DISASM );
|
DebugDisplay();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
if (cx == 4) // :
|
if (cx == 4) // :
|
||||||
{
|
{
|
||||||
g_bConfigDisasmAddressColon ^= true;
|
g_bConfigDisasmAddressColon ^= true;
|
||||||
DebugDisplay( UPDATE_DISASM );
|
DebugDisplay();
|
||||||
}
|
}
|
||||||
else // AD 00 00
|
else // AD 00 00
|
||||||
if ((cx > 4) && (cx <= 13))
|
if ((cx > 4) && (cx <= 13))
|
||||||
{
|
{
|
||||||
g_bConfigDisasmOpcodesView ^= true;
|
g_bConfigDisasmOpcodesView ^= true;
|
||||||
DebugDisplay( UPDATE_DISASM );
|
DebugDisplay();
|
||||||
}
|
}
|
||||||
|
|
||||||
} else
|
} else
|
||||||
|
@ -9704,13 +9698,13 @@ void DebuggerMouseClick( int x, int y )
|
||||||
{
|
{
|
||||||
g_bConfigDisasmAddressView ^= true;
|
g_bConfigDisasmAddressView ^= true;
|
||||||
}
|
}
|
||||||
DebugDisplay( UPDATE_DISASM );
|
DebugDisplay();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
if ((cx > 0) & (cx <= 13))
|
if ((cx > 0) & (cx <= 13))
|
||||||
{
|
{
|
||||||
g_bConfigDisasmOpcodesView ^= true;
|
g_bConfigDisasmOpcodesView ^= true;
|
||||||
DebugDisplay( UPDATE_DISASM );
|
DebugDisplay();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Click on PC inside reg window?
|
// Click on PC inside reg window?
|
||||||
|
@ -9719,7 +9713,7 @@ void DebuggerMouseClick( int x, int y )
|
||||||
if (cy == 3)
|
if (cy == 3)
|
||||||
{
|
{
|
||||||
CmdCursorJumpPC( CURSOR_ALIGN_CENTER );
|
CmdCursorJumpPC( CURSOR_ALIGN_CENTER );
|
||||||
DebugDisplay( UPDATE_DISASM );
|
DebugDisplay();
|
||||||
}
|
}
|
||||||
else // Click on stack
|
else // Click on stack
|
||||||
if( cy > 3)
|
if( cy > 3)
|
||||||
|
|
|
@ -168,7 +168,7 @@
|
||||||
void DebugContinueStepping ();
|
void DebugContinueStepping ();
|
||||||
void DebugStopStepping(void);
|
void DebugStopStepping(void);
|
||||||
void DebugDestroy ();
|
void DebugDestroy ();
|
||||||
void DebugDisplay (BOOL bDrawBackground, BOOL bInitDisasm = FALSE );
|
void DebugDisplay ( BOOL bInitDisasm = FALSE );
|
||||||
void DebugInitialize ();
|
void DebugInitialize ();
|
||||||
|
|
||||||
void DebuggerInputConsoleChar( TCHAR ch );
|
void DebuggerInputConsoleChar( TCHAR ch );
|
||||||
|
|
|
@ -625,7 +625,7 @@ static void DrawFrameWindow ()
|
||||||
if (g_nAppMode == MODE_LOGO)
|
if (g_nAppMode == MODE_LOGO)
|
||||||
VideoDisplayLogo();
|
VideoDisplayLogo();
|
||||||
else if (g_nAppMode == MODE_DEBUG)
|
else if (g_nAppMode == MODE_DEBUG)
|
||||||
DebugDisplay(TRUE);
|
DebugDisplay();
|
||||||
else
|
else
|
||||||
VideoRedrawScreen();
|
VideoRedrawScreen();
|
||||||
|
|
||||||
|
@ -1842,7 +1842,7 @@ static void ProcessButtonClick(int button, bool bFromButtonUI /*=false*/)
|
||||||
{
|
{
|
||||||
CtrlReset();
|
CtrlReset();
|
||||||
if (g_nAppMode == MODE_DEBUG)
|
if (g_nAppMode == MODE_DEBUG)
|
||||||
DebugDisplay(TRUE, TRUE);
|
DebugDisplay(TRUE);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1861,7 +1861,7 @@ static void ProcessButtonClick(int button, bool bFromButtonUI /*=false*/)
|
||||||
// NB. Don't exit debugger or stepping
|
// NB. Don't exit debugger or stepping
|
||||||
|
|
||||||
if (g_nAppMode == MODE_DEBUG)
|
if (g_nAppMode == MODE_DEBUG)
|
||||||
DebugDisplay(TRUE, TRUE);
|
DebugDisplay(TRUE);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user