// hypothetically, rough code:var fs = FlipScreen;FlipScreen = function() { if (g_has_clip) { screen.clip(); } fs();};