Skip to content

Commit

Permalink
Fix TTF mode didn't switch to graphic mode on TANDY
Browse files Browse the repository at this point in the history
  • Loading branch information
maron2000 committed Oct 28, 2023
1 parent 99fac9a commit 6998aff
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/ints/int10_modes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -699,7 +699,11 @@ static bool SetCurMode(VideoModeBlock modeblock[],uint16_t mode) {
else {
if ((!int10.vesa_oldvbe) || (ModeList_VGA[i].mode<0x120)) {
CurMode=&modeblock[i];
return true;
#if defined(USE_TTF)
if(modeblock[i].type == M_TEXT) ttf_switch_on(false);
else ttf_switch_off(false); // Disable TTF output when switching to graphics mode
#endif
return true;
}
return false;
}
Expand Down Expand Up @@ -936,7 +940,7 @@ bool INT10_SetVideoMode_OTHER(uint16_t mode,bool clearmem) {
LOG(LOG_INT10,LOG_ERROR)("Trying to set illegal mode %X",mode);
return false;
}
break;
break;
case MCH_MCGA:
if (!SetCurMode(ModeList_MCGA,mode)) {
LOG(LOG_INT10,LOG_ERROR)("Trying to set illegal mode %X",mode);
Expand Down

0 comments on commit 6998aff

Please sign in to comment.