From 799ffc76044456829c5cdec763eb03e3bc89afd2 Mon Sep 17 00:00:00 2001 From: Andrea Odetti Date: Sat, 20 Feb 2021 16:47:41 +0000 Subject: [PATCH] Fix https://github.com/audetto/AppleWin/issues/23 Page 2 is not used if 80STORE is set. Signed-off-by: Andrea Odetti --- source/frontends/ncurses/nframe.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source/frontends/ncurses/nframe.cpp b/source/frontends/ncurses/nframe.cpp index 618d1c9d..3984f565 100644 --- a/source/frontends/ncurses/nframe.cpp +++ b/source/frontends/ncurses/nframe.cpp @@ -141,7 +141,9 @@ void NFrame::VideoPresentScreen() Video & video = GetVideo(); - const int displaypage2 = video.VideoGetSWPAGE2() == 0 ? 0 : 1; + // see NTSC_SetVideoMode in NTSC.cpp + // we shoudl really use g_nTextPage and g_nHiresPage + const int displaypage2 = (video.VideoGetSWPAGE2() && !video.VideoGetSW80STORE()) ? 1 : 0; myHiresBank1 = MemGetAuxPtr (0x2000 << displaypage2); myHiresBank0 = MemGetMainPtr(0x2000 << displaypage2);