...
|
...
|
@@ -113,7 +113,7 @@ set_size(Uint16 width, Uint16 height, int is_resize)
|
113
|
113
|
gRect.h = uxn_screen.height;
|
114
|
114
|
if(gTexture != NULL) SDL_DestroyTexture(gTexture);
|
115
|
115
|
SDL_RenderSetLogicalSize(gRenderer, uxn_screen.width + PAD * 2, uxn_screen.height + PAD * 2);
|
116
|
|
- gTexture = SDL_CreateTexture(gRenderer, SDL_PIXELFORMAT_XRGB8888, SDL_TEXTUREACCESS_STATIC, uxn_screen.width, uxn_screen.height);
|
|
116
|
+ gTexture = SDL_CreateTexture(gRenderer, SDL_PIXELFORMAT_RGB888, SDL_TEXTUREACCESS_STATIC, uxn_screen.width, uxn_screen.height);
|
117
|
117
|
if(gTexture == NULL || SDL_SetTextureBlendMode(gTexture, SDL_BLENDMODE_NONE))
|
118
|
118
|
return error("gTexture", SDL_GetError());
|
119
|
119
|
if(SDL_UpdateTexture(gTexture, NULL, uxn_screen.pixels, sizeof(Uint32)) != 0)
|