This is an automated email from the git hooks/post-receive script.

git pushed a commit to branch evas-sdl3-rewrite
in repository efl.

View the commit online.

commit e599ce63f9597cd273f6677948e91ab5fe1489a9
Author: Swagtoy <[email protected]>
AuthorDate: Sun May 10 14:07:38 2026 -0400

    software_sdl: Fix surface pixel format
    
    No more blue!
    
    Signed-off-by: Swagtoy <[email protected]>
---
 .../evas/engines/software_sdl/Evas_Engine_Software_SDL.h       |  1 +
 src/modules/evas/engines/software_sdl/evas_engine.c            | 10 +++++-----
 2 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/src/modules/evas/engines/software_sdl/Evas_Engine_Software_SDL.h b/src/modules/evas/engines/software_sdl/Evas_Engine_Software_SDL.h
index e153a85009..db7fc4620f 100644
--- a/src/modules/evas/engines/software_sdl/Evas_Engine_Software_SDL.h
+++ b/src/modules/evas/engines/software_sdl/Evas_Engine_Software_SDL.h
@@ -15,6 +15,7 @@ struct _Evas_Engine_Info_Software_SDL
    struct
      {
         // None. Bad?
+        SDL_PixelFormat format;
      } info;
 
 
diff --git a/src/modules/evas/engines/software_sdl/evas_engine.c b/src/modules/evas/engines/software_sdl/evas_engine.c
index 3c33dd1855..c365f4cc42 100644
--- a/src/modules/evas/engines/software_sdl/evas_engine.c
+++ b/src/modules/evas/engines/software_sdl/evas_engine.c
@@ -59,10 +59,10 @@ evas_software_sdl_outbuf_new_region_for_update(Outbuf *ob, int x, int y, int w,
 void
 evas_software_sdl_outbuf_reconfigure(Outbuf *ob, int w, int h, int rot EINA_UNUSED, Outbuf_Depth depth)
 {
-   Evas_Engine_Info_Software_SDL *info = ob->info;
-   if (info->surface)
-     SDL_DestroySurface(info->surface);
-   info->surface = SDL_CreateSurface(w, h, SDL_PIXELFORMAT_ABGR8888);
+   Evas_Engine_Info_Software_SDL *einfo = ob->info;
+   if (einfo->surface)
+     SDL_DestroySurface(einfo->surface);
+   einfo->surface = SDL_CreateSurface(w, h, einfo->info.format);
 }
 
 void
@@ -76,7 +76,7 @@ evas_software_sdl_outbuf_push_updated_region(Outbuf *ob, RGBA_Image *update, int
      }
 
    // map RGBA_Image data to a surface for convenience
-   SDL_Surface *tmpsurf = SDL_CreateSurfaceFrom(w, h, SDL_PIXELFORMAT_BGRA8888, update->image.data, w * row_bytes);
+   SDL_Surface *tmpsurf = SDL_CreateSurfaceFrom(w, h, SDL_PIXELFORMAT_ARGB8888, update->image.data, w * row_bytes);
 
    SDL_BlitSurface(tmpsurf, NULL, info->surface, NULL);
    SDL_DestroySurface(tmpsurf);

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.

Reply via email to