Browse code

Merge branch 'main' of git.sr.ht:~rabbits/uxn

neauoire authored on 06/01/2022 22:32:35
Showing 1 changed files
... ...
@@ -112,7 +112,7 @@ set_size(Uint16 width, Uint16 height, int is_resize)
112 112
 	gRect.h = uxn_screen.height;
113 113
 	if(gTexture != NULL) SDL_DestroyTexture(gTexture);
114 114
 	SDL_RenderSetLogicalSize(gRenderer, uxn_screen.width + PAD * 2, uxn_screen.height + PAD * 2);
115
-	gTexture = SDL_CreateTexture(gRenderer, SDL_PIXELFORMAT_XRGB8888, SDL_TEXTUREACCESS_STATIC, uxn_screen.width, uxn_screen.height);
115
+	gTexture = SDL_CreateTexture(gRenderer, SDL_PIXELFORMAT_RGB888, SDL_TEXTUREACCESS_STATIC, uxn_screen.width, uxn_screen.height);
116 116
 	if(gTexture == NULL || SDL_SetTextureBlendMode(gTexture, SDL_BLENDMODE_NONE))
117 117
 		return error("gTexture", SDL_GetError());
118 118
 	if(SDL_UpdateTexture(gTexture, NULL, uxn_screen.pixels, sizeof(Uint32)) != 0)