[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    Re: koffice/krita/image
From:       "LukasT.dev () gmail ! com" <lukast ! dev () gmail ! com>
Date:       2010-10-05 9:03:45
Message-ID: 201010051103.45465.LukasT.dev () gmail ! com
[Download RAW message or body]

Just an idea: calculate exactBound is slow, that's why there is this cache.
If you move the x and y, maybe you just need to adjust the exactBound only.

On Monday 04 October 2010 21:14:59 Sven Langkamp wrote:
> SVN commit 1182504 by langkamp:
> 
> invalidate exact bounds cache after setX/setY otherwise exactBounds is
> wrong after move BUG:252463
> 
> 
>  M  +2 -0      kis_paint_device.cc
> 
> 
> --- trunk/koffice/krita/image/kis_paint_device.cc #1182503:1182504
> @@ -1078,11 +1078,13 @@
>  void KisPaintDevice::setX(qint32 x)
>  {
>      m_d->x = x;
> +    m_d->cache.invalidate();
>  }
> 
>  void KisPaintDevice::setY(qint32 y)
>  {
>      m_d->y = y;
> +    m_d->cache.invalidate();
>  }
> 
>  bool KisPaintDevice::fastBitBltPossible(KisPaintDeviceSP src)
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic