Allow Amiberry screen to be a resizable window, if started from an X desktop.
This commit is contained in:
parent
a545beb3f4
commit
8029ab4551
2 changed files with 11 additions and 11 deletions
|
@ -303,12 +303,12 @@ int graphics_setup(void)
|
|||
|
||||
if (sdlWindow == nullptr)
|
||||
{
|
||||
sdlWindow = SDL_CreateWindow("Amiberry-GUI",
|
||||
sdlWindow = SDL_CreateWindow("Amiberry",
|
||||
SDL_WINDOWPOS_UNDEFINED,
|
||||
SDL_WINDOWPOS_UNDEFINED,
|
||||
0,
|
||||
0,
|
||||
SDL_WINDOW_FULLSCREEN_DESKTOP);
|
||||
800,
|
||||
480,
|
||||
SDL_WINDOW_SHOWN | SDL_WINDOW_RESIZABLE);
|
||||
check_error_sdl(sdlWindow == nullptr, "Unable to create window");
|
||||
}
|
||||
|
||||
|
|
|
@ -239,14 +239,14 @@ namespace sdl
|
|||
void setup_cursor()
|
||||
{
|
||||
// Detect resolution and load appropiate cursor image
|
||||
if (sdlMode.w > 1280)
|
||||
{
|
||||
cursor_surface = SDL_LoadBMP("data/cursor-x2.bmp");
|
||||
}
|
||||
else
|
||||
{
|
||||
//if (sdlMode.w > 1280)
|
||||
//{
|
||||
// cursor_surface = SDL_LoadBMP("data/cursor-x2.bmp");
|
||||
//}
|
||||
//else
|
||||
//{
|
||||
cursor_surface = SDL_LoadBMP("data/cursor.bmp");
|
||||
}
|
||||
//}
|
||||
|
||||
if (!cursor_surface)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue