[Scummvm-git-logs] scummvm master -> 11b25f3fcfea93b28a69b36248c079c0e862638c
dwatteau
noreply at scummvm.org
Sun Aug 11 16:39:26 UTC 2024
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
11b25f3fcf SURFACESDL: Fix -Wcalloc-transposed-args warning from GCC 14.1.0
Commit: 11b25f3fcfea93b28a69b36248c079c0e862638c
https://github.com/scummvm/scummvm/commit/11b25f3fcfea93b28a69b36248c079c0e862638c
Author: Donovan Watteau (contrib at dwatteau.fr)
Date: 2024-08-11T18:39:11+02:00
Commit Message:
SURFACESDL: Fix -Wcalloc-transposed-args warning from GCC 14.1.0
Changed paths:
backends/graphics/surfacesdl/surfacesdl-graphics.cpp
diff --git a/backends/graphics/surfacesdl/surfacesdl-graphics.cpp b/backends/graphics/surfacesdl/surfacesdl-graphics.cpp
index 87edfff96a2..823688cb7b8 100644
--- a/backends/graphics/surfacesdl/surfacesdl-graphics.cpp
+++ b/backends/graphics/surfacesdl/surfacesdl-graphics.cpp
@@ -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++) {
More information about the Scummvm-git-logs
mailing list