ref: f3df3f65611f02d0322be2009416fc60f89da4cc
parent: beab4cac815271a0f9afccabb4246c932a17e82e
author: Jacob Moody <moody@posixcafe.org>
date: Sun Aug 27 16:25:19 EDT 2023
switch back to the correct format now that npe has merged support
--- a/src/platform_sdl.c
+++ b/src/platform_sdl.c
@@ -175,7 +175,7 @@
if (screenbuffer) {
SDL_DestroyTexture(screenbuffer);
}
- screenbuffer = SDL_CreateTexture(renderer, SDL_PIXELFORMAT_ARGB8888, SDL_TEXTUREACCESS_STREAMING, screen_size.x, screen_size.y);
+ screenbuffer = SDL_CreateTexture(renderer, SDL_PIXELFORMAT_ABGR8888, SDL_TEXTUREACCESS_STREAMING, screen_size.x, screen_size.y);
screenbuffer_size = screen_size;
}
SDL_LockTexture(screenbuffer, NULL, &screenbuffer_pixels, &screenbuffer_pitch);