aboutsummaryrefslogtreecommitdiff
path: root/hw/qxl-render.c
diff options
context:
space:
mode:
authorMarkus Armbruster <armbru@redhat.com>2011-11-09 09:52:55 +0100
committerStefan Hajnoczi <stefanha@linux.vnet.ibm.com>2011-12-02 10:50:56 +0000
commit66d3f1962d81c3516d100e2417a9be7a6ae5f73f (patch)
treeb6b07bc6a8f5bfb257bde0aa7a6fcdd83f677972 /hw/qxl-render.c
parentd18058962133a00ec5731657fb34146f9c7dd572 (diff)
qxl: Don't convert from size_t to int and back in qxl_cursor()
Just for cleanliness; it would take a truly gigantic cursor to break. Signed-off-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Diffstat (limited to 'hw/qxl-render.c')
-rw-r--r--hw/qxl-render.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/qxl-render.c b/hw/qxl-render.c
index 2c51ba9806..133d09324c 100644
--- a/hw/qxl-render.c
+++ b/hw/qxl-render.c
@@ -157,7 +157,7 @@ static QEMUCursor *qxl_cursor(PCIQXLDevice *qxl, QXLCursor *cursor)
{
QEMUCursor *c;
uint8_t *image, *mask;
- int size;
+ size_t size;
c = cursor_alloc(cursor->header.width, cursor->header.height);
c->hot_x = cursor->header.hot_spot_x;