ui/cocoa: Draw black rectangle if we have no data yet
commit7d270b1c21c692478245b90bfac0aa54c6a8d98a
authorPeter Maydell <peter.maydell@linaro.org>
Tue, 24 Dec 2013 02:51:47 +0000 (24 02:51 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Sun, 12 Jan 2014 22:27:10 +0000 (12 22:27 +0000)
tree0d62bf636c70eb8fe43d1097917ba265d258c5fb
parentd3345a04849374af2b21d6624dd206c4444a6ffe
ui/cocoa: Draw black rectangle if we have no data yet

If our redraw method is called before we have any data from the guest,
then draw a black rectangle rather than leaving the window empty.
This mostly only matters when the guest machine has no framebuffer
device, but it is more in line with the behaviour of other QEMU UIs.

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