Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[rshapes] DrawRectangleRoundedLines produces weird results #4601

Open
Kaehvaman opened this issue Dec 14, 2024 · 0 comments
Open

[rshapes] DrawRectangleRoundedLines produces weird results #4601

Kaehvaman opened this issue Dec 14, 2024 · 0 comments

Comments

@Kaehvaman
Copy link

  • [*] I tested it on latest raylib version from master branch
  • [*] I checked there is no similar issue already reported
  • [*] I checked the documentation on the wiki
  • [*] My code has no errors or misuse of raylib

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

Screenshot_2

Code Example

Rectangle roundRect = { 100, 250, 185, 36 };
DrawRectangleRounded(roundRect, 0.5f, 6, BLACK);
DrawRectangleRoundedLines(roundRect, 0.5f, 6, ORANGE);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant