Skip to content

Commit 76355a2

Browse files
committed
Fixed previous hack for some games that use half of the vertical resolution
1 parent 4763255 commit 76355a2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

core/vi.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -972,14 +972,15 @@ int vi_process_init(void)
972972
msg_error("VI_V_SYNC_REG too big");
973973
if (vactivelines < 0)
974974
return 0;
975-
vactivelines >>= lineshifter;
976975

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

982+
vactivelines >>= lineshifter;
983+
983984
int validh = (hres > 0 && h_start < PRESCALE_WIDTH);
984985

985986

0 commit comments

Comments
 (0)