projects
/
sdlgit/SDL_perl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
More fixes, some clean up. For some reason blit is not work
[sdlgit/SDL_perl.git]
/
lib
/
SDL
/
Game
/
Rect.pm
diff --git
a/lib/SDL/Game/Rect.pm
b/lib/SDL/Game/Rect.pm
index
f5b754a
..
66d7baa
100644
(file)
--- a/
lib/SDL/Game/Rect.pm
+++ b/
lib/SDL/Game/Rect.pm
@@
-13,7
+13,7
@@
sub new {
my $w = shift || 0;
my $h = shift || 0;
- my $self = \SDL::NewRect($x, $y, $w, $h);
+ my $self = $class->SUPER::new($x, $y, $w, $h);
unless ($$self) {
require Carp;
Carp::croak SDL::GetError();