license statement

Christian Lohmaier lohmaier+libreoffice at googlemail.com
Wed May 16 01:04:57 PDT 2012


Hi Joost,

On Tue, May 15, 2012 at 8:42 PM, Joost Eekhoorn
<joost.eekhoorn at gmail.com> wrote:
> P.S. I am still searching for a realy easy task for calc, with C++ and/or
> Python2.7 or Python3

What about this one:
https://bugs.freedesktop.org/show_bug.cgi?id=48256
Summary: EasyHack: clean out Hide/Show Cursor ...
Whiteboard: EasyHack,DifficultyBeginner,SkillCpp,TopicCleanup
Description:
"In the bad old days of calc, everything was rendered explicitly to the screen,
and then the cursor was rendered over the top using XOR rendering. To get this
right, before we rendered new things we would need to call:

HideCursor();
// do the incremental render
ShowCursor();

These days, we should never do that - all rendering should be done in response
to an idle handler, and should paint from scratch instead of trying to be
'clever' like this (it will increasingly not work & just waste resources on
modern systems).

So - we need to audit the code for these Hide/Show pairs. Clearly some
instances of hiding the cursor are prolly still applicable, but we should check
all of them in sc/ 'git grep -5 HideCursor' - and remove and re-test all
instances.

Potentially we want to add some calls to Invalidate() on the cursor region when
this causes problems :-)

Thanks !"

ciao
Christian


More information about the LibreOffice mailing list