Bug 590 : Window is default size when exported
Last modified: 2007-06-28 16:20




Status:
RESOLVED
Resolution:
INVALID -
Priority:
P2
Severity:
normal

 

Reporter:
ready.eddy
Assigned To:
fry

Attachment Type Created Size Actions

Description:   Opened: 2007-06-28 16:09
The window is sized normally when run from within the pde, but when I
export to an applet and click on index.html, it opens in the default size
of 100 by 100. Here is the simplest code that reproduces it:

int worldsize = 300;
void setup(){
size(worldsize, worldsize);
}
void draw() {
background(0);
}

The window is sized correctly if the following code is used instead:

int worldsize = 300;
void setup(){
size(300, 300);
}
void draw() {
background(0);
}


I have also had trouble with incorrect sizing within the pde, along the
lines reported in bug #511, but not with this particular code.

Setup:
Processing - 0124 Beta
Java standard edition 6 (build 1.6_01-b06)
Windows XP Professional Version 2002 Service Pack 2
Dell Inspiron Dual Core 1.83 GHz with 1.99 Gb RAM

Thanks for the fantastic processing!
Additional Comment #1 From fry 2007-06-28 16:20
please read the reference for size(). do not use variables for its parameters.