aboutsummaryrefslogtreecommitdiff
path: root/mousetsr.h
diff options
context:
space:
mode:
authorJavier <dev.git@javispedro.com>2022-04-15 09:32:31 +0200
committerJavier <dev.git@javispedro.com>2022-04-15 09:32:31 +0200
commit528069dc5992bd069a3c1783db50d630c3d355b4 (patch)
treef7557ae7158d5c3bb781961fa695718407975781 /mousetsr.h
parenta84f04eb1be124e7fdefb486bf01626ff96d2d04 (diff)
downloadvbados-528069dc5992bd069a3c1783db50d630c3d355b4.tar.gz
vbados-528069dc5992bd069a3c1783db50d630c3d355b4.zip
use different buffer sizes for vbx mouse & sf
Diffstat (limited to 'mousetsr.h')
-rw-r--r--mousetsr.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/mousetsr.h b/mousetsr.h
index 5958505..f3f6785 100644
--- a/mousetsr.h
+++ b/mousetsr.h
@@ -58,6 +58,10 @@
#if USE_VIRTUALBOX
#include "vbox.h"
+
+/** Size of the VBox buffer. The maximum message length that may be sent.
+ * Enough to fit a set_pointer_shape message with a 16x16 cursor. */
+#define VBOX_BUFFER_SIZE (1024 + 32 + 24 + 20)
#endif
struct point {
@@ -188,11 +192,12 @@ typedef struct tsrdata {
/** Have VirtualBox absolute coordinates. */
bool vbhaveabs : 1;
struct vboxcomm vb;
+ char vbbuf[VBOX_BUFFER_SIZE];
#endif
#if USE_VMWARE
/** VMware is available. */
- bool vmwavail : 1;
+ bool vmwavail;
#endif
} TSRDATA;