pokitto / PokittoLib

Library for making programs on Pokitto hardware
22 stars 16 forks source link

Bug in Tilemap #138

Closed sbmrgd closed 3 years ago

sbmrgd commented 3 years ago

Currently Tilemap cannot be used by a screen mode that is not TASMODE, one gets an undefined reference to SDL_RenderCopySolid. The reason for this: in Tilemap.hpp we have:

#if PROJ_SCREENMODE == TASMODE
...
#else

void SDL_RenderCopySolid( const uint8_t *data, uint32_t width, uint32_t height, int32_t x, int32_t y );
...

while in Tilemap.cpp we have:

#ifndef TASMODE

void SDL_RenderCopySolid( const uint8_t *data, uint32_t width, uint32_t height, int32_t x, int32_t y )

if we change the #ifndef TASMODE to #if PROJ_SCREENMODE != TASMODE, then it runs.

pokitto commented 3 years ago

Fixed