Set a fixed aspect ratio for fullscreen

Ok, so I think this works not too bad for a first try. 
Only problem I have now is that there is a huge chunk of background showing up on the right side. This makes the play area no longer centered.
So help?