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

fix typo in #4451 #4453

Closed
wants to merge 1 commit into from
Closed

fix typo in #4451 #4453

wants to merge 1 commit into from

Conversation

archewashi
Copy link
Contributor

I had a typo that caused the compilation to fail.

I believe it should be added because the timing of when WindowSizeCallback is called may be platform-dependent, similar to #3929.

Test case same as #4452
// Note: usage of `minshell.html` is recommended since it won't force canvas CSS overrides

#include "raylib.h"
int main(void) {
    InitWindow(800, 450, "test");
    SetTargetFPS(60);

    SetWindowState(FLAG_WINDOW_RESIZABLE);

    while (!WindowShouldClose()) {

        if (IsKeyPressed(KEY_ONE)) SetWindowSize(400, 200);

        BeginDrawing();
        ClearBackground(RAYWHITE);
        DrawText(TextFormat("window size %i x %i", GetScreenWidth(), GetScreenHeight()), 20, 20, 20, BLACK);
        EndDrawing();
    }
    CloseWindow();
    return 0;
}

@raysan5
Copy link
Owner

raysan5 commented Oct 31, 2024

@asdqwe agree.

@raysan5 raysan5 closed this Oct 31, 2024
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

Successfully merging this pull request may close these issues.

2 participants