qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH] Guest mouse cursor drawing in SDL


From: Anthony Liguori
Subject: Re: [Qemu-devel] [PATCH] Guest mouse cursor drawing in SDL
Date: Tue, 20 Mar 2007 10:38:26 -0500
User-agent: Thunderbird 1.5.0.10 (X11/20070306)

Thiemo Seufer wrote:
andrzej zaborowski wrote:
This should allow the emulated video cards that support hardware
accelerated cursors to relay the cursor drawing to host, possibly
using real hardware cursor. This way the guest and host effectively
share one cursor. Only SDL support is included. Not tested with mice
that report absolute coordinates.

The cursor does not appear in the framebuffer seen by the guest, it's
only drawn on the host. One funny effect is that it's not clipped to
the size of the framebuffer and can stick out of the SDL window.

I think the sdl.c could use a small rewrite to have all cursor hiding
and showing in one place instead of spread across the file.

VNC support would need employing an extension for this, according to
Anthony Liguori. VMware made a documented VNC extension that does it.

From 3cf77a8b3c80b0306a0e73677ac6faeb1f83e0a2 Mon Sep 17 00:00:00 2001
From: Andrzej Zaborowski <address@hidden>
Date: Sun, 11 Mar 2007 15:31:12 +0100
Subject: [PATCH] Host-accelerated mouse cursor support in SDL.

This patch breaks scrolling in the cirrus vga framebuffer.

I think we want to expose these functions via DisplayState. It would be nice if the semantics of too were similar to the rest of the functions (the pixel format of the cursor was the same as the pixel format of DisplayState).

One question in my mind is what the alpha mask should look like. All that VNC (and SDL) can use is a 1-bit alpha depth. That's all Cirrus supports too. VMware SVGA supports an 8-bit alpha channel though so it may make sense to design the interface now to support that.

Regards,

Anthony Liguori

Thiemo


_______________________________________________
Qemu-devel mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/qemu-devel






reply via email to

[Prev in Thread] Current Thread [Next in Thread]