Re: SDLx::Text - replace old text?

2011-12-25 Thread Dominique Dumont
Le Friday 23 December 2011 21:02:17, Kartik Thakore a écrit : Regarding the surface, SDLx::App is a SDLx::Surface. That's what I was referring to. I don't think it's safe to make any assumptions about what's behind the text, so it should be the module user's responsibility to clear

AW: SDLx::Text - replace old text?

2011-12-25 Thread Alex
Dumont [mailto:domi.dum...@free.fr] Gesendet: Sonntag, 25. Dezember 2011 10:24 An: sdl-devel@perl.org Betreff: Re: SDLx::Text - replace old text? Le Friday 23 December 2011 21:02:17, Kartik Thakore a écrit : Regarding the surface, SDLx::App is a SDLx::Surface. That's what I was referring

Re: SDLx::Text - replace old text?

2011-12-24 Thread Dominique Dumont
Le Thursday 22 December 2011 00:17:07, Alex a écrit : First, the text Hello World! is drawn to the surface. Then, I alter the text and draw it again. But the old hello world text still remains on the surface. I don't want that. I want Hello World! to disappear and Susan so show up. You have

Re: SDLx::Text - replace old text?

2011-12-23 Thread Jeffrey Palmer
::Surface for more information. Cheers, Jeff On Wed, Dec 21, 2011 at 6:17 PM, Alex cap...@gmx.de wrote: Dear all! I want to replace an SDLx::Text by some other text. Do I have to redraw the whole surface that was covered by the old text in order to replace it by a new text? The following script

Re: SDLx::Text - replace old text?

2011-12-23 Thread Kartik Thakore
in SDLx::Surface for more information. Cheers, Jeff On Wed, Dec 21, 2011 at 6:17 PM, Alex cap...@gmx.de wrote: Dear all! I want to replace an SDLx::Text by some other text. Do I have to redraw the whole surface that was covered by the old text in order to replace it by a new text

Re: SDLx::Text - replace old text?

2011-12-23 Thread Jeffrey Palmer
, 0x00FF ); The undef there indicates that the entire surface should be used as the rectangle.  See draw_rect in SDLx::Surface for more information. Cheers, Jeff On Wed, Dec 21, 2011 at 6:17 PM, Alex cap...@gmx.de wrote: Dear all! I want to replace an SDLx::Text by some other text

Re: SDLx::Text - replace old text?

2011-12-23 Thread Kartik Thakore
. See draw_rect in SDLx::Surface for more information. Cheers, Jeff On Wed, Dec 21, 2011 at 6:17 PM, Alex cap...@gmx.de wrote: Dear all! I want to replace an SDLx::Text by some other text. Do I have to redraw the whole surface that was covered by the old text in order

SDLx::Text - replace old text?

2011-12-21 Thread Alex
Dear all! I want to replace an SDLx::Text by some other text. Do I have to redraw the whole surface that was covered by the old text in order to replace it by a new text? The following script demonstrates my problem: [code] #!perl use strict; use warnings; use SDL; use SDL; use SDLx::App