[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MiNT] XAAES slow?



Odd Skancke wrote:
tir, 21,.06.2005 kl. 23.10 +0200, skrev Xavier Joubert:

Selon Odd Skancke <ozk@atari.org>:

But this situation doesn't happen in WinDom. The wind_calc() is used
every time you do WinDom equivalent of wind_get( WORKXYWH ) so the theme
change will be accomodated appropriately.

My arguments are based on situations where theme changes does not
affect already created windows (which must be specifically supported by
each application). In this case wind_calc() will return wrong (current
theme) deltas instead of the (previouse theme) deltas that were
effective at the time the window was created. So yes, this situation
will arise as WinDom handles things now.

This is a bug in XaAES, then.

AES should always be able to compute right deltas for a given window. So you
should either change already opened windows theme or keep old theme in memory
to be able to handle "old" windows correctly.


 I cant believe this. wind_calc() does NOT work on a given window
goddamned it! It has not window context. wind_get/set() does! What the
hell is the problem with you all? I'm about to give up this shit!



Odd is right.

That is why wind_calc can never be cheap.

I didnt want any complexity, duplication of code and
future incompatabilities.
So I let wind_calc create a window with the given attributes,
retrieve the requested rectangle and then delete it again.

Slow, but simple, and always correct.

Wind_calc has very little use in general.
Basically only when you know where you want the work_area.
Because you must tell the border area to wind_open, you must be able
to go from work_area to border area.

I ever only used it for aligning the work area on a 8 pixel boundery.
That was before I bought NVDI. :-)

Dont use wind_calc on a already opened window.
On open windows use wind_get, because the calculations need only be
done when the window changes or is created/opened.

--
Groeten; Regards.
Henk Robbers.    mailto:h.robbers@chello.nl
                   http://members.ams.chello.nl/h.robbers/Home.html
Interactive disassembler:     TT-Digger;  http://digger.atari.org
A Home Cooked teXt editor:    AHCX