浏览代码

Replace `size_t` by `unsigned int`

pull/4833/head
Ray 1 个月前
父节点
当前提交
bd8e59f18d
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. +2
    -2
      src/rlgl.h

+ 2
- 2
src/rlgl.h 查看文件

@ -3694,8 +3694,8 @@ unsigned char *rlReadScreenPixels(int width, int height)
{
for (int x = 0; x < (width*4); x += 4)
{
n">size_t s = ((height - 1) - y)*width*4 + x;
n">size_t e = y*width*4 + x;
kt">unsigned int s = ((height - 1) - y)*width*4 + x;
kt">unsigned int e = y*width*4 + x;
unsigned char r = imgData[s];
unsigned char g = imgData[s+1];

正在加载...
取消
保存