summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/rtextures.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rtextures.c b/src/rtextures.c
index 6eb77b7d..39a7a5c0 100644
--- a/src/rtextures.c
+++ b/src/rtextures.c
@@ -875,7 +875,7 @@ Image ImageFromImage(Image image, Rectangle rec)
result.width = (int)rec.width;
result.height = (int)rec.height;
- result.data = RL_CALLOC((int)(rec.width*rec.height)*bytesPerPixel, 1);
+ result.data = RL_CALLOC((int)rec.width*(int)rec.height*bytesPerPixel, 1);
result.format = image.format;
result.mipmaps = 1;