[Kde-games-devel] [Patch] Fix QPainter usage

Mauricio Piacentini piacentini at kde.org
Mon Dec 24 15:51:25 CET 2007


Christian Ehrlicher wrote:
> You always have to call QPainter::end() after you finished painting and
> want to access the generated QPaintDevice/QImage afterwards. If you
> don't do this, it's not guranteed that QPainter finished painting on the
> QPaintDevice (although it works fine in most of the cases on linux) and
> your QImage is corrupt.
> 
> I just added a few QPainter::end().

Thanks, Christian. I applied the patch and tested all affected 
applications under Linux as well. Patch is committed to SVN.
Does it mean all games now display correctly under Windows as well?

Regards,
Mauricio Piacentini


More information about the kde-games-devel mailing list