$self;
}
+sub display_format_alpha {
+ my $self = shift;
+ my $tmp = SDL::DisplayFormatAlpha($$self);
+ SDL::FreeSurface ($$self);
+ $$self = $tmp;
+ $self;
+}
+
sub rgb {
my $self = shift;
my $tmp = SDL::ConvertRGB($$self);
C<SDL::Surface::display_format> converts the surface to the same format as the
current screen.
+=head2 display_format_alpha ()
+
+C<SDL::Surface::display_format_alpha> converts the surface to the same format as the
+current screen, plus an alpha channel.
+
=head2 rgb ()
C<SDL::Surface::rgb> converts the surface to a 24 bit rgb format regardless of the initial format.