local emu resize bugfix.