diff --git a/TotalCrossSDK/src/main/java/totalcross/Launcher.java b/TotalCrossSDK/src/main/java/totalcross/Launcher.java index d0f142c35e..3c7b942110 100644 --- a/TotalCrossSDK/src/main/java/totalcross/Launcher.java +++ b/TotalCrossSDK/src/main/java/totalcross/Launcher.java @@ -513,8 +513,8 @@ protected void parseArguments(String clazz, String... args) { } } System.out.println("Screen is " + toWidth + "x" + toHeight + "x" + toBpp); - } else if (args[i++].equalsIgnoreCase("/r")) { - // Ignore next argument + } else if (args[i].equalsIgnoreCase("/r")) { + ++i; } else if (args[i].equalsIgnoreCase("/pos")) /* x,y */ { String[] scr = tokenizeString(args[++i].toLowerCase(), ',');