troy56 / palibds

Automatically exported from code.google.com/p/palibds
0 stars 0 forks source link

PA_DeleteGfx bug in 7th gfx loades #31

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
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