diff --git a/src/launcher/Launcher.java b/src/launcher/Launcher.java index 1ea4779..a7b2dea 100644 --- a/src/launcher/Launcher.java +++ b/src/launcher/Launcher.java @@ -67,7 +67,7 @@ public class Launcher extends Application { // Getting resolution ChoiceBox object from namespace ChoiceBox cb = (ChoiceBox) namespace.get("resolution"); // Assigning list of possible choices to ChoiceBox - ObservableList availableres = FXCollections.observableArrayList("640x480", "800x600", "1024x768", "1280x720", "1366x768", "1600x900", "1920x1080"); + ObservableList availableres = FXCollections.observableArrayList("320x240", "640x480", "800x600", "1024x768", "1280x720", "1366x768", "1600x900", "1920x1080"); cb.setItems(availableres); // Setting default ChoiceBox value to the one already in the config file if (!availableres.contains(setter.getResolution())) { @@ -183,6 +183,10 @@ public class Launcher extends Application { int width, height; ChoiceBox cb = (ChoiceBox) namespace.get("resolution"); switch (cb.getValue()) { + case "320x240": + width = 320; + height = 240; + break; case "800x600": width = 800; height = 600;