Hi Alex,
This is actually the correct behavior. You need to redraw the
background before writing the new text. The easiest way to do that is
with:
$app-draw_rect( undef, 0x00FF );
The undef there indicates that the entire surface should be used as
the rectangle. See draw_rect in
But the surface is not an SDLx::Surface ... maybe we should change that at
least on the text surface. I think that once you decide to rewrite on the
text surface it should do that.
How about we add $text-clear(); ?
On Fri, Dec 23, 2011 at 2:37 PM, Jeffrey Palmer
jeffrey.t.pal...@gmail.comwrote:
I just realized this was discussed on Github, so you can probably
ignore what I wrote.
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
On Dec 23, 2011 2:43 PM, Jeffrey Palmer jeffrey.t.pal...@gmail.com
wrote:
I just realized this was discussed on Github, so you can probably
ignore what I wrote.
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