Skip to content

[rshapes] DrawRectangleLines() missing pixel in lower right corner #4756

Closed
@Roucou

Description

@Roucou
  • 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

If you draw a rectangle outline using DrawRectangleLines(0, 0, w, h, WHITE) the lower right corner is missing.

Environment

N/A

Issue Screenshot

/

Code Example

#include "raylib.h"
int main(void) {
    InitWindow(150, 150, "DrawRectangleLines bug");
    while (!WindowShouldClose()) {
        BeginDrawing();
            ClearBackground(BLACK);
            DrawRectangleLines(0, 0, 100, 100, WHITE); // FIXME: MISSING LOWER RIGHT CORNER
        EndDrawing();
    }
   CloseWindow();        // Close window and OpenGL context
   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