SURFACESDL: Fix -Wcalloc-transposed-args warning from GCC 14.1.0

This commit is contained in:
Donovan Watteau 2024-08-11 18:38:55 +02:00
parent 7fa4d3daa7
commit 11b25f3fcf

View File

@ -141,9 +141,9 @@ SurfaceSdlGraphicsManager::SurfaceSdlGraphicsManager(SdlEventSource *sdlEventSou
_mouseKeyColor(0), _disableMouseKeyColor(false) {
// allocate palette storage
_currentPalette = (SDL_Color *)calloc(sizeof(SDL_Color), 256);
_overlayPalette = (SDL_Color *)calloc(sizeof(SDL_Color), 256);
_cursorPalette = (SDL_Color *)calloc(sizeof(SDL_Color), 256);
_currentPalette = (SDL_Color *)calloc(256, sizeof(SDL_Color));
_overlayPalette = (SDL_Color *)calloc(256, sizeof(SDL_Color));
_cursorPalette = (SDL_Color *)calloc(256, sizeof(SDL_Color));
// Generate RGB332 palette for overlay
for (uint i = 0; i < 256; i++) {