Anders Melander

Results 94 comments of Anders Melander

Have you looked at the `TCanvas32.Ellipse` functions?

Yes, it does a single SinCos for the whole ellipse and yes, it does anti aliasing. Without AA you might as well just draw a circle and stretch it.

Yes, you should just pass in the bounding rectangle. The `AREAINFO_ELLIPSE` was probably a case that was planned but never implemented. I recently implemented the `AREAINFO_LINE` case but I don't...

I haven't looked at the code but it's probably a bug (in some places). I know that we used to have problems with some functions excluding the endpoints like GDI...

The Sprites example _is_ the benchmark for repaint optimization... If you click on the Benchmark button it runs a benchmark and generate a text file containing the results. The benchmark...

I have now rewritten the repaint mechanism and the results so far are very positive. The old code contained a number of mistakes with regard to how paint is done...

I've moved the host OS specific functionality into the backends but we need an implementation for LCL/GTK before this is complete. @x2nie can you write it?

> we need an implementation for LCL/GTK By the way, it might be that this isn't possible due to the way LCL handles repaints on GTK.

It turns out the painting mechanism is even more broken than I realized. I will create a separate issue for that later. Long story short; The current painting mechanism apparently...

@tom-jan Thanks for your observations. Much appreciated! > I have solved the double repaint issue by replacing if CustomRepaint then block in the TCustomPaintBox32.WMPaint handler with: > `if CustomRepaint then...