File: fullscreen.patch

package info (click to toggle)
icebreaker 2.2.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 868 kB
  • sloc: ansic: 6,119; makefile: 176; xml: 32; sh: 11
file content (11 lines) | stat: -rw-r--r-- 430 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
--- a/fullscreen.c
+++ b/fullscreen.c
@@ -71,7 +71,7 @@
 	screen = NULL;
 	
 	// very clever idea from Enrico
-	screen = SDL_CreateRGBSurfaceFrom(fullscreen->pixels +
+	screen = SDL_CreateRGBSurfaceFrom((u_char*) fullscreen->pixels +
 	                fullscreen->format->BytesPerPixel * FULLLEFTMARGIN +
 	                FULLTOPMARGIN*fullscreen->format->BytesPerPixel *  FULLWIDTH,
 	                WIDTH, HEIGHT, VIDEODEPTH,