mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-10 00:28:20 +00:00
[common/client] add pitch to cursor shape structure
This commit is contained in:
parent
c36e948bdb
commit
b5a5d4cda2
@ -335,6 +335,7 @@ int renderThread(void * unused)
|
||||
c,
|
||||
header.cursor.w,
|
||||
header.cursor.h,
|
||||
header.cursor.pitch,
|
||||
header.cursor.shape
|
||||
))
|
||||
{
|
||||
|
@ -276,7 +276,7 @@ void lgr_opengl_on_resize(void * opaque, const int width, const int height, cons
|
||||
this->resizeWindow = true;
|
||||
}
|
||||
|
||||
bool lgr_opengl_on_mouse_shape(void * opaque, const LG_RendererCursor cursor, const int width, const int height, const uint8_t * data)
|
||||
bool lgr_opengl_on_mouse_shape(void * opaque, const LG_RendererCursor cursor, const int width, const int height, const int pitch, const uint8_t * data)
|
||||
{
|
||||
struct LGR_OpenGL * this = (struct LGR_OpenGL *)opaque;
|
||||
if (!this || !this->initialized)
|
||||
|
@ -51,6 +51,7 @@ typedef struct KVMFRCursor
|
||||
int16_t x, y; // cursor x & y position
|
||||
CursorType type; // shape buffer data type
|
||||
uint8_t w, h; // shape width and height
|
||||
uint8_t pitch; // shape row length in bytes
|
||||
uint8_t shape[KVMFR_CURSOR_BUFFER];
|
||||
}
|
||||
KVMFRCursor;
|
||||
@ -80,4 +81,4 @@ typedef struct KVMFRHeader
|
||||
KVMFRFrame frame; // the frame information
|
||||
KVMFRCursor cursor; // the cursor information
|
||||
}
|
||||
KVMFRHeader;
|
||||
KVMFRHeader;
|
Loading…
Reference in New Issue
Block a user