Off-by-1 error in drawLine!?

Christian Ehrlicher Ch.Ehrlicher at gmx.de
Sat Mar 5 23:58:05 CET 2005


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Michael Schmitt schrieb:
| As you have mentioned in the header of qpainter_win.cpp, Windows does
| not draw the end points of a line whereas X11 does so. For that reason,
| you added some special code in drawLine that fixes the discepancy.
<snip>
| That means the end point IS drawn (at least in this particular case).
Hello

I hope that I've fixed your problem ( in drawLine, drawPolyline and
drawLineSegments ) with last cvs checkin. I've found out that it isn't
the endpoint which doesn't get drawn, but the one with the higher
coordinates. Since this wasn't known before, wemaybe have a lot more of
such bugs in our QPainter... :(

Thx for the report,
Christian
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFCKjl9nNKwkgf+zVMRAiRJAJ471JHg7GS9dalJknP8dF3ghDkXOgCgjZol
Qk9I9XiZyQG43C/7YBcPKLA=
=gay7
-----END PGP SIGNATURE-----


More information about the kde-cygwin mailing list