3rdparty: Synchronize xcursor.{c,h}

master
Vlad Zahorodnii 2020-10-01 13:54:45 +03:00
parent 1e9bd43368
commit bf4c67678f
2 changed files with 8 additions and 5 deletions

9
3rdparty/xcursor.c vendored
View File

@ -285,10 +285,11 @@ _XcursorReadUInt (XcursorFile *file, XcursorUInt *u)
if ((*file->read) (file, bytes, 4) != 4) if ((*file->read) (file, bytes, 4) != 4)
return XcursorFalse; return XcursorFalse;
*u = ((bytes[0] << 0) |
(bytes[1] << 8) | *u = ((XcursorUInt)(bytes[0]) << 0) |
(bytes[2] << 16) | ((XcursorUInt)(bytes[1]) << 8) |
(bytes[3] << 24)); ((XcursorUInt)(bytes[2]) << 16) |
((XcursorUInt)(bytes[3]) << 24);
return XcursorTrue; return XcursorTrue;
} }

4
3rdparty/xcursor.h vendored
View File

@ -30,8 +30,10 @@
extern "C" { extern "C" {
#endif #endif
#include <stdint.h>
typedef int XcursorBool; typedef int XcursorBool;
typedef unsigned int XcursorUInt; typedef uint32_t XcursorUInt;
typedef XcursorUInt XcursorDim; typedef XcursorUInt XcursorDim;
typedef XcursorUInt XcursorPixel; typedef XcursorUInt XcursorPixel;