Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

- the 3rd param set_alpha is now $alpha instead of $key

- fixed internal pod links
  • Loading branch information...
commit 7246e8efa6b9c3c1b35a41d2147be20617e92a8e 1 parent b12303f
@dod38fr dod38fr authored
Showing with 10 additions and 10 deletions.
  1. +10 −10 lib/pods/SDL/Video.pod
View
20 lib/pods/SDL/Video.pod
@@ -84,7 +84,7 @@ Export tag ':palette'
SDL_LOGPAL Logical palette, which controls how blits are mapped to/from the surface
SDL_PHYSPAL Physical palette, which controls how pixels look on the screen
-
+
Export tag ':grab'
SDL_GRAB_QUERY
@@ -337,19 +337,19 @@ each call to L<SDL::Video::set_video_mode|/set_video_mode>, for example for a mu
Creates a new SDL::surface of the specified L<SDL::PixelFormat>, and then copies and maps the given surface to it.
It is also useful for making a copy of a surface.
-
+
The flags parameter is passed to L<SDL::Surface>C<-E<gt>new> and has those semantics.
This function is used internally by L<SDL::Video::display_format|/display_format>.
This function can only be called after C<SDL::init>.
-
+
it returns a L<SDL::Surface> on success or C<undef> on error.
-
+
=head2 display_format
$new_surface = SDL::Video::display_format( $surface );
This function takes a surface and copies it to a new surface of the pixel format and colors of the video framebuffer, suitable for fast
-blitting onto the display surface. It calls L<SDL::Video::convert_surface|/conver_surface>.
+blitting onto the display surface. It calls L<SDL::Video::convert_surface|/convert_surface>.
If you want to take advantage of hardware colorkey or alpha blit acceleration, you should set the colorkey and alpha value before calling
this function.
@@ -438,7 +438,7 @@ C<SDL::Video::set_color_key> returns C<0> on success or C<-1> on error.
=head2 set_alpha
- $set_alpha = SDL::Video::set_alpha( $surface, $flag, $key );
+ $set_alpha = SDL::Video::set_alpha( $surface, $flag, $alpha );
C<set_alpha> is used for setting the per-surface alpha value and/or enabling and disabling alpha blending.
@@ -626,11 +626,11 @@ a matching unlock.
SDL::Video::unlock_surface( $surface );
-Surfaces that were previously locked using L<SDL::Video::lock_surface|/lock_sruface> must be unlocked with C<SDL::Video::unlock_surface>.
+Surfaces that were previously locked using L<SDL::Video::lock_surface|/lock_surface> must be unlocked with C<SDL::Video::unlock_surface>.
Surfaces should be unlocked as soon as possible.
C<SDL::Video::unlock_surface> doesn't return anything.
-B<Note>: Since 1.1.8, the surface locks are recursive. See L<SDL::Video::lock_surface|/lock_sruface> for more information.
+B<Note>: Since 1.1.8, the surface locks are recursive. See L<SDL::Video::lock_surface|/lock_surface> for more information.
=head2 MUSTLOCK
@@ -845,7 +845,7 @@ Sets a portion of the palette for the given 8-bit surface.
Palettized (8-bit) screen surfaces with the C<SDL_HWPALETTE> flag have two palettes, a logical palette that is used for mapping blits to/from
the surface and a physical palette (that determines how the hardware will map the colors to the display).
-Non screen surfaces have a logical palette only. L<SDL::Video::blit|/blit> always uses the logical palette when blitting surfaces (if it has to
+Non screen surfaces have a logical palette only. L<SDL::Video::blit_surface|/blit_surface> always uses the logical palette when blitting surfaces (if it has to
convert between surface pixel formats). Because of this, it is often useful to modify only one or the other palette to achieve various
special color effects (e.g., screen fading, color flashes, screen dimming).
@@ -1225,7 +1225,7 @@ It returns C<0> on success or C<-1> on error.
SDL::Video::unlock_YUV_overlay( $overlay );
-The opposite to L<SDL::Video::lock_YUV_overlay|/sock_YUV_overlay>. Unlocks a previously locked overlay. An overlay must be unlocked before it
+The opposite to L<SDL::Video::lock_YUV_overlay|/lock_YUV_overlay>. Unlocks a previously locked overlay. An overlay must be unlocked before it
can be displayed. C<unlock_YUV_overlay> does not return anything.
=head2 display_YUV_overlay
Please sign in to comment.
Something went wrong with that request. Please try again.