summaryrefslogtreecommitdiff
path: root/games-arcade/sdl-sopwith/files/sdl-sopwith-1.7.5-video-fix.patch
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2018-07-14 20:58:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2018-07-14 20:58:29 +0100
commit0cf2f20608308acdf3cb922c3736446bbd8f3388 (patch)
tree07815070629c7c11000a7f51ceb8ccbccb49a809 /games-arcade/sdl-sopwith/files/sdl-sopwith-1.7.5-video-fix.patch
parent1798c4aeca70ac8d0a243684d6a798fbc65735f8 (diff)
gentoo resync : 14.07.2018
Diffstat (limited to 'games-arcade/sdl-sopwith/files/sdl-sopwith-1.7.5-video-fix.patch')
-rw-r--r--games-arcade/sdl-sopwith/files/sdl-sopwith-1.7.5-video-fix.patch24
1 files changed, 0 insertions, 24 deletions
diff --git a/games-arcade/sdl-sopwith/files/sdl-sopwith-1.7.5-video-fix.patch b/games-arcade/sdl-sopwith/files/sdl-sopwith-1.7.5-video-fix.patch
deleted file mode 100644
index e9da16c43905..000000000000
--- a/games-arcade/sdl-sopwith/files/sdl-sopwith-1.7.5-video-fix.patch
+++ /dev/null
@@ -1,24 +0,0 @@
-Upstream patch: fix segfault while video device detection.
-Discovered here - https://bugs.gentoo.org/show_bug.cgi?id=458504
-
---- a/src/sdl/video.c.orig 2013-02-21 11:48:57.000000000 -0400
-+++ b/src/sdl/video.c 2013-02-21 11:49:35.000000000 -0400
-@@ -364,11 +364,17 @@
- int n;
- int w, h;
- int flags = 0;
-+ int status;
-
- printf("CGA Screen Emulation\n");
- printf("init screen: ");
-
-- SDL_Init(SDL_INIT_VIDEO);
-+ status = SDL_Init(SDL_INIT_VIDEO);
-+ if (status == -1)
-+ {
-+ fprintf(stderr, "Unable to locate video device. Exiting.\n");
-+ exit(1);
-+ }
-
- srand(time(NULL));
- set_icon(symbol_plane[rand() % 2][rand() % 16]);