Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

i hate svn!

git-svn-id: http://svn.gna.org/svn/fullscreen-p5/trunk@11 2047cd6a-46a1-4efc-9f20-c343b47ea501
  • Loading branch information...
commit 18f96ce952f4e36c26b29fa6562c6b49a29da17f 1 parent 4ef5a05
kritzikratzi authored
Showing with 15 additions and 1 deletion.
  1. +15 −1 src/fullscreen/FullScreenBase.java
16 src/fullscreen/FullScreenBase.java
View
@@ -6,7 +6,7 @@
import java.awt.event.KeyEvent;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
-import java.net.URL;
+import java.lang.reflect.Method;
import processing.core.GLFullScreenHelper;
import processing.core.PApplet;
@@ -139,4 +139,18 @@ else if( e.getID() == KeyEvent.KEY_PRESSED ){
}
}
}
+
+ /**
+ * Notifies the sketch about a display mode change.
+ */
+ protected static void notifySketch( PApplet dad ){
+ try{
+ Method m = dad.getClass().getMethod( "displayChanged", new Class[]{ } );
+ m.invoke( dad, new Object[]{ } );
+ }
+ catch( Exception e ){
+
+ }
+ }
+
}
Please sign in to comment.
Something went wrong with that request. Please try again.