diff --git a/SDLU/graphics/RenderWindow.cpp b/SDLU/graphics/RenderWindow.cpp index eb9c3fb..636e6b7 100644 --- a/SDLU/graphics/RenderWindow.cpp +++ b/SDLU/graphics/RenderWindow.cpp @@ -216,7 +216,7 @@ namespace sdlu { size_t size = static_cast(width) * static_cast(height) * 4; void* _pixels = malloc(size); - memcpy(_pixels, pixels, size); + std::memcpy(_pixels, pixels, size); SDL_Surface* surface = SDL_CreateRGBSurfaceWithFormatFrom(_pixels, width, height, 32, 32 * width, SDL_PIXELFORMAT_RGBA8888); @@ -228,7 +228,7 @@ namespace sdlu { size_t size = static_cast(width) * static_cast(height) * 4; void* _pixels = malloc(size); - memcpy(_pixels, pixels, size); + std::memcpy(_pixels, pixels, size); SDL_Surface* surface = SDL_CreateRGBSurfaceWithFormatFrom(_pixels, width, height, 32, 4 * width, SDL_PIXELFORMAT_RGBA8888); @@ -267,7 +267,7 @@ namespace sdlu { size_t _size = static_cast(size.x) * static_cast(size.y) * 4; void* _pixels = malloc(_size); - memcpy(_pixels, pixels, _size); + std::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); @@ -277,7 +277,7 @@ namespace sdlu { size_t _size = static_cast(size.x) * static_cast(size.y) * 4; void* _pixels = malloc(_size); - memcpy(_pixels, pixels, _size); + std::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); diff --git a/SDLU/structures/Vector2.hpp b/SDLU/structures/Vector2.hpp index 233e615..8e6d792 100644 --- a/SDLU/structures/Vector2.hpp +++ b/SDLU/structures/Vector2.hpp @@ -60,7 +60,7 @@ namespace sdlu friend Vector2 operator-(const Vector2& left, const Vector2& right) { - return left + (-right) + return left + (-right); } friend Vector2 operator*(const Vector2& left, const Vector2& right)