Replies: 1 comment 1 reply
-
|
@Kaggen67 First, you should try with latest raylib from GitHub master branch, it's 2000 commits ahead from 5.5. In any case, it could be one pixel off for |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Uh oh!
There was an error while loading. Please reload this page.
-
Hi!
I'm pretty new to raylib. I'm using version 5.5 on Windows 11 with an NVIDIA GeForce RTX 5070 Ti graphics card. I use w64devkit for development.
Strange thing is when I use ImageDrawLine() function it seems it draw one pixel less than it should.
ImageDrawLine(&img, 0,10, 10, 10, WHITE) f.ex. should draw 11 pixels in X-direction, but draws only 10 (0-9).
I've seen some bug report about the DrawLine() function regarding misplaced pixels, but that seems to depend on the GPU hardware. As I understand it ImageDrawLine() use software line drawing (CPU)?
Is this a bug or am I missing something? The code below describes the problem. I draw two vertical lines (up-down, down up) and two horizontal (right-left, left right) all misses a pixel at the end, regardless which way they are drawn.
Beta Was this translation helpful? Give feedback.
All reactions