mirror of
https://github.com/hyprwm/hyprcursor.git
synced 2024-11-17 02:35:57 +01:00
parent
1761f6cefd
commit
60f9c53cf2
1 changed files with 1 additions and 1 deletions
|
@ -508,7 +508,7 @@ static cairo_status_t readPNG(void* data, unsigned char* output, unsigned int le
|
||||||
|
|
||||||
size_t toRead = len > DATA->dataLen - DATA->readNeedle ? DATA->dataLen - DATA->readNeedle : len;
|
size_t toRead = len > DATA->dataLen - DATA->readNeedle ? DATA->dataLen - DATA->readNeedle : len;
|
||||||
|
|
||||||
std::memcpy(output, DATA->data + DATA->readNeedle, toRead);
|
std::memcpy(output, (uint8_t*)DATA->data + DATA->readNeedle, toRead);
|
||||||
DATA->readNeedle += toRead;
|
DATA->readNeedle += toRead;
|
||||||
|
|
||||||
if (DATA->readNeedle >= DATA->dataLen) {
|
if (DATA->readNeedle >= DATA->dataLen) {
|
||||||
|
|
Loading…
Reference in a new issue