raysan5 / raylib

A simple and easy-to-use library to enjoy videogames programming

Home Page:http://www.raylib.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[raylib-cs] WARNING: GLFW: Failed to find selected monitor

home-gihub opened this issue · comments

Issue description

When trying to call Raylib.GetMonitorHeight(0); GLFW fails to find selected monitor and returns 0,
when trying to make a window with this value System.AccessViolationException: occours.

Environment

Windows 10
Invidia GPU
Intel i5 CPU
16 gb ram
Visual Studio
OpenGL ver ???
raylib 5.0

Issue Screenshot

image

Code Example

    int screenWidth = 200;
    int screenHeight = Raylib.GetMonitorHeight(0);
    Raylib.InitWindow(screenWidth, screenHeight, "Test");

BTW: I was decrementing screenheight by 1 and that was causing it to crash but it still happens
and my transparent window wont draw anything