ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/Deliantra-Client/DC.pm
(Generate patch)

Comparing deliantra/Deliantra-Client/DC.pm (file contents):
Revision 1.6 by root, Fri Apr 7 20:34:44 2006 UTC vs.
Revision 1.7 by root, Fri Apr 7 20:55:32 2006 UTC

113} 113}
114 114
115sub new_from_ttf { 115sub new_from_ttf {
116 my ($class, $ttf, $text) = @_; 116 my ($class, $ttf, $text) = @_;
117 117
118 utf8::upgrade $text; 118 utf8::encode $text;
119 119
120 my $surface = SDL::TTFRenderUTF8Blended $ttf, $text, 120 my $surface = SDL::TTFRenderUTF8Blended $ttf, $text,
121 (new SDL::Color -r => 255, -g => 255, -b => 255); 121 (new SDL::Color -r => 255, -g => 255, -b => 255);
122 122
123 $class->new_from_surface ($surface) 123 $class->new_from_surface (bless \$surface, SDL::Surface::)
124} 124}
125 125
126sub upload { 126sub upload {
127 my ($self) = @_; 127 my ($self) = @_;
128 128

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines