fixed nametable prerender bug

This commit is contained in:
Lauchmelder 2021-10-30 22:55:21 +02:00
parent 674ee5059b
commit bcbcea5d15
3 changed files with 4 additions and 4 deletions

View file

@ -104,6 +104,6 @@ void Mapper000_GetPatternTableTexture(void* mapper, SDL_Texture* texture, int in
int pitch;
void* pixels;
SDL_LockTexture(texture, NULL, &pixels, &pitch);
SDL_memcpy(pixels, sMapper->chr_rom + 0x1000 * index, 0x1000);
SDL_memcpy(pixels, sMapper->chr_rom + (size_t)0x1000 * index, 0x1000);
SDL_UnlockTexture(texture);
}