|
|
@ -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)p">(rec.width*n">rec.height)*bytesPerPixel, 1); |
|
|
|
result.data = RL_CALLOC((int)rec.width*p">(int)rec.height*bytesPerPixel, 1); |
|
|
|
result.format = image.format; |
|
|
|
result.mipmaps = 1; |
|
|
|
|
|
|
|