X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=pages%2FSDL-Video.html-inc;h=ccf233c2a212cca39e990729e196790a8fddc3a1;hb=3afd3fb0984d2df0ce491f16546fbfa9b5454990;hp=86b96b89bbe5f764720e232ca9e2273c4bd424f6;hpb=5ce48b7ebb54cf63bf5fb7ffb7d5f9213f8d45a9;p=sdlgit%2FSDL-Site.git diff --git a/pages/SDL-Video.html-inc b/pages/SDL-Video.html-inc index 86b96b8..ccf233c 100644 --- a/pages/SDL-Video.html-inc +++ b/pages/SDL-Video.html-inc @@ -76,7 +76,7 @@
"x11"
, "windib"
Returns a reference to an array:
-
- - *
-of available screen dimensions (as
SDL::Rect
's) for the given format and video flags.
- - *
-with first array element 'all'. In this case you can set all modes.
- - *
-with first array element 'none' if no mode is available.
-
+
+ - of available screen dimensions (as
SDL::Rect
's) for the given format and video flags.
+ - with first array element 'all'. In this case you can set all modes.
+ - with first array element 'none' if no mode is available.
+
+
Note: <list_modes> should be called before the video_mode ist set. Otherwise you will always get 'all'.
Example:
use SDL;
@@ -690,11 +688,11 @@ a matching unlock.
sub main
{
- carp 'Unable to init SDL: '.SDL::get_error() if( SDL::init(SDL_INIT_VIDEO) < 0);
+ Carp::cluck 'Unable to init SDL: '.SDL::get_error() if( SDL::init(SDL_INIT_VIDEO) < 0);
$screen = SDL::Video::set_video_mode( 640, 480, 32, SDL_SWSURFACE);
- carp 'Unable to set 640x480x32 video' . SDL::get_error() if(!$screen);
+ Carp::cluck 'Unable to set 640x480x32 video' . SDL::get_error() if(!$screen);
while(1)
{
@@ -1443,9 +1441,9 @@ the application will receive a SDL_APPACTIVE
loss event (see Applic
is experimental).
-AUTHOR
-