Skip to content
Permalink
Browse files
Fixed previous hack for some games that use half of the vertical reso…
…lution
  • Loading branch information
ata4 committed Aug 15, 2017
1 parent 4763255 commit 76355a2a66a0f317e75248c9081d6dc61aa09c91
Showing with 2 additions and 1 deletion.
  1. +2 −1 core/vi.c
@@ -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);


0 comments on commit 76355a2

Please sign in to comment.