ui/cocoa: Cope with first surface being same as initial window size
commit381600dad956ba246f8cb9806e70423f4121bae3
authorPeter Maydell <peter.maydell@linaro.org>
Mon, 23 Jun 2014 09:35:22 +0000 (23 10:35 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Sun, 29 Jun 2014 21:00:33 +0000 (29 22:00 +0100)
tree1b823d5958c60239c5ac190117bd7d2a22feb625
parent9328cfd2fe4a7ff86a41b2c26ea33974241d7d4e
ui/cocoa: Cope with first surface being same as initial window size

Do the recalculation of the content dimensions in switchSurface if the
current cdx is zero as well as if the new surface is a different size to
the current window. This catches the case where the first surface registered
happens to be 640x480 (our current window size), and fixes a bug where we
would always display a black screen until the first surface of a different
size was registered.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Message-id: 1403516125-14568-2-git-send-email-peter.maydell@linaro.org
ui/cocoa.m