]> Shamusworld >> Repos - thunder/blobdiff - src/screen.cpp
Changed main emu code to use preallocated arrays
[thunder] / src / screen.cpp
index 353229fb8e3d1cff2416828a5739dc27e97df0e5..654c277e8e87f24f9590cd7a469cbe386be321fa 100755 (executable)
@@ -264,7 +264,7 @@ void BlitChar(SDL_Surface * scr, uint8 * chr, uint8 * ram)
 //
 void DrawSprites(uint8 priority)
 {
-       extern uint8 * gram1;                                                           // Game RAM space
+       extern uint8 gram1[];                                                           // Game RAM space
 
        for(uint16 i=0x5800; i<0x6000; i+=0x10)
        {
@@ -291,7 +291,7 @@ void DrawSprites(uint8 priority)
 //
 void Sprite(uint32 sprnum, uint16 x, uint16 y, uint8 flip, uint16 spr_id)
 {
-       extern uint8 * spr_rom;
+       extern uint8 spr_rom[];
        // To show or not to show a 16x16 block in the 4x4 grid...
        bool horiz_bl = false, vert_bl = false;
        uint32 sc_addr;