diff --git a/SDLU/graphics/RenderWindow.cpp b/SDLU/graphics/RenderWindow.cpp index 9baf624..310d977 100644 --- a/SDLU/graphics/RenderWindow.cpp +++ b/SDLU/graphics/RenderWindow.cpp @@ -219,7 +219,7 @@ namespace sdlu { size_t size = static_cast(width) * static_cast(height) * 4; void* _pixels = malloc(size); - std::memcpy(_pixels, pixels, size); + memcpy(_pixels, pixels, size); SDL_Surface* surface = SDL_CreateRGBSurfaceWithFormatFrom(_pixels, width, height, 32, 32 * width, SDL_PIXELFORMAT_RGBA8888); @@ -231,7 +231,7 @@ namespace sdlu { size_t size = static_cast(width) * static_cast(height) * 4; void* _pixels = malloc(size); - std::memcpy(_pixels, pixels, size); + memcpy(_pixels, pixels, size); SDL_Surface* surface = SDL_CreateRGBSurfaceWithFormatFrom(_pixels, width, height, 32, 4 * width, SDL_PIXELFORMAT_RGBA8888); @@ -270,7 +270,7 @@ namespace sdlu { size_t _size = static_cast(size.x) * static_cast(size.y) * 4; void* _pixels = malloc(_size); - std::memcpy(_pixels, pixels, _size); + memcpy(_pixels, pixels, _size); SDL_Surface* surface = SDL_CreateRGBSurfaceWithFormatFrom(_pixels, size.x, size.y, 32, 8 * size.x, SDL_PIXELFORMAT_RGBA8888); this->SetMouseCursor(surface, clickspot); @@ -280,7 +280,7 @@ namespace sdlu { size_t _size = static_cast(size.x) * static_cast(size.y) * 4; void* _pixels = malloc(_size); - std::memcpy(_pixels, pixels, _size); + memcpy(_pixels, pixels, _size); SDL_Surface* surface = SDL_CreateRGBSurfaceWithFormatFrom(_pixels, size.x, size.y, 32, 8 * size.x, SDL_PIXELFORMAT_RGBA32); this->SetMouseCursor(surface, clickspot);