Fixed output issue on iPad

Adjusted for iPad's frame buffer