Skip to content

Commit

Permalink
megaoops
Browse files Browse the repository at this point in the history
  • Loading branch information
dinkc64 committed Nov 22, 2024
1 parent 198a4ad commit 44f4419
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/burn/drv/megadrive/megadrive.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4803,18 +4803,18 @@ static INT32 res_check()
if ((MegadriveDIP[1] & 3) == 3 && (~RamVReg->reg[12] & 1)) {
BurnDrvGetVisibleSize(&screen_width, &screen_height);

if (screen_width != 256 || screen_height != v_res[v_idx]) {
bprintf(0, _T("switching to 256 x %d mode\n"), v_res[v_idx]);
BurnDrvSetVisibleSize(256, v_res[v_idx]);
if (screen_width != 256 || screen_height != 224) {
bprintf(0, _T("switching to 256 x 224 mode\n"));
BurnDrvSetVisibleSize(256, 224);
Reinitialise();
return 1;
}
} else {
BurnDrvGetVisibleSize(&screen_width, &screen_height);

if (screen_width != 320 || screen_height != v_res[v_idx]) {
bprintf(0, _T("switching to 320 x %d mode\n"), v_res[v_idx]);
BurnDrvSetVisibleSize(320, v_res[v_idx]);
if (screen_width != 320 || screen_height != 224) {
bprintf(0, _T("switching to 320 x 224 mode\n"));
BurnDrvSetVisibleSize(320, 224);
Reinitialise();
return 1;
}
Expand Down

0 comments on commit 44f4419

Please sign in to comment.