Bug 516 : display window ignores size() and defaults to 100x100 pixels
Last modified: 2007-02-08 04:24




Status:
RESOLVED
Resolution:
DUPLICATE of bug 197
Priority:
P2
Severity:
normal

 

Reporter:
Bas
Assigned To:
fry

Attachment Type Created Size Actions

Description:   Opened: 2007-02-08 03:21
Processing 0123, 0124 Java included version
Windows XP SP2
Java version "1.5.0_06"
AMD Athlon 64 X2 Dual
2 GB of RAM
Video: Nvidia 7600GT
Screen resolution: 1920 by 1200 pixels
Reproduceable: 3 out of 10 times

The display window is sometimes set to 100x100 pixels and ignores the size() in
setup. When this happens smooth() doesn't seem to work either. Running the
sketch again usually fixes the problem.

void setup() {
size(400,400); // // Doesn't matter if I change set this to PD3, JAVA2D, OPENGL
println(width+"x"+height); // will print 400x400 even if the display window is
actually 100x100
smooth();
}

void draw() {
background(0);
rect(0,0,100,100);
}

display window resized to 100x100 pixels instead of 400x400 pixels
http://img246.imageshack.us/my.php?image=processingsize100x100tc4.png

correct display windows size 400x400 pixels
http://img246.imageshack.us/my.php?image=processingsize400x400sz4.png
Additional Comment #1 From fry 2007-02-08 04:24
thanks for the helpful description. it's a high priority known issue.

*** This bug has been marked as a duplicate of 197 ***