Permalink
Browse files

Eventually fixed issues #10 and #12

  • Loading branch information...
1 parent 547def7 commit e82a5a17384f86b3dcee19d7bf8428453e17cc4a @kritzikratzi committed Feb 12, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/fullscreen/SoftFullScreen.java
@@ -92,7 +92,7 @@ public SoftFullScreen( PApplet dad, int screenNr ){
fsDevice = devices[screenNr];
fsFrame = new Frame( fsDevice.getDefaultConfiguration() );
- fsFrame.setTitle( "FullScreen" );
+ fsFrame.setTitle( dad.frame == null? "":dad.frame.getTitle() );
fsFrame.setUndecorated( true );
fsFrame.setBackground( Color.black );
fsFrame.setLayout( null );
@@ -155,7 +155,7 @@ else if( fullScreen ){
fsFrame.setVisible( true );
fsFrame.setLocation( fsDevice.getDefaultConfiguration().getBounds().getLocation() );
- dad.setLocation( ( fsFrame.getWidth() - dad.width ) / 2, ( fsFrame.getHeight() - dad.height ) / 2 );
+ dad.setLocation( ( fsFrame.getWidth() - dad.width ) / 2, ( fsFrame.getHeight() - dad.height ) / 2 - 1 );
fsFrame.setExtendedState( Frame.MAXIMIZED_BOTH );
GLDrawableHelper.reAllocate( this );

0 comments on commit e82a5a1

Please sign in to comment.