diff options
| author | Ray <[email protected]> | 2024-05-01 18:12:57 +0200 |
|---|---|---|
| committer | Ray <[email protected]> | 2024-05-01 18:12:57 +0200 |
| commit | 763129e96b0ae8a795f62d40d1b75736e4e6ae46 (patch) | |
| tree | cdc837d00c8f660b720b1bf64a49f6c4e4f363c1 /src/rtextures.c | |
| parent | 27a015d022ecdf771ea64b23f495a3b66101e170 (diff) | |
| download | raylib-763129e96b0ae8a795f62d40d1b75736e4e6ae46.tar.gz raylib-763129e96b0ae8a795f62d40d1b75736e4e6ae46.zip | |
Reviewed some warnings
Diffstat (limited to 'src/rtextures.c')
| -rw-r--r-- | src/rtextures.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/rtextures.c b/src/rtextures.c index 0658a680..47ff83f5 100644 --- a/src/rtextures.c +++ b/src/rtextures.c @@ -314,7 +314,7 @@ Image LoadImageRaw(const char *fileName, int width, int height, int format, int if (fileData != NULL) { unsigned char *dataPtr = fileData; - unsigned int size = GetPixelDataSize(width, height, format); + int size = GetPixelDataSize(width, height, format); if (size <= dataSize) // Security check { @@ -697,8 +697,8 @@ Image LoadImageFromScreen(void) Vector2 scale = GetWindowScaleDPI(); Image image = { 0 }; - image.width = GetScreenWidth()*scale.x; - image.height = GetScreenHeight()*scale.y; + image.width = (int)(GetScreenWidth()*scale.x); + image.height = (int)(GetScreenHeight()*scale.y); image.mipmaps = 1; image.format = PIXELFORMAT_UNCOMPRESSED_R8G8B8A8; image.data = rlReadScreenPixels(image.width, image.height); |
