mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 08:13:54 -06:00
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
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue