Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 678299 Details for
Bug 825678
SDL::App->new() on console framebuffer segfaults
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
Test case in C
test.c (text/plain), 788 bytes, created by
Petr Pisar
on 2013-01-14 17:04:38 UTC
(
hide
)
Description:
Test case in C
Filename:
MIME Type:
Creator:
Petr Pisar
Created:
2013-01-14 17:04:38 UTC
Size:
788 bytes
patch
obsolete
>#include <SDL.h> >#include <stdlib.h> >#include <stdio.h> > >void error(const char *message) { > puts(message); > SDL_Quit(); > exit(EXIT_FAILURE); >} > >int main(int argc, char **argv) { > int width = 800; > int height = 600; > SDL_Surface *surface; > > if (argc > 2 && argv[1] != NULL && argv[2] != NULL) { > /* Range not checked */ > width = strtol(argv[1], NULL, 0); > height = strtol(argv[2], NULL, 0); > } > > /* Init SDL */ > if (SDL_Init(SDL_INIT_VIDEO)) > error("SDL_Init() failed"); > > surface = SDL_SetVideoMode(width, height, 0, SDL_SWSURFACE); > if (!surface) > error("SDL_SetVideoMode() failed"); > > /* Perform a tests */ > printf("Width is %d\n", surface->w); > > /* Clean up */ > SDL_Quit(); > return EXIT_SUCCESS; >} >
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 Raw
Actions:
View
Attachments on
bug 825678
:
678295
| 678299 |
678300
|
678316
|
678331
|
678879