File: fix_api_spelling

package info (click to toggle)
libsdl-perl 2.548-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,972 kB
  • sloc: perl: 13,985; ansic: 583; makefile: 35
file content (24 lines) | stat: -rw-r--r-- 1,124 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
Description: Fix spelling error in API and documentation
 Spelling errors in API are bad because they confuse users. This patch makes the API accept correct spelling and also accept bad spelling to preserve backward compatibility
--- a/lib/SDLx/App.pm
+++ b/lib/SDLx/App.pm
@@ -77,7 +77,7 @@
 	$f |= SDL::Video::SDL_OPENGL if ( $options{gl} || $options{opengl} );
 	$f |= SDL::Video::SDL_FULLSCREEN
 		if ( $options{fullscreen} || $options{full} );
-	$f |= SDL::Video::SDL_RESIZABLE if ( $options{resizeable} );
+	$f |= SDL::Video::SDL_RESIZABLE if (  $options{resizable} || $options{resizeable} );
 	$f |= SDL::Video::SDL_DOUBLEBUF if ($db);
 	$f |= SDL::Video::SDL_ASYNCBLIT if ($async);
 
--- a/lib/pods/SDLx/App.pod
+++ b/lib/pods/SDLx/App.pod
@@ -74,7 +74,7 @@
 =item * flags
 Any flags you want to pass to L<SDL::Video> upon initialization. Defaults to SDL_ANYFORMAT. Flags should be I<or'ed> together if you're passing more than one (flags => FOO|BAR). Shortcut: 'f'.
 
-=item * resizeable
+=item * resizable
 Set this to a true value to make the window resizable by the user. Default is off.
 
 =item * exit_on_quit