瀏覽代碼

REVIEWED: `DrawRectangleLines()` pixel offset

This could be actually very tricky and GPU/drivers dependant...
pull/3927/head
Ray 1 年之前
父節點
當前提交
41b0c5c4f9
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. +1
    -1
      src/rshapes.c

+ 1
- 1
src/rshapes.c 查看文件

@ -813,7 +813,7 @@ void DrawRectangleLines(int posX, int posY, int width, int height, Color color)
{
rlBegin(RL_LINES);
rlColor4ub(color.r, color.g, color.b, color.a);
rlVertex2f(posX + 1, posY + 1);
rlVertex2f(posX, posY);
rlVertex2f(posX + width, posY + 1);
rlVertex2f(posX + width, posY + 1);

Loading…
取消
儲存