Bug 1034 : calling frame.setSize() doesn't work
Last modified: 2008-11-21 05:56




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

 

Reporter:
Manic
Assigned To:
fry

Attachment Type Created Size Actions

Description:   Opened: 2008-11-21 05:39
You now have to call size() aswell to get it to work properly

setSize only changes the frame size, not the drawing area

boolean once;
void setup(){
size(200,200);

}
void draw(){
if(!once){
frame.setSize(1000,1000);
once=!once;
}
background(0);
}
Additional Comment #1 From fry 2008-11-21 05:56
Use frame.setResizable(true) inside setup(), so that it knows the frame
resize call is legitimate.