[common/client] add pitch to cursor shape structure

This commit is contained in:
Geoffrey McRae 2017-12-13 04:42:09 +11:00
parent c36e948bdb
commit b5a5d4cda2
3 changed files with 4 additions and 2 deletions

View File

@ -335,6 +335,7 @@ int renderThread(void * unused)
c, c,
header.cursor.w, header.cursor.w,
header.cursor.h, header.cursor.h,
header.cursor.pitch,
header.cursor.shape header.cursor.shape
)) ))
{ {

View File

@ -276,7 +276,7 @@ void lgr_opengl_on_resize(void * opaque, const int width, const int height, cons
this->resizeWindow = true; 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; struct LGR_OpenGL * this = (struct LGR_OpenGL *)opaque;
if (!this || !this->initialized) if (!this || !this->initialized)

View File

@ -51,6 +51,7 @@ typedef struct KVMFRCursor
int16_t x, y; // cursor x & y position int16_t x, y; // cursor x & y position
CursorType type; // shape buffer data type CursorType type; // shape buffer data type
uint8_t w, h; // shape width and height uint8_t w, h; // shape width and height
uint8_t pitch; // shape row length in bytes
uint8_t shape[KVMFR_CURSOR_BUFFER]; uint8_t shape[KVMFR_CURSOR_BUFFER];
} }
KVMFRCursor; KVMFRCursor;
@ -80,4 +81,4 @@ typedef struct KVMFRHeader
KVMFRFrame frame; // the frame information KVMFRFrame frame; // the frame information
KVMFRCursor cursor; // the cursor information KVMFRCursor cursor; // the cursor information
} }
KVMFRHeader; KVMFRHeader;