diff --git a/client/main.c b/client/main.c index 4c1a8faf..124f917a 100644 --- a/client/main.c +++ b/client/main.c @@ -335,6 +335,7 @@ int renderThread(void * unused) c, header.cursor.w, header.cursor.h, + header.cursor.pitch, header.cursor.shape )) { diff --git a/client/renderers/opengl.c b/client/renderers/opengl.c index e73f3764..4dd53a9d 100644 --- a/client/renderers/opengl.c +++ b/client/renderers/opengl.c @@ -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) diff --git a/common/KVMFR.h b/common/KVMFR.h index feff2d29..716bf108 100644 --- a/common/KVMFR.h +++ b/common/KVMFR.h @@ -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; \ No newline at end of file