mirror of https://github.com/libsdl-org/SDL.git
Correct the texture format used for the N-Gage (#13192)
This commit is contained in:
parent
685f1720fe
commit
f2bcfe3dd2
|
|
@ -119,7 +119,7 @@ static bool NGAGE_CreateRenderer(SDL_Renderer *renderer, SDL_Window *window, SDL
|
|||
renderer->window = window;
|
||||
renderer->internal = phdata;
|
||||
|
||||
SDL_AddSupportedTextureFormat(renderer, SDL_PIXELFORMAT_ARGB4444);
|
||||
SDL_AddSupportedTextureFormat(renderer, SDL_PIXELFORMAT_XRGB4444);
|
||||
SDL_SetNumberProperty(SDL_GetRendererProperties(renderer), SDL_PROP_RENDERER_MAX_TEXTURE_SIZE_NUMBER, 1024);
|
||||
SDL_SetHintWithPriority(SDL_HINT_RENDER_LINE_METHOD, "2", SDL_HINT_OVERRIDE);
|
||||
|
||||
|
|
|
|||
|
|
@ -105,7 +105,7 @@ static bool NGAGE_VideoInit(SDL_VideoDevice *device)
|
|||
phdata->mode.w = 176;
|
||||
phdata->mode.h = 208;
|
||||
phdata->mode.refresh_rate = 60.0f;
|
||||
phdata->mode.format = SDL_PIXELFORMAT_ARGB4444;
|
||||
phdata->mode.format = SDL_PIXELFORMAT_XRGB4444;
|
||||
|
||||
phdata->display.name = "N-Gage";
|
||||
phdata->display.desktop_mode = phdata->mode;
|
||||
|
|
|
|||
Loading…
Reference in New Issue