vnc.c (4c65fed8bdf96780735dbdb92a8bd0d6b6526cc3) vnc.c (7fb1cf1606c78c9d5b538f29176fd5a101726a9d)
1/*
2 * QEMU VNC display driver
3 *
4 * Copyright (C) 2006 Anthony Liguori <anthony@codemonkey.ws>
5 * Copyright (C) 2006 Fabrice Bellard
6 * Copyright (C) 2009 Red Hat, Inc
7 *
8 * Permission is hereby granted, free of charge, to any person obtaining a copy

--- 1662 unchanged lines hidden (view full) ---

1671 vnc_unlock_output(vs);
1672 vnc_flush(vs);
1673 }
1674 vs->absolute = absolute;
1675}
1676
1677static void pointer_event(VncState *vs, int button_mask, int x, int y)
1678{
1/*
2 * QEMU VNC display driver
3 *
4 * Copyright (C) 2006 Anthony Liguori <anthony@codemonkey.ws>
5 * Copyright (C) 2006 Fabrice Bellard
6 * Copyright (C) 2009 Red Hat, Inc
7 *
8 * Permission is hereby granted, free of charge, to any person obtaining a copy

--- 1662 unchanged lines hidden (view full) ---

1671 vnc_unlock_output(vs);
1672 vnc_flush(vs);
1673 }
1674 vs->absolute = absolute;
1675}
1676
1677static void pointer_event(VncState *vs, int button_mask, int x, int y)
1678{
1679 static uint32_t bmap[INPUT_BUTTON_MAX] = {
1679 static uint32_t bmap[INPUT_BUTTON__MAX] = {
1680 [INPUT_BUTTON_LEFT] = 0x01,
1681 [INPUT_BUTTON_MIDDLE] = 0x02,
1682 [INPUT_BUTTON_RIGHT] = 0x04,
1683 [INPUT_BUTTON_WHEEL_UP] = 0x08,
1684 [INPUT_BUTTON_WHEEL_DOWN] = 0x10,
1685 };
1686 QemuConsole *con = vs->vd->dcl.con;
1687 int width = pixman_image_get_width(vs->vd->server);

--- 2253 unchanged lines hidden ---
1680 [INPUT_BUTTON_LEFT] = 0x01,
1681 [INPUT_BUTTON_MIDDLE] = 0x02,
1682 [INPUT_BUTTON_RIGHT] = 0x04,
1683 [INPUT_BUTTON_WHEEL_UP] = 0x08,
1684 [INPUT_BUTTON_WHEEL_DOWN] = 0x10,
1685 };
1686 QemuConsole *con = vs->vd->dcl.con;
1687 int width = pixman_image_get_width(vs->vd->server);

--- 2253 unchanged lines hidden ---