PerlGameDev/SDL — Issue #209: SDLx::Text - replacing old text don't work as expected
Author: pktm
Created: 2011-12-22 23:25:50+00:00
State: open

Hi!

If a SDLx::Text is drawn, then altered (the text string) and redrawn, the old text remains visible.

Example-Code showing the problem:

#!perl

use strict;
use warnings;
use SDL;

use SDL;
use SDLx::App;
use SDLx::Text;

my $app = SDLx::App->new(
exit_on_quit => 1,
);

my $message = SDLx::Text->new;

$message->write_to( $app, "Hello, World!" );
$app->update;

$message->text('Peter');
$message->write_to( $app );
$app->update();

$app->run();

More information:
OS: Windows 7 x64
Perl: Strawberry Perl 5.12.2 built for MSWin32-x64-multi-thread
SDL.pm: version 2.53501 (perl -e "use SDL 999;")
SDL::version is 1.2.14 (cf. http://sdl.perl.org/SDL-Version.html)
SDL::linked_version is 1.2.14

This issue was discussed on the mailing list the 22th December 2011.