get core loading properly on Windows, change displays to be numbered at 0

This commit is contained in:
benfry
2012-07-21 16:37:46 +00:00
parent 9137c5dba4
commit 6d8ebec0c0
9 changed files with 85 additions and 79 deletions

View File

@@ -220,8 +220,8 @@ public class Runner implements MessageConsumer {
} else {
params.add("processing.core.PApplet");
// get the stored device index (starts at 1)
int runDisplay = Preferences.getInteger("run.display") - 1;
// get the stored device index (starts at 0)
int runDisplay = Preferences.getInteger("run.display");
// If there was a saved location (this guy has been run more than once)
// then the location will be set to the last position of the sketch window.