Possible Bug: Canvas::draw_point method is not drawing the point at (0,0)

If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Possible Bug: Canvas::draw_point method is not drawing the point at (0,0)

Hi.

I was testing the ClanLib 3.0.1 from this package: ClanLib-VC11Precompiled-static-mt-Win32-3.0.1.zip

When I try to draw the pixel at (0,0) with the draw_point of the canvas, the pixel is not shown on screen.
On the screenshot below I've drawn a pixel at (0,1) (please zoom the imagem at top left corner), but if I draw the pixel at (0,0), I can't see the pixel on screen.
Is this a bug of the ClanLib or am I doing something wrong?

You probably won't get any responses, mainly because nobody uses this function.

In theory, draw_point(x,y) should draw to (x,y) in clanD3D, clanGL (legacy or opengl 3.2+) and clanSWRender.

I am not sure why it doesn't. (I haven't got time to explore why).

All the RenderBatchers (points, lines and triangles) use similar code. I'm not sure why it breaks for just points.

Sources\Display\2D\render_batch_*.cpp contains the batchers

The reason nobody uses the function is because, by nature it's slow when drawing numerous points. If drawing over 1000 points (of a pixel in size) it's better to use a custom shader and use gc.draw_primitives(type_points, ....)
If drawing points larger than a pixel, point sprites are an option ( Examples\Display_Render\PointSprite\Sources\app.cp p is an example, although that example could be written better )