mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-24 06:39:46 -06:00
small fixes
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@1623 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
@ -107,8 +107,7 @@ SDLWindow::SDLWindow(int _iwidth, int _iheight) {
|
||||
|
||||
//init sdl video
|
||||
if (SDL_Init(SDL_INIT_VIDEO) < 0) {
|
||||
PanicAlert("Failed to init SDL");
|
||||
//TODO : Display an error message
|
||||
PanicAlert("Failed to init SDL: %s", SDL_GetError());
|
||||
SDL_Quit();
|
||||
// return NULL;
|
||||
}
|
||||
|
@ -57,7 +57,9 @@ X11Window::X11Window(int _iwidth, int _iheight) {
|
||||
GLX_GREEN_SIZE, 8,
|
||||
GLX_BLUE_SIZE, 8,
|
||||
GLX_DEPTH_SIZE, 24,
|
||||
GLX_SAMPLE_BUFFERS_ARB, g_Config.iMultisampleMode, GLX_SAMPLES_ARB, 1, None };
|
||||
GLX_SAMPLE_BUFFERS_ARB,
|
||||
g_Config.iMultisampleMode,
|
||||
GLX_SAMPLES_ARB, 1, None };
|
||||
dpy = XOpenDisplay(0);
|
||||
g_VideoInitialize.pWindowHandle = (HWND)dpy;
|
||||
screen = DefaultScreen(dpy);
|
||||
|
Reference in New Issue
Block a user