A better attempt at borderless
@@ -253,8 +253,6 @@ public class SdlGraphics extends Graphics{
@Override
public void setBorderless(boolean borderless){
- if(!OS.isWindows){
- //on linux, and possibly mac, the window is shown without any border, but not actually fullscreen.
boolean maximized = (SDL_GetWindowFlags(app.window) & SDL_WINDOW_MAXIMIZED) == SDL_WINDOW_MAXIMIZED;
if(maximized && OS.isLinux){
SDL_RestoreWindow(app.window);
@@ -276,10 +274,6 @@ public class SdlGraphics extends Graphics{
SDL_SetWindowPosition(app.window, bounds[0], bounds[1]);
SDL_SetWindowSize(app.window, bounds[2], bounds[3]);
- }else{
- //on windows, use fullscreen desktop
- SDL_SetWindowFullscreen(app.window, borderless ? SDL_WINDOW_FULLSCREEN_DESKTOP : 0);
- }
}
@Override
