Page 1 of 1
VDP_setScrollingMode error
Posted: Fri Aug 23, 2013 10:53 am
by Moon-Watcher
Seems VDP_setScrollingMode doesn't restore horizontal scroll by plane if it were previously set by tile. Not tested by line or vertical.
Code: Select all
VDP_setScrollingMode ( HSCROLL_TILE, VSCROLL_PLANE );
...
VDP_setScrollingMode ( HSCROLL_PLANE, VSCROLL_PLANE ); // doesn't work
VDP_setReg ( 0x0B, 0 ); // resets scroll; of course it works
Re: VDP_setScrollingMode error
Posted: Fri Aug 23, 2013 1:56 pm
by Stef
Moon-Watcher wrote:Seems VDP_setScrollingMode doesn't restore horizontal scroll by plane if it were previously set by tile. Not tested by line or vertical.
Code: Select all
VDP_setScrollingMode ( HSCROLL_TILE, VSCROLL_PLANE );
...
VDP_setScrollingMode ( HSCROLL_PLANE, VSCROLL_PLANE ); // doesn't work
VDP_setReg ( 0x0B, 0 ); // resets scroll; of course it works
Thanks

I noticed this bug, it's fixed in the current source trunk but i didn't posted yet official release including the fix.
You can have the fixed vdp.c file here (but i think it won't compile with your current SGDK version as i made severals others changes) :
http://code.google.com/p/sgdk/source/br ... /src/vdp.c
Posted: Fri Aug 23, 2013 2:03 pm
by Moon-Watcher
Thanks for sharing. I also found SND_stopPlay_TFM() in sound.c

Posted: Fri Aug 23, 2013 3:25 pm
by Stef
Yeah there is some improvements & changes but i want to be in stable state before doing a new official version
