Replaced all usage of SDL_Color outside of render with ColorRGBA

This commit is contained in:
Ivan Savenko committed 2023-07-31 21:07:30 +03:00
1 parent 323537e4bd
commit 43795c39a5
68 files changed
+251 -252

No files matched your search

+1 -1
View File
@@ -56,7 +56,7 @@ void CursorSoftware::updateTexture()
if (!cursorSurface || Point(cursorSurface->w, cursorSurface->h) != cursorImage->dimensions())
createTexture(cursorImage->dimensions());
CSDL_Ext::fillSurface(cursorSurface, Colors::TRANSPARENCY);
CSDL_Ext::fillSurface(cursorSurface, CSDL_Ext::toSDL(Colors::TRANSPARENCY));
cursorImage->draw(cursorSurface);
SDL_UpdateTexture(cursorTexture, NULL, cursorSurface->pixels, cursorSurface->pitch);