浏览代码

REVIEWED: `DrawTexturePro()` to avoid negative dest rec #4316

pull/4325/head
Ray 6 个月前
父节点
当前提交
0e4ebaf89d
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. +3
    -0
      src/rtextures.c

+ 3
- 0
src/rtextures.c 查看文件

@ -4565,6 +4565,9 @@ void DrawTexturePro(Texture2D texture, Rectangle source, Rectangle dest, Vector2
if (source.width < 0) { flipX = true; source.width *= -1; }
if (source.height < 0) source.y -= source.height;
if (dest.width < 0) dest.width *= -1;
if (dest.height < 0) dest.height *= -1;
Vector2 topLeft = { 0 };
Vector2 topRight = { 0 };

正在加载...
取消
保存