diff options
author | Javier <dev.git@javispedro.com> | 2022-04-15 09:32:31 +0200 |
---|---|---|
committer | Javier <dev.git@javispedro.com> | 2022-04-15 09:32:31 +0200 |
commit | 528069dc5992bd069a3c1783db50d630c3d355b4 (patch) | |
tree | f7557ae7158d5c3bb781961fa695718407975781 /mousetsr.h | |
parent | a84f04eb1be124e7fdefb486bf01626ff96d2d04 (diff) | |
download | vbados-528069dc5992bd069a3c1783db50d630c3d355b4.tar.gz vbados-528069dc5992bd069a3c1783db50d630c3d355b4.zip |
use different buffer sizes for vbx mouse & sf
Diffstat (limited to 'mousetsr.h')
-rw-r--r-- | mousetsr.h | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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; |