qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH 0/2] ui/cocoa: Fix non-blanked display window if guest never uses it
@ 2013-12-24  2:51 Peter Maydell
  2013-12-24  2:51 ` [Qemu-devel] [PATCH 1/2] ui/cocoa: Redraw at correct size when switching surface Peter Maydell
  2013-12-24  2:51 ` [Qemu-devel] [PATCH 2/2] ui/cocoa: Draw black rectangle if we have no data yet Peter Maydell
  0 siblings, 2 replies; 3+ messages in thread
From: Peter Maydell @ 2013-12-24  2:51 UTC (permalink / raw)
  To: qemu-devel; +Cc: Andreas Färber, patches

This patch series fixes a couple of bugs in drawing the display
which are only really visible if you run guests with no graphics
device or which never get round to using the graphics device.

The first is a fix for a bug in the order in which we handled
surface switching which meant that if the surface was resized
from 640x480 to 1024x768 we would draw the new data at the old
size and then resize the window (which on MacOSX doesn't
provoke a redraw). So we wouldn't update the display properly
until the next time the guest updated the framebuffer.

The second patch just says "if we're asked to draw and there's
nothing from the guest yet, draw black"; this means that if
the guest has no graphics device we have a black window rather
than a white one, which is more in line with behaviour of
other UI frontends.

NB: the changes to switchSurface were to some extent made
by trial and error and googling of documentation, so ideally
they could use code review from somebody who understands
Cocoa better than I do.

Peter Maydell (2):
  ui/cocoa: Redraw at correct size when switching surface
  ui/cocoa: Draw black rectangle if we have no data yet

 ui/cocoa.m | 31 +++++++++++++++++++++++--------
 1 file changed, 23 insertions(+), 8 deletions(-)

-- 
1.7.11.4

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-12-24  2:51 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-24  2:51 [Qemu-devel] [PATCH 0/2] ui/cocoa: Fix non-blanked display window if guest never uses it Peter Maydell
2013-12-24  2:51 ` [Qemu-devel] [PATCH 1/2] ui/cocoa: Redraw at correct size when switching surface Peter Maydell
2013-12-24  2:51 ` [Qemu-devel] [PATCH 2/2] ui/cocoa: Draw black rectangle if we have no data yet Peter Maydell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).