Re: [Amsn-devel] animated gifs

2006-02-04 Thread Youness Alaoui
hehe, yeah!, well, the thing is that I think I know why it doesn't work well, it's because of the way you did it (Phil) : you tell Tk to notify all windows, and the text widget gets notified, it's notified of the image change, and you stop there.. but the changeproc of the text widget will th

Re: [Amsn-devel] animated gifs

2006-02-04 Thread Bruno Costa
Clearing the window makes the cpu goes back to 1% too, so, would be possible to make a "pseudo-scrolling" in the chatwindow? I mean, only parse the visible part of the text, and have a buffer with the "hidden" raw text, if the user scroll up then parse the buffer... this way only the visible emotic

Re: [Amsn-devel] animated gifs

2006-02-04 Thread Youness Alaoui
follow up time.. any news on this ? I receive a custom smiley that takes 50+% of my CPU EVEN if the window is minimzed.. cpu goes back to 0-1% after I close the window... any news on how to avoid that? KKRT On Sun, 29 Jan 2006 06:08:58 -0500, Le Philousophe - Phil <[EMAIL PROTECTED]> wrot

Re: [Amsn-devel] animated gifs

2006-01-29 Thread Jérôme Gagnon-Voyer
FIXED Le 27 janvier 2006 à 17:33, Jérôme Gagnon-Voyer a écrit : Btw I just found a bug with animated gifs and auto-resize DP for chat window (may be for contact list too, I didn't try) When someone has an animated display picture, like Alvaro, you can't resize it. Just look at what happens

Re: [Amsn-devel] animated gifs

2006-01-29 Thread Le Philousophe - Phil
Hi, about resizing the animated GIFs, I tried to do something but I have performance issues So I don't advise to let resizing of GIFs... About the patch for the drawing thing I will try to see. Phil Le Saturday 28 January 2006 21:16, Youness Alaoui a écrit : > What I meant is to go to : http:

Re: [Amsn-devel] animated gifs

2006-01-28 Thread Youness Alaoui
What I meant is to go to : http://www.xdp.it/cximage.htm download cximage again, and do a diff between our version and the one available on xdp! (they didn't release any version for a while, and we use the same as the one on the website!).. there.. you got your patch! we fixed a lot of thing

Re: [Amsn-devel] animated gifs

2006-01-28 Thread Le Philousophe - Phil
Hi, which patch I don't remember. Anyway, when we resize we don't resize the image since TkCxImage do the check before to not resize the frame. I already thought about the trouble but I was lazy and I didn't make the resize for all frames... :s Phil Le Saturday 28 January 2006 08:38, Youness

Re: [Amsn-devel] animated gifs

2006-01-27 Thread Youness Alaoui
yeah, I knew about that even before I saw it, I was expecting to have this kind of problem when I'll resize.. I think it's very doable now that we manage gifs correctly! btw, Phil, did you think about sending our patch to cximage team ? KKRT n Fri, 27 Jan 2006 17:33:19 -0500, Jérôme Gagnon-V

Re: [Amsn-devel] animated gifs

2006-01-27 Thread Youness Alaoui
ok, I've just looked into the code.. you had a great idea with the hook, only problem is "it's not good enough".. indeed, that's what's making our CPU so high! let me resume what you do for each gif, you have a timer that launches after each Xms (where X is the delay between each frame in t

Re: [Amsn-devel] animated gifs

2006-01-27 Thread Alvaro J. Iradier
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Wow, do you all love my display picture? or it's just it's great for testing and debugging? :p Greets. Jérôme Gagnon-Voyer wrote: > Btw I just found a bug with animated gifs and auto-resize DP for chat > window (may be for contact list too, I didn't

Re: OT: :o is that Jerome? (Qas: Re: [Amsn-devel] animated gifs)

2006-01-27 Thread Vivia Nikolaidou
> > So may be just add a check "if animated..." don't resize.. > > I can't believe YOU said this!!. :o :o :o Sorry... misunderstood!... [01:43:52] it's not an option [01:43:54] it's a check maybe I'd better go find back my brain instead --

OT: :o is that Jerome? (Qas: Re: [Amsn-devel] animated gifs)

2006-01-27 Thread Vivia Nikolaidou
> So may be just add a check "if animated..." don't resize.. I can't believe YOU said this!!. :o :o :o --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engi

Re: [Amsn-devel] animated gifs

2006-01-27 Thread Jérôme Gagnon-Voyer
Btw I just found a bug with animated gifs and auto-resize DP for chat window (may be for contact list too, I didn't try) When someone has an animated display picture, like Alvaro, you can't resize it. Just look at what happens when you open a chatwindow with Alvaro with auto-resize enabled

Re: [Amsn-devel] animated gifs

2006-01-27 Thread Youness Alaoui
hoho, sorry, that wasn't clear.. if you want to explain in french, I'd vote for it (or in PM if you prefer).. I'll look at the code and try to understand what you meant, or I'll simply reread this once I' ma bit more awaken... I'll explain in one line (yes, possible:P) what I think should be :

Re: [Amsn-devel] animated gifs

2006-01-27 Thread Le Philousophe - Phil
Well... I will try to explain me clearly... If it isn't clear please notify me... The main trouble comes from the fact that we can't know if an image is displayed or not. So actually, at each frame, we notify Tk that the image has changed and Tk will propagate the information to all widgets linke

[Amsn-devel] animated gifs

2006-01-26 Thread Youness Alaoui
anigifs take too much CPU, is it normal ? I though it used less cpu than when Phil added his fix (but uses less CPU on other machines..) Also, even if the image is not in screen, it gets udpated.. I think there is a logic problem in your code, probably a small one, but you might want to check