[Kde-games-devel] bug ? in libkdegames

Albert Astals Cid aacid at kde.org
Tue May 15 22:35:44 CEST 2007


A Dimarts 15 Maig 2007, Paolo Capriotti va escriure:
> On 5/15/07, Anarky <anarky at ifrance.com> wrote:
> >  - since KGameCanvasGroup doesn't reimplement this method, the default
> > KGameCanvasItem's version is called
>
> KGameCanvasGroup does override paintInternal, that's why paint should
> never be called. Did kbattleship actually execute that assertion?

Not really

paintInternal(QPainter* p, const QRect& prect, const QRegion& preg,
QPoint delta, double cumulative_opacity);

should be 

paintInternal(QPainter* p, const QRect& prect, const QRegion& preg,
const QPoint &delta, double cumulative_opacity);

to match KGameCanvasItem declaration, but changing that makes the 
KGameCanvasGroup function not compile as it calls += over delta.

Can you fix that?

Albert


>
> Paolo
> _______________________________________________
> kde-games-devel mailing list
> kde-games-devel at kde.org
> https://mail.kde.org/mailman/listinfo/kde-games-devel




More information about the kde-games-devel mailing list