Changed RGB format to 16-bit
This commit is contained in:
parent
fbd2d17fcb
commit
1ce5d0cae3
4 changed files with 5 additions and 4 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -24,3 +24,4 @@ Amiberry/VisualGDB/Debug/Amiberry
|
|||
Amiberry/VisualGDB/Release/Amiberry
|
||||
*.ipch
|
||||
*.TMP
|
||||
VisualGDB/VisualGDB/Release/Amiberry
|
||||
|
|
|
@ -658,7 +658,7 @@ static int real_main2 (int argc, TCHAR **argv)
|
|||
SDL_RenderSetLogicalSize(renderer, 800, 480);
|
||||
|
||||
texture = SDL_CreateTexture(renderer,
|
||||
SDL_PIXELFORMAT_ARGB8888,
|
||||
SDL_PIXELFORMAT_RGB565,
|
||||
SDL_TEXTUREACCESS_STREAMING,
|
||||
800,
|
||||
480);
|
||||
|
|
|
@ -170,7 +170,7 @@ namespace sdl
|
|||
//-------------------------------------------------
|
||||
// Create new screen for GUI
|
||||
//-------------------------------------------------
|
||||
gui_screen = SDL_CreateRGBSurface(0, GUI_WIDTH, GUI_HEIGHT, 32, 0, 0, 0, 0);
|
||||
gui_screen = SDL_CreateRGBSurface(0, GUI_WIDTH, GUI_HEIGHT, 16, 0, 0, 0, 0);
|
||||
check_error_sdl(gui_screen == nullptr, "Unable to create a surface");
|
||||
|
||||
SDL_ShowCursor(SDL_ENABLE);
|
||||
|
|
|
@ -215,7 +215,7 @@ static void open_screen(struct uae_prefs *p)
|
|||
if(prSDLScreen == NULL || prSDLScreen->w != p->gfx_size.width || prSDLScreen->h != p->gfx_size.height)
|
||||
{
|
||||
// prSDLScreen = SDL_SetVideoMode(p->gfx_size.width, p->gfx_size.height, 16, SDL_HWSURFACE|SDL_FULLSCREEN|SDL_DOUBLEBUF);
|
||||
prSDLScreen = SDL_CreateRGBSurface(0, p->gfx_size.width, p->gfx_size.height, 32, 0, 0, 0, 0);
|
||||
prSDLScreen = SDL_CreateRGBSurface(0, p->gfx_size.width, p->gfx_size.height, 16, 0, 0, 0, 0);
|
||||
check_error_sdl(prSDLScreen == nullptr, "Unable to create a surface");
|
||||
|
||||
// make the scaled rendering look smoother.
|
||||
|
@ -239,7 +239,7 @@ static void open_screen(struct uae_prefs *p)
|
|||
// prSDLScreen = SDL_SetVideoMode(picasso_vidinfo.width, picasso_vidinfo.height, 16, SDL_HWSURFACE|SDL_FULLSCREEN|SDL_DOUBLEBUF);
|
||||
if (prSDLScreen == NULL || prSDLScreen->w != picasso_vidinfo.width || prSDLScreen->h != picasso_vidinfo.height)
|
||||
{
|
||||
prSDLScreen = SDL_CreateRGBSurface(0, picasso_vidinfo.width, picasso_vidinfo.height, 32, 0, 0, 0, 0);
|
||||
prSDLScreen = SDL_CreateRGBSurface(0, picasso_vidinfo.width, picasso_vidinfo.height, 16, 0, 0, 0, 0);
|
||||
check_error_sdl(prSDLScreen == nullptr, "Unable to create a surface");
|
||||
|
||||
// make the scaled rendering look smoother.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue