#888 - Epo - Sat Jan 11, 2003 8:29 pm
When I'm fading using REG_COLEY, in VisualBoy Adv there seems to be some tearing. I am waiting for the vblank, but that doesnt seem to work. Is there a way to avoid this tearing? Or is it just a VisualBoy Adv problem (I am not using a very fast computer, especially when it comes to graphics). I have not tried the fading on an actual GBA; I have no linker, yet.
So am I just doing the fading wrong, or is it just VBA's error?
[/code]
So am I just doing the fading wrong, or is it just VBA's error?
Code: |
// Fades in void FadeIn (u32 nWait) { s8 nIntensity; REG_BLDMOD = (1 | 2 | 4 | 8 | 16 | 32 | (192)); for (nIntensity = 16; nIntensity >= 0; nIntensity--) { WaitForVBlank(); REG_COLEY = nIntensity; Sleep (nWait); } } |