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

List:       kde-devel
Subject:    Re: [PATCH] semi transparent rubberband
From:       Richard Smith <kde () metafoo ! co ! uk>
Date:       2004-02-09 15:08:56
Message-ID: 200402091508.56160.kde () metafoo ! co ! uk
[Download RAW message or body]

On Monday 09 February 2004 2:52 pm, aviv bergman wrote:
> > I'm using the nvidia drivers. And on my box (2.4GHz P4) it's painfully
> > slow when selecting large areas. Also, the XRenderColor value you specify
> > in kstyle.diff is wrong - since XRender seems to use pre-alpha-multiplied
> > colours, you want to multiply the red, green and blue values by 0x70 not
> > by 255. That way it doesn't make your icons disappear.
>
> thanx - it does look beter now (also changed the alpha to 0x4000)
> i have to enable render acceleration in XF86Config - add
>     Option	"RenderAccel" "1"
> to the device section.

Thanks, I'll try that. Selecting a 1200x700 region, it updated at about 2
frames per second. Not nice.

> i've also tested it now without render acceleration and it sucks, though
> nautilus does much better - i guess they are drawing only the updated
> region. i think i could do that - but it means the drawing code will be
> inside qiconview and not in the style.

It also prevents using, for instance, a colour gradient across the selected
region, or having the selection colour changing based on the region size
(something I've got running here - it's fun, but hardly practical).

> > This part is not quite right - if the list view gets repainted while the
> > rubberband is visible, the new items get drawn over the top of it. You'll
> > want to catch that and handle it properly in the drawContents() function.
>
> i guess you mean iconview - in theory you're right, but why should the
> iconview be repainted while rubberband dragging?

If I start selecting icons in Konqueror before the window's fully loaded, as
the icons I selected get thumbnails or whatever calculated their images
change and they're repainted over the top of my rubberband.

Richard
 
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread] 

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