v2.5.0: added better multi-monitor fullscreen support
This commit is contained in:
@@ -433,7 +433,8 @@ public class SPDSettings extends GameSettings {
|
||||
public static final String KEY_WINDOW_WIDTH = "window_width";
|
||||
public static final String KEY_WINDOW_HEIGHT = "window_height";
|
||||
public static final String KEY_WINDOW_MAXIMIZED = "window_maximized";
|
||||
|
||||
public static final String KEY_FULLSCREEN_MONITOR = "fullscreen_monitor";
|
||||
|
||||
public static void windowResolution( Point p ){
|
||||
put(KEY_WINDOW_WIDTH, p.x);
|
||||
put(KEY_WINDOW_HEIGHT, p.y);
|
||||
@@ -453,4 +454,12 @@ public class SPDSettings extends GameSettings {
|
||||
public static boolean windowMaximized(){
|
||||
return getBoolean( KEY_WINDOW_MAXIMIZED, false );
|
||||
}
|
||||
|
||||
public static void fulLScreenMonitor( int value ){
|
||||
put( KEY_FULLSCREEN_MONITOR, value);
|
||||
}
|
||||
|
||||
public static int fulLScreenMonitor(){
|
||||
return getInt( KEY_FULLSCREEN_MONITOR, 0 );
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user