Skip to content
Snippets Groups Projects
Commit 0d312366 authored by Xi Wang's avatar Xi Wang Committed by Anton Khirnov
Browse files

cdgraphics: fix incorrect vertical offset mask in cdg_scroll()


The vertical offset mask 0x07 is suspicious.

    v_off = FFMIN(data[2] & 0x07, CDG_BORDER_HEIGHT - 1);

Note that v_off is up to 11 (CDG_BORDER_HEIGHT - 1), the correct mask
should be 0x0F.

Signed-off-by: default avatarXi Wang <xi.wang@gmail.com>
Signed-off-by: default avatarAnton Khirnov <anton@khirnov.net>
parent b655cfef
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment