Skip to content

[rcore_desktop] Window sizes and position with multiple monitor configurations #3693

Closed
@SelfReflection31

Description

@SelfReflection31

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

using current raylib v5.0 release

Issue description

I'm having this odd issue where if the game is in a release configuration aka Windows (/SUBSYSTEM:WINDOWS), /ENTRY: mainCRTStartup If I start the game on my primary monitor it behaves as expected but if I try to open the game while on a different monitor, the game is running but there is no window... yet if I drag the raylib.dll over the exe to open it will trigger the window.
doing it with the console works.

Environment

Windows 11, OpenGL 3.3.0 , RTX 3080

Issue Screenshot

example.mp4

Code Example

Just a really simple example.

#include <raylib.h>

int main(void) {
    const int screenWidth = 800;
    const int screenHeight = 450;
    InitWindow(screenWidth, screenHeight, "Simple Game");
    SetTargetFPS(60);

    while (!WindowShouldClose()) {

        BeginDrawing();
        ClearBackground(BLUE);
        DrawText("Hello World!", 32,32,23,WHITE);
        EndDrawing();
    }

    CloseWindow();

    return 0;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions