You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
DrawRectangleRoundedLines draws weird unequal corners and is taller and wider than DrawRectangleRounded, which draws identical corners.
DrawRectangleRoundedLinesEx with lineThick != 1 works as expected, so the issue is linked to lineThick of 1 pixel.
Environment
Windows 10
Visual Studio 2022
MSVC
C language
raylib.lib from v5.5 release
INFO: GL: OpenGL device information:
INFO: > Renderer: AMD Radeon RX 6750 XT
INFO: > Version: 3.3.0 Core Profile Context 24.10.1.241007
INFO: > GLSL: 4.60
The text was updated successfully, but these errors were encountered:
raysan5
changed the title
[rshapes] DrawRectangleRoundedLines produces weird results
[rshapes] DrawRectangleRoundedLines() results not aligned with DrawRectangleRounded()Dec 23, 2024
I think the issue is related to an off-by-one-pixel on lines calculations and I'm afraid that's a GPU-driver dependant issue, very difficult to address. Related to this, we have DrawRectangleLines() that still fails after many many changes and tries to solve the off-by-one-pixel issue...
Issue description
DrawRectangleRoundedLines draws weird unequal corners and is taller and wider than DrawRectangleRounded, which draws identical corners.
DrawRectangleRoundedLinesEx with lineThick != 1 works as expected, so the issue is linked to lineThick of 1 pixel.
Environment
Windows 10
Visual Studio 2022
MSVC
C language
raylib.lib from v5.5 release
INFO: GL: OpenGL device information:
INFO: > Renderer: AMD Radeon RX 6750 XT
INFO: > Version: 3.3.0 Core Profile Context 24.10.1.241007
INFO: > GLSL: 4.60
Issue Screenshot
Code Example
Rectangle roundRect = { 100, 250, 185, 36 };
DrawRectangleRounded(roundRect, 0.5f, 6, BLACK);
DrawRectangleRoundedLines(roundRect, 0.5f, 6, ORANGE);
The text was updated successfully, but these errors were encountered: