X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=pages%2FSDL-Mouse.html-inc;h=b967131dd550026216a369ced26d024a5ed9dd6a;hb=48f19ee87cf9a4809ecbcc021c53ae12dda725d7;hp=2f12fddb8c8fa2b698ae5e57ea5866a1f2b41726;hpb=6830c16eaa7a62997ee073de17a60c5046b4b712;p=sdlgit%2FSDL-Site.git diff --git a/pages/SDL-Mouse.html-inc b/pages/SDL-Mouse.html-inc index 2f12fdd..b967131 100644 --- a/pages/SDL-Mouse.html-inc +++ b/pages/SDL-Mouse.html-inc @@ -50,34 +50,32 @@ and in your main loop, when you draw graphics, also draw a SDL::Surface at the location of the mouse cursor.

Example:

 use SDL;
- use SDL::Cursor;
  use SDL::Mouse;
- use SDL::Surface;
  use SDL::Video;
 
  SDL::init(SDL_INIT_VIDEO);
  SDL::Video::set_video_mode( 640, 480, 16, SDL_SWSURFACE);
 
  my @data = (
-     bin2dec('00000000'),
-     bin2dec('00111100'),
-     bin2dec('01111110'),
-     bin2dec('01111110'),
-     bin2dec('01111110'),
-     bin2dec('01111110'),
-     bin2dec('00111100'),
-     bin2dec('00000000')
+     0b00000000,
+     0b00111100,
+     0b01111110,
+     0b01111110,
+     0b01111110,
+     0b01111110,
+     0b00111100,
+     0b00000000
  );
 
  my @mask = (
-     bin2dec('00111100'),
-     bin2dec('01111110'),
-     bin2dec('11100111'),
-     bin2dec('11000011'),
-     bin2dec('11000011'),
-     bin2dec('11100111'),
-     bin2dec('01111110'),
-     bin2dec('00111100')
+     0b00111100,
+     0b01111110,
+     0b11100111,
+     0b11000011,
+     0b11000011,
+     0b11100111,
+     0b01111110,
+     0b00111100
  );
 
  my $cursor = SDL::Mouse::create_cursor( \@data, \@mask, 8, 8, 0, 0 );
@@ -87,16 +85,6 @@ and in your main loop, when you draw graphics, also draw a SDL::Surface