VDP_setScrollingMode error

SGDK only sub forum

Moderator: Stef

Post Reply
Moon-Watcher
Very interested
Posts: 117
Joined: Sun Jan 02, 2011 9:14 pm
Contact:

VDP_setScrollingMode error

Post by Moon-Watcher » Fri Aug 23, 2013 10:53 am

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

Stef
Very interested
Posts: 3131
Joined: Thu Nov 30, 2006 9:46 pm
Location: France - Sevres
Contact:

Re: VDP_setScrollingMode error

Post by Stef » Fri Aug 23, 2013 1:56 pm

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

Moon-Watcher
Very interested
Posts: 117
Joined: Sun Jan 02, 2011 9:14 pm
Contact:

Post by Moon-Watcher » Fri Aug 23, 2013 2:03 pm

Thanks for sharing. I also found SND_stopPlay_TFM() in sound.c :)

Stef
Very interested
Posts: 3131
Joined: Thu Nov 30, 2006 9:46 pm
Location: France - Sevres
Contact:

Post by Stef » Fri Aug 23, 2013 3:25 pm

Yeah there is some improvements & changes but i want to be in stable state before doing a new official version :)

Post Reply