Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 339604 Details for
Bug 458504
Stabilize =games-arcade/sdl-sopwith-1.7.5-r1
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
sopwith-video.patch
sopwith-video.patch (text/plain), 546 bytes, created by
Denis M. (Phr33d0m)
on 2013-02-21 16:04:23 UTC
(
hide
)
Description:
sopwith-video.patch
Filename:
MIME Type:
Creator:
Denis M. (Phr33d0m)
Created:
2013-02-21 16:04:23 UTC
Size:
546 bytes
patch
obsolete
>--- src/sdl/video.c.orig 2013-02-21 11:48:57.000000000 -0400 >+++ 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]); >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 458504
: 339604