mirror of
https://github.com/AppleWin/AppleWin.git
synced 2024-06-26 01:29:30 +00:00
Fix: 80-column video mode wasn't being detected as needing an update, when FLASH chars only existed in AUX text pages.
This commit is contained in:
parent
8c019bcd35
commit
efd2e4405a
|
@ -1940,12 +1940,12 @@ BOOL VideoApparentlyDirty ()
|
|||
|
||||
//
|
||||
|
||||
bool bCharFlashing = false;
|
||||
|
||||
// Scan visible text page for any flashing chars
|
||||
if((SW_TEXT || SW_MIXED) && (g_nAltCharSetOffset == 0))
|
||||
{
|
||||
BYTE* pnMemText = MemGetMainPtr(0x400 << (SW_PAGE2 ? 1 : 0));
|
||||
BYTE* pTextBank0 = MemGetMainPtr(0x400 << (SW_PAGE2 ? 1 : 0));
|
||||
BYTE* pTextBank1 = MemGetAuxPtr (0x400 << (SW_PAGE2 ? 1 : 0));
|
||||
const bool b80Col = SW_80COL;
|
||||
|
||||
// Scan 8 long-lines of 120 chars (at 128 char offsets):
|
||||
// . Skip 8-char holes in TEXT
|
||||
|
@ -1953,19 +1953,20 @@ BOOL VideoApparentlyDirty ()
|
|||
{
|
||||
for(UINT x=0; x<40*3; x++)
|
||||
{
|
||||
BYTE ch = pnMemText[y*128+x];
|
||||
BYTE ch = pTextBank0[y*128+x];
|
||||
if((ch >= 0x40) && (ch <= 0x7F))
|
||||
return 1;
|
||||
|
||||
if (b80Col)
|
||||
{
|
||||
bCharFlashing = true;
|
||||
break;
|
||||
ch = pTextBank1[y*128+x];
|
||||
if((ch >= 0x40) && (ch <= 0x7F))
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if(bCharFlashing)
|
||||
return 1;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user