You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 2, 2019. It is now read-only.
^ The above code should produce a 100x100 box, but is actually producing a 101x101 box:
There seems to be some feathering around the edges, which produces the "border", even though I haven't specified NK_WINDOW_BORDER. As I understand it, this feathering shouldn't be there, as I am specifying exact pixel coordinates, and the box is axis-aligned.
Original screenshot:
The text was updated successfully, but these errors were encountered:
This is with the sdl_opengl3 demo backend btw. Just tried with the gdip demo backend too, and the square is still 101x101, but the colour is solid all the way to the edges
Note how border is messed up at the bottom-left corner (top-left corner had same effect). Code was:
nk_begin(ctx, "Demo", nk_rect(0, 0, 100, 100)
Demo was sdl_opengl2, background color was changed to (255, 0, 0).
I suspect xlib is somehow fixing rounding, for example by aligning positions to pixels, but OpenGL is interpolating pixel values instead. Apparently, in picture above, bottom border (horizontal) pixels are at x=0 or close to that, but left border (vertical) pixels probably a little bit shifted to the right. This is just my guess.
^ The above code should produce a 100x100 box, but is actually producing a 101x101 box:
There seems to be some feathering around the edges, which produces the "border", even though I haven't specified NK_WINDOW_BORDER. As I understand it, this feathering shouldn't be there, as I am specifying exact pixel coordinates, and the box is axis-aligned.
Original screenshot:
The text was updated successfully, but these errors were encountered: