File: 030_backwards_compatibility.diff

package info (click to toggle)
sdlperl 1.20.3dfsg-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 1,796 kB
  • ctags: 2,171
  • sloc: perl: 7,394; ansic: 232; makefile: 75; sh: 1
file content (27 lines) | stat: -rw-r--r-- 601 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
diff -puriN SDL_perl-1.20.3/SDL_perl.xs sdlperl-1.20.3/SDL_perl.xs
--- SDL_perl-1.20.3/SDL_perl.xs	2003-03-27 11:17:23 +0100
+++ sdlperl-1.20.3/SDL_perl.xs	2006-03-01 00:42:56 +0100
@@ -241,6 +241,23 @@ XS(boot_SDL_perl)
 
 }
 
+MODULE = SDL::sdlpl             PACKAGE = SDL::sdlpl
+PROTOTYPES : DISABLE
+
+SDL_Surface *
+sdl_display_format ( surface )
+	SDL_Surface *surface
+	CODE:
+		RETVAL = SDL_DisplayFormat(surface);
+	OUTPUT:
+		RETVAL
+
+void
+sdl_free_surface ( surface )
+	SDL_Surface *surface
+	CODE:
+		SDL_FreeSurface(surface);
+
 MODULE = SDL_perl	PACKAGE = SDL
 PROTOTYPES : DISABLE