Bug 998 : Present Mode broken
Last modified: 2008-11-06 08:14




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

 

Reporter:
splat
Assigned To:
fry

Attachment Type Created Size Actions

Description:   Opened: 2008-11-04 15:05
Using 154 on Windows Vista (but I'm told the same problem exists with OSX) the
following code causes calamity in exported applications (lock up in windows, no launch
in OSX):

windowTest.pde:
void setup(){
size(550,500);
}

static public void main(String args[]) {
PApplet.main(new String[] { "--present", "windowTest" });
}


Noticed this bug because the init() frame.setUndecorated super.init() hack no longer
works.

Now that the frame is made visible in main it's not possible to setUndecorated. Would
be great if there was a parameter for --noWindow or at least a function that could be
easily overridden for handling the decoration.
Additional Comment #1 From fry 2008-11-04 15:09
one bug per report!

you can file a separate request for the other stuff if you'd like.

*** This bug has been marked as a duplicate of 923 ***
Additional Comment #2 From fjen 2008-11-06 08:10
if ( frame.getWidth() != width )
{
frame.setSize( width, height );
frame.setLocation( 0, 0 );
setBounds( 0,0,width,height );
}

this fixes it for the moment .. i think the problem is that the size does not come thru in
PApplet.main when the applet.setBounds() line is called on line 6503.

F
Additional Comment #3 From fjen 2008-11-06 08:11
sorry, forgot: put the code at the beginning of draw() as a temp fix.
Additional Comment #4 From fry 2008-11-06 08:14
please use bug #923, this bug is closed.