Closed sbmrgd closed 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.
#ifndef TASMODE
#if PROJ_SCREENMODE != TASMODE
Fixed
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:
while in Tilemap.cpp we have:
if we change the
#ifndef TASMODE
to#if PROJ_SCREENMODE != TASMODE
, then it runs.