mirror of
https://github.com/raysan5/raylib.git
synced 2025-10-03 16:36:26 +00:00
Update rtextures.c
This commit is contained in:
@@ -2046,7 +2046,7 @@ void ImageFlipHorizontal(Image *image)
|
|||||||
{
|
{
|
||||||
for (int x = 0; x < image->width; x++)
|
for (int x = 0; x < image->width; x++)
|
||||||
{
|
{
|
||||||
// OPTION 1: Move pixels with memcopy()
|
// OPTION 1: Move pixels with memcpy()
|
||||||
//memcpy(flippedData + (y*image->width + x)*bytesPerPixel, ((unsigned char *)image->data) + (y*image->width + (image->width - 1 - x))*bytesPerPixel, bytesPerPixel);
|
//memcpy(flippedData + (y*image->width + x)*bytesPerPixel, ((unsigned char *)image->data) + (y*image->width + (image->width - 1 - x))*bytesPerPixel, bytesPerPixel);
|
||||||
|
|
||||||
// OPTION 2: Just copy data pixel by pixel
|
// OPTION 2: Just copy data pixel by pixel
|
||||||
|
Reference in New Issue
Block a user