X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FSDL%2FCursor.pm;h=d434e83aedbd1403e74ee46065631e33f07cdbca;hb=fe6d1297a5ad798f9935c4ee4771e907554c2299;hp=34598b7d454e69645fb37cd11f346b2d5fbd4731;hpb=084b921f85583af6a5b82572f6a561c94dd2fb5d;p=sdlgit%2FSDL_perl.git diff --git a/lib/SDL/Cursor.pm b/lib/SDL/Cursor.pm index 34598b7..d434e83 100644 --- a/lib/SDL/Cursor.pm +++ b/lib/SDL/Cursor.pm @@ -1,6 +1,31 @@ +#!/usr/bin/env perl +# # Cursor.pm # -# Copyright (C) 2000,2002 David J. Goehrig +# Copyright (C) 2005 David J. Goehrig +# +# ------------------------------------------------------------------------------ +# +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation; either +# version 2.1 of the License, or (at your option) any later version. +# +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA +# +# ------------------------------------------------------------------------------ +# +# Please feel free to send questions, suggestions or improvements to: +# +# David J. Goehrig +# dgoehrig@cpan.org # package SDL::Cursor; @@ -15,8 +40,10 @@ sub new { verify (%options, qw/ -data -mask -x -y /) if $SDL::DEBUG; + my $self = \SDL::NewCursor($options{-data},$options{-mask}, $options{-x},$options{-y}); + croak SDL::GetError() unless $$self; bless $self, $class; $self; }