• P
    ui/cocoa: Cope with first surface being same as initial window size · 381600da
    Peter Maydell 提交于
    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: NPeter Maydell <peter.maydell@linaro.org>
    Message-id: 1403516125-14568-2-git-send-email-peter.maydell@linaro.org
    381600da
cocoa.m 40.0 KB