Update FlipFramebuffer

Less calculations + fix
Merge pull request #16 from Sethpaien/master

Update FlipFramebuffer - makes converting the raw framebuffer slightly faster