Mercurial > sdl-ios-xcode
comparison src/video/x11/SDL_x11opengl.c @ 5251:58265e606e4e
Window coordinates are in the global space and windows are not tied to a particular display.
Also added Ctrl-Enter keybinding to the test code to toggle fullscreen mode for testing.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Thu, 10 Feb 2011 14:44:25 -0800 |
parents | 762e40fb8e28 |
children | b530ef003506 |
comparison
equal
deleted
inserted
replaced
5250:329d435f97f4 | 5251:58265e606e4e |
---|---|
378 X11_GL_CreateContext(_THIS, SDL_Window * window) | 378 X11_GL_CreateContext(_THIS, SDL_Window * window) |
379 { | 379 { |
380 SDL_WindowData *data = (SDL_WindowData *) window->driverdata; | 380 SDL_WindowData *data = (SDL_WindowData *) window->driverdata; |
381 Display *display = data->videodata->display; | 381 Display *display = data->videodata->display; |
382 int screen = | 382 int screen = |
383 ((SDL_DisplayData *) window->display->driverdata)->screen; | 383 ((SDL_DisplayData *) SDL_GetDisplayForWindow(window)->driverdata)->screen; |
384 XWindowAttributes xattr; | 384 XWindowAttributes xattr; |
385 XVisualInfo v, *vinfo; | 385 XVisualInfo v, *vinfo; |
386 int n; | 386 int n; |
387 GLXContext context = NULL; | 387 GLXContext context = NULL; |
388 | 388 |