#201 cleanup to match coding standards

This commit is contained in:
michaelangel007 2014-07-28 14:18:32 -07:00
parent 598df5ce9b
commit ae5d765b2c

View File

@ -605,6 +605,7 @@ void FrameDrawDiskStatus( HDC passdc )
// Drive $B7EA $BE3D
// Track $B7EC LC1 $D356
// Sector $B7ED LC1 $D357
// RWTS LC1 $D300
int nActiveFloppy = DiskGetCurrentDrive();
int nDisk1Track = DiskGetTrack(0);
@ -615,7 +616,7 @@ void FrameDrawDiskStatus( HDC passdc )
bool isValid = true;
// Try DOS3.3 Sector
if( !isProDOS )
if ( !isProDOS )
{
int nDOS33track = mem[ 0xB7EC ];
int nDOS33sector = mem[ 0xB7ED ];
@ -638,12 +639,11 @@ void FrameDrawDiskStatus( HDC passdc )
else
isValid = false;
}
else
if( isProDOS ) // & regs.pc > 0xD000 ) // RWTS @ $D300
else // isProDOS
{
// we can't just read from mem[ 0xD357 ] since it might be bank-switched from ROM
// and we need the Language Card RAM
// memrom[ 0xD350 ] = " ERROR\x07\x00"
// memrom[ 0xD350 ] = " ERROR\x07\x00" Applesoft error message
// T S
int nProDOStrack = *MemGetMainPtr( 0xC356 ); // LC1 $D356
int nProDOSsector = *MemGetMainPtr( 0xC357 ); // LC1 $D357
@ -727,19 +727,16 @@ void FrameDrawDiskStatus( HDC passdc )
SetTextColor(dc,RGB(0,0,0));
SetBkMode(dc,TRANSPARENT);
// if( nActiveFloppy == 0 )
{
sprintf( text, "T%s", g_sTrackDrive1 );
TextOut(dc,x+6 ,y+32,text, strlen(text) );
sprintf( text, "S%s", g_sSectorDrive1 );
TextOut(dc,x+ 6,y+42, text, strlen(text) );
// } else {
sprintf( text, "T%s", g_sTrackDrive2 );
TextOut(dc,x+26,y+32,text, strlen(text) );
sprintf( text, "S%s", g_sSectorDrive2 );
TextOut(dc,x+26,y+42, text, strlen(text) );
}
}
}
//===========================================================================