[Scummvm-git-logs] scummvm master -> ca4b64beeb7b6aeb09802a86aaf88fe88c4ec5fc

sev- noreply at scummvm.org
Sun Sep 29 15:26:49 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:
ca4b64beeb BACKENDS: SURFACESDL: Fix image generation for ImGui. Courtesy of lephilosouphe


Commit: ca4b64beeb7b6aeb09802a86aaf88fe88c4ec5fc
    https://github.com/scummvm/scummvm/commit/ca4b64beeb7b6aeb09802a86aaf88fe88c4ec5fc
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2024-09-29T17:26:34+02:00

Commit Message:
BACKENDS: SURFACESDL: Fix image generation for ImGui. Courtesy of lephilosouphe

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 db5d3e42ca5..9a63088c700 100644
--- a/backends/graphics/surfacesdl/surfacesdl-graphics.cpp
+++ b/backends/graphics/surfacesdl/surfacesdl-graphics.cpp
@@ -2986,7 +2986,7 @@ void *SurfaceSdlGraphicsManager::getImGuiTexture(const Graphics::Surface &image,
 		return nullptr;
 	}
 
-	Graphics::Surface *s = image.convertTo(Graphics::PixelFormat(4, 8, 8, 8, 8, 24, 16, 8, 0), palette, palCount);
+	Graphics::Surface *s = image.convertTo(Graphics::PixelFormat(4, 8, 8, 8, 8, 0, 8, 16, 24), palette, palCount);
 	SDL_UpdateTexture(texture, nullptr, s->getPixels(), s->pitch);
 	SDL_SetTextureBlendMode(texture, SDL_BLENDMODE_BLEND);
 	SDL_SetTextureScaleMode(texture, SDL_ScaleModeLinear);




More information about the Scummvm-git-logs mailing list