Revert 3761b8f..b7e13dd

This rolls back to commit 3761b8f8737538887956387941071f4190918442.
add togglefullscreen function.