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

DrawRectangleRec draws rectangle in wrong place on wayland (hyprland) #4815

Open
4 tasks done
Vlvin opened this issue Mar 6, 2025 · 0 comments
Open
4 tasks done

DrawRectangleRec draws rectangle in wrong place on wayland (hyprland) #4815

Vlvin opened this issue Mar 6, 2025 · 0 comments

Comments

@Vlvin
Copy link

Vlvin commented Mar 6, 2025

WARNING: Please, read this note carefully before submitting a new issue:

It is important to realise that this is NOT A SUPPORT FORUM, this is for reproducible BUGS with raylib ONLY.

There are lots of generous and helpful people ready to help you out on raylib Discord forum or raylib reddit.

Remember that asking for support questions here actively takes developer time away from improving raylib.


Please, before submitting a new issue verify and check:

  • 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

When I draw rectangle in linux Xorg environment, everything works fine, rect in pos (0, 0) starts at top left corner. But when I draw same rectangle in linux Wayland environment, for some reason it is not even close to top border

Environment

Platform: Desktop
OS: Arch Linux (Wayland)
OpenGL: 4.2.0
GPU: Intel HD Graphics 4000

Issue Screenshot

Image

Code Example

#include <raylib.h>

int main(void) {
	InitWindow(640, 480, "Issue on Wayland");
	while(!WindowShouldClose()) {
		BeginDrawing();
			ClearBackground(BLACK);
			DrawRectangleRec((Rectangle){0.f, 0.f, 100.f, 100.f}, RED);
		EndDrawing();
	}
}
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