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>
This commit is contained in:
parent
d180589621
commit
66d3f1962d
@ -157,7 +157,7 @@ static QEMUCursor *qxl_cursor(PCIQXLDevice *qxl, QXLCursor *cursor)
|
|||||||
{
|
{
|
||||||
QEMUCursor *c;
|
QEMUCursor *c;
|
||||||
uint8_t *image, *mask;
|
uint8_t *image, *mask;
|
||||||
int size;
|
size_t size;
|
||||||
|
|
||||||
c = cursor_alloc(cursor->header.width, cursor->header.height);
|
c = cursor_alloc(cursor->header.width, cursor->header.height);
|
||||||
c->hot_x = cursor->header.hot_spot_x;
|
c->hot_x = cursor->header.hot_spot_x;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user