Mercurial > sdl-ios-xcode
diff src/video/qnxgf/SDL_qnxgf.c @ 3685:64ce267332c6
Switched from SDL_WindowID and SDL_TextureID to SDL_Window* and SDL_Texture* for code simplicity and improved performance.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Thu, 21 Jan 2010 06:21:52 +0000 |
parents | 4b594623401b |
children | f7b03b6838cb |
line wrap: on
line diff
--- a/src/video/qnxgf/SDL_qnxgf.c Thu Jan 21 05:49:41 2010 +0000 +++ b/src/video/qnxgf/SDL_qnxgf.c Thu Jan 21 06:21:52 2010 +0000 @@ -978,7 +978,7 @@ qnxgf_createwindow(_THIS, SDL_Window * window) { SDL_VideoData *gfdata = (SDL_VideoData *) _this->driverdata; - SDL_VideoDisplay *display = SDL_GetDisplayFromWindow(window); + SDL_VideoDisplay *display = window->display; SDL_DisplayData *didata = (SDL_DisplayData *) display->driverdata; SDL_WindowData *wdata; int32_t status; @@ -1081,8 +1081,8 @@ hiddi_enable_mouse(); /* By default last created window got a input focus */ - SDL_SetKeyboardFocus(0, window->id); - SDL_SetMouseFocus(0, window->id); + SDL_SetKeyboardFocus(0, window); + SDL_SetMouseFocus(0, window); /* Window has been successfully created */ return 0; @@ -1155,7 +1155,7 @@ { SDL_VideoData *gfdata = (SDL_VideoData *) _this->driverdata; SDL_DisplayData *didata = - (SDL_DisplayData *) SDL_GetDisplayFromWindow(window)->driverdata; + (SDL_DisplayData *) window->display->driverdata; SDL_WindowData *wdata = (SDL_WindowData *) window->driverdata; if (wdata != NULL) { @@ -1309,7 +1309,7 @@ SDL_VideoData *gfdata = (SDL_VideoData *) _this->driverdata; SDL_WindowData *wdata = (SDL_WindowData *) window->driverdata; SDL_DisplayData *didata = - (SDL_DisplayData *) SDL_GetDisplayFromWindow(window)->driverdata; + (SDL_DisplayData *) window->display->driverdata; EGLBoolean status; int32_t gfstatus; EGLint configs;