Ticket #2286: fullscreen-rename-to-maximize.patch
File fullscreen-rename-to-maximize.patch, 2.4 KB (added by , 16 years ago) |
---|
-
src/org/openstreetmap/josm/gui/MainApplication.java
140 140 "\t[--download=]<filename> "+tr("Open file (as raw gps, if .gpx)")+"\n"+ 141 141 "\t--downloadgps=minlat,minlon,maxlat,maxlon "+tr("Download the bounding box as raw gps")+"\n"+ 142 142 "\t--selection=<searchstring> "+tr("Select with the given search")+"\n"+ 143 "\t--[no-] fullscreen "+tr("Launch in fullscreenmode")+"\n"+143 "\t--[no-]maximize "+tr("Launch in maximized mode")+"\n"+ 144 144 "\t--reset-preferences "+tr("Reset the preferences to default")+"\n\n"+ 145 145 "\t--language=<language> "+tr("Set the language.")+"\n\n"+ 146 146 tr("examples")+":\n"+ … … 175 175 mainFrame.setVisible(true); 176 176 splash.closeSplash(); 177 177 178 if (((!args.containsKey("no- fullscreen") && !args.containsKey("geometry")179 && Main.pref.get("gui.geometry").length() == 0) || args.containsKey(" fullscreen"))178 if (((!args.containsKey("no-maximize") && !args.containsKey("geometry") 179 && Main.pref.get("gui.geometry").length() == 0) || args.containsKey("maximize")) 180 180 && Toolkit.getDefaultToolkit().isFrameStateSupported(JFrame.MAXIMIZED_BOTH)) 181 181 mainFrame.setExtendedState(JFrame.MAXIMIZED_BOTH); 182 182 -
src/org/openstreetmap/josm/Main.java
307 307 System.out.println("Ignoring malformed geometry: "+geometry); 308 308 } 309 309 if (bounds == null) 310 bounds = !args.containsKey("no- fullscreen") ? new Rectangle(0,0,screenDimension.width,screenDimension.height) : new Rectangle(1000,740);310 bounds = !args.containsKey("no-maximize") ? new Rectangle(0,0,screenDimension.width,screenDimension.height) : new Rectangle(1000,740); 311 311 312 312 // preinitialize a wait dialog for all early downloads (e.g. via command line) 313 313 pleaseWaitDlg = new PleaseWaitDialog(null);