First commit towards working resolution agnostic and fullscreen compatible code.