[prev in list] [next in list] [prev in thread] [next in thread]
List: koffice-devel
Subject: Re: [PATCH] KWord: ruler's new look
From: Boudewijn Rempt <boud () valdyas ! org>
Date: 2005-05-27 7:27:24
Message-ID: 200505270927.24903.boud () valdyas ! org
[Download RAW message or body]
[Attachment #2 (multipart/signed)]
On Friday 27 May 2005 09:17, Yann Bodson wrote:
>
> Yes. I can see that when I set a very big font (>=48pt).
> Do you see that all the time?
Yes -- even with smaller fonts. I have often noticed that there is a lot of
variability in graphics effects between various display drivers for X11 --
I'm using an nvidia card with the nvidia drivers -- so it may be that your
card is cleverer and does a diff for small regions between paint operations
and doesn't paint when there's no difference. Or something like that...
> It's due to the fact that the ruler is completely redrawn each time. I'm
> not sure how to fix that, I'm not a QPainter expert...
I think the right thing would be to paint the ruler only once, and paint the
cursor line where it needs to be, and on moving only repaint the ruler at
that area. Or simply use a xor raster op twice.
Krita has its own ruler implementation (which I'd happily switch for a
KOffice-wide ruler, only Krita does not have the concept of pages), which you
might like to look at:
koffice/krita/ui/kis_ruler.cc
--
Boudewijn Rempt
http://www.valdyas.org/fading/index.cgi
[Attachment #5 (application/pgp-signature)]
_______________________________________________
koffice-devel mailing list
koffice-devel@kde.org
https://mail.kde.org/mailman/listinfo/koffice-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic