diff --git a/obs/lg.c b/obs/lg.c index f2a1a61f..f2b3b9ca 100644 --- a/obs/lg.c +++ b/obs/lg.c @@ -259,7 +259,7 @@ static void * pointerThread(void * data) case CURSOR_TYPE_MONOCHROME: { - dataSize = cursor->height * sizeof(uint32_t); + dataSize = cursor->height * cursor->width * sizeof(uint32_t); allocCursorData(this, dataSize); const int hheight = cursor->height / 2;