diff options
author | Peter Maydell <peter.maydell@linaro.org> | 2013-12-24 02:51:46 +0000 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2014-01-12 22:27:10 +0000 |
commit | d3345a04849374af2b21d6624dd206c4444a6ffe (patch) | |
tree | 3e56fa1eb1c196db1c8d45073c3665f97cb6e164 /target-ppc/mmu-hash64.h | |
parent | 98db429d2c6d157b7e00e3f24b6b1d9036f5e358 (diff) |
ui/cocoa: Redraw at correct size when switching surface
If the surface switch involved a resize, we were doing the redraw
at the old size rather than the new, because the update of
screen.width and screen.height was being done after the setFrame
method calls which triggered a redraw. Normally this isn't very
noticeable because typically after the guest triggers the window
resize it also draws something to it, which will in turn cause
us to redraw. However, the combination of a guest which never
draws to the display and a command line setting of a screen size
larger than the default can reveal odd effects.
Move most of the handling of resizes to the top of the method,
and guard it with a check that the surface size actually changed,
to avoid unnecessary operations (including some user visible ones
like "recenter the window on the screen") if the surface is the
same size as the old one.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Message-id: 1387853507-26298-2-git-send-email-peter.maydell@linaro.org
Diffstat (limited to 'target-ppc/mmu-hash64.h')
0 files changed, 0 insertions, 0 deletions