Skip to content

Commit

Permalink
Fixed previous hack for some games that use half of the vertical reso…
Browse files Browse the repository at this point in the history
…lution
  • Loading branch information
ata4 committed Aug 15, 2017
1 parent 4763255 commit 76355a2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/vi.c
Expand Up @@ -972,14 +972,15 @@ int vi_process_init(void)
msg_error("VI_V_SYNC_REG too big");
if (vactivelines < 0)
return 0;
vactivelines >>= lineshifter;

// HACK: some games render more than 480 lines, even though the VI only
// supports 480(?), just crop away the excess for now
if (vactivelines > PRESCALE_HEIGHT_OUTPUT) {
vactivelines = PRESCALE_HEIGHT_OUTPUT;
}

vactivelines >>= lineshifter;

int validh = (hres > 0 && h_start < PRESCALE_WIDTH);


Expand Down

0 comments on commit 76355a2

Please sign in to comment.