Change dynamic display size

Fixed display issue with resolutions smaller than 1024x768