projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d180589
)
qxl: Don't convert from size_t to int and back in qxl_cursor()
author
Markus Armbruster
<armbru@redhat.com>
Wed, 9 Nov 2011 08:52:55 +0000
(09:52 +0100)
committer
Stefan Hajnoczi
<stefanha@linux.vnet.ibm.com>
Fri, 2 Dec 2011 10:50:56 +0000
(10:50 +0000)
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>
hw/qxl-render.c
patch
|
blob
|
history
diff --git
a/hw/qxl-render.c
b/hw/qxl-render.c
index 2c51ba9806d6eaa20dfed725d2eb95ccc6a7a130..133d09324cdc423436d60ee7079735554e115de7 100644
(file)
--- 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;
-
in
t size;
+
size_
t size;
c = cursor_alloc(cursor->header.width, cursor->header.height);
c->hot_x = cursor->header.hot_spot_x;