good job OrangeBrat, another idea would be to relocate the panels according to the size change when you decrease to a small resolution (like 400x300) since they will not be in the right place otherwise (unless you're resizing it manually with the mouse instead of video_switch)