Browse Source

- add support for phone resolutions to nifty preview

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8368 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
nor..67 14 years ago
parent
commit
9a326970a1
1 changed files with 7 additions and 1 deletions
  1. 7 1
      jme3-gui/src/com/jme3/gde/gui/multiview/NiftyPreviewPanel.java

+ 7 - 1
jme3-gui/src/com/jme3/gde/gui/multiview/NiftyPreviewPanel.java

@@ -73,7 +73,7 @@ public class NiftyPreviewPanel extends PanelView {
         toolBar.setPreferredSize(new Dimension(10000, 24));
         toolBar.setMaximumSize(new Dimension(10000, 24));
         toolBar.setFloatable(false);
-        JComboBox comboBox = new JComboBox(new String[]{"640x480", "800x600", "1024x768", "1280x720"});
+        JComboBox comboBox = new JComboBox(new String[]{"640x480", "480x800","800x480", "800x600", "1024x768", "1280x720"});
         comboBox.addItemListener(new ItemListener() {
 
             public void itemStateChanged(ItemEvent e) {
@@ -92,6 +92,12 @@ public class NiftyPreviewPanel extends PanelView {
                 } else if ("800x600".equals(string)) {
                     width = 800;
                     height = 600;
+                } else if ("800x480".equals(string)) {
+                    width = 800;
+                    height = 480;
+                } else if ("480x800".equals(string)) {
+                    width = 480;
+                    height = 800;
                 } else {
                     width = 640;
                     height = 480;