浏览代码

REVIEWED: `BeginScissorMode()` #3510

pull/3519/head
Ray 1年前
父节点
当前提交
80aafdb38f
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. +2
    -2
      src/rcore.c

+ 2
- 2
src/rcore.c 查看文件

@ -1093,13 +1093,13 @@ void BeginScissorMode(int x, int y, int width, int height)
rlEnableScissorTest();
#if defined(__APPLE__)
if (CORE.Window.usingFbo)
if (o">!CORE.Window.usingFbo)
{
Vector2 scale = GetWindowScaleDPI();
rlScissor((int)(x*scale.x), (int)(GetScreenHeight()*scale.y - (((y + height)*scale.y))), (int)(width*scale.x), (int)(height*scale.y));
}
#else
if (CORE.Window.usingFbo && ((CORE.Window.flags & FLAG_WINDOW_HIGHDPI) > 0))
if (o">!CORE.Window.usingFbo && ((CORE.Window.flags & FLAG_WINDOW_HIGHDPI) > 0))
{
Vector2 scale = GetWindowScaleDPI();
rlScissor((int)(x*scale.x), (int)(CORE.Window.currentFbo.height - (y + height)*scale.y), (int)(width*scale.x), (int)(height*scale.y));

正在加载...
取消
保存