avcodec/cdgraphics: unbreak rendering of vertical scrolling

This commit is contained in:
Paul B Mahol 2021-12-15 10:26:22 +01:00
parent 68457c1e85
commit 1c49d74fad
1 changed files with 1 additions and 1 deletions

View File

@ -218,7 +218,7 @@ static void cdg_scroll(CDGraphicsContext *cc, uint8_t *data,
/// find the difference and save the offset for cdg_tile_block usage
hinc = h_off - cc->hscroll;
vinc = v_off - cc->vscroll;
vinc = cc->vscroll - v_off;
cc->hscroll = h_off;
cc->vscroll = v_off;