Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PA_DeleteGfx bug in 7th gfx loades #31

Open
GoogleCodeExporter opened this issue Mar 15, 2015 · 0 comments
Open

PA_DeleteGfx bug in 7th gfx loades #31

GoogleCodeExporter opened this issue Mar 15, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

What area(s) of the source will need to be altered?
pa_sprite.h ?

What steps will reproduce the problem?
    for (n = 1; n < 13; n ++) {     // Y carga el nuevo SET de 
Sprites
        PA_SetSpriteGfx(0, (SPRITE_TABLERO_01 + n), TABLERO_01_GFX
[0][(n + 12)]);
        PA_SetSpriteGfx(1, (SPRITE_TABLERO_01 + n), TABLERO_01_GFX
[1][(n + 12)]);
    }
    PA_WaitForVBL();


    for (n = 0; n < 13; n ++) {     // Borra el set de Sprites 
no usado (Libera VRAM)
        if (n != 7) { // Prevent BUG on PALIB
            PA_DeleteGfx(0, TABLERO_01_GFX[0][n]);
        }
    }


What is the expected output? What do you see instead?
Clear some GFX, if you try to delete the 7th one, it clears all gfx in 
BOTH screens

What version of PAlib are you using?
080823

Testing on DS or emulator?
both

Please provide any additional information below.
See the code example before those lines

Original issue reported on code.google.com by knigth...@gmail.com on 22 Nov 2008 at 10:31

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant