Improved drawing when scaling.

[ENH] Improved drawing when scaling.
Fixed the wrong offsets when toggle fullscreen.

[FIX] Fixed the wrong offsets when toggle fullscreen.