mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 10:13:56 -06:00
ui/console: Convert mouse visibility parameter into bool
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com> Tested-by: Phil Dennis-Jordan <phil@philjordan.eu> Signed-off-by: Akihiko Odaki <akihiko.odaki@daynix.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Message-ID: <20240715-cursor-v3-2-afa5b9492dbf@daynix.com> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
This commit is contained in:
parent
3f5ef05fe0
commit
a418e7aeea
10 changed files with 19 additions and 18 deletions
|
@ -742,7 +742,7 @@ static void ati_mm_write(void *opaque, hwaddr addr,
|
|||
if (!s->cursor_guest_mode &&
|
||||
(s->regs.crtc_gen_cntl & CRTC2_CUR_EN) && !(t & BIT(31))) {
|
||||
dpy_mouse_set(s->vga.con, s->regs.cur_hv_pos >> 16,
|
||||
s->regs.cur_hv_pos & 0xffff, 1);
|
||||
s->regs.cur_hv_pos & 0xffff, true);
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
|
|
@ -109,8 +109,7 @@ static void update_cursor(VirtIOGPU *g, struct virtio_gpu_update_cursor *cursor)
|
|||
s->cursor.pos.x = cursor->pos.x;
|
||||
s->cursor.pos.y = cursor->pos.y;
|
||||
}
|
||||
dpy_mouse_set(s->con, cursor->pos.x, cursor->pos.y,
|
||||
cursor->resource_id ? 1 : 0);
|
||||
dpy_mouse_set(s->con, cursor->pos.x, cursor->pos.y, cursor->resource_id);
|
||||
}
|
||||
|
||||
struct virtio_gpu_simple_resource *
|
||||
|
|
|
@ -1167,7 +1167,7 @@ static void vmsvga_reset(DeviceState *dev)
|
|||
s->enable = 0;
|
||||
s->config = 0;
|
||||
s->svgaid = SVGA_ID;
|
||||
s->cursor.on = 0;
|
||||
s->cursor.on = false;
|
||||
s->redraw_fifo_last = 0;
|
||||
s->syncing = 0;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue