Made the fullscreen work so that the screen ratio stays the same. This is done by adding empty panels to the screen, which is perhaps not the most elegant way to solve the problem.