Commit df7b4814 authored by Laurent Aimar's avatar Laurent Aimar

Fix CD+G scrolling.

It was broken by f9b664ea.
parent 2bf6fb20
......@@ -324,8 +324,8 @@ static int DecodeScroll( decoder_sys_t *p_cdg, const uint8_t *p_data, int b_copy
if( b_copy )
{
dy %= CDG_SCREEN_HEIGHT;
dx %= CDG_SCREEN_WIDTH;
dy = (dy + CDG_SCREEN_HEIGHT) % CDG_SCREEN_HEIGHT;
dx = (dx + CDG_SCREEN_WIDTH ) % CDG_SCREEN_WIDTH;
}
else
{
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment