소스 검색

Update rtextures.c

pull/3069/head
Ray 2 년 전
부모
커밋
76e39e502c
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. +1
    -1
      src/rtextures.c

+ 1
- 1
src/rtextures.c 파일 보기

@ -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

불러오는 중...
취소
저장