Skip to content

Commit

Permalink
Fixes for Font in strict
Browse files Browse the repository at this point in the history
  • Loading branch information
Kartik Thakore committed Aug 15, 2009
1 parent 6da5a69 commit 1cf7cae
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion lib/SDL.pm
Expand Up @@ -60,7 +60,8 @@ sub NULL {

sub in {
my ($k,@t) = @_;
(scalar grep { defined $_ && $_ eq $k } @t) <=> 0;
return 0 unless defined $k;
return $k ~~ @t;
}

sub verify (\%@) {
Expand Down
4 changes: 3 additions & 1 deletion lib/SDL/Tool/Font.pm
Expand Up @@ -58,7 +58,9 @@ sub new {
-bg => $option{-background} || $option{-bg};
for (qw/ normal bold italic underline / ) {
if ($option{"-$_"}) {
&{"SDL::TTFont::$_"}($$self{-font});

SDL::TTFont->can($_)->($$self{-font});
#&{$sub}($$self{-font});
}
}
} else {
Expand Down

0 comments on commit 1cf7cae

Please sign in to comment.