Mercurial > sdl-ios-xcode
diff src/video/ps3/SDL_ps3render.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 | f638ded38b8a |
children | f7b03b6838cb |
line wrap: on
line diff
--- a/src/video/ps3/SDL_ps3render.c Thu Jan 21 05:49:41 2010 +0000 +++ b/src/video/ps3/SDL_ps3render.c Thu Jan 21 06:21:52 2010 +0000 @@ -133,7 +133,7 @@ SDL_PS3_CreateRenderer(SDL_Window * window, Uint32 flags) { deprintf(1, "+SDL_PS3_CreateRenderer()\n"); - SDL_VideoDisplay *display = SDL_GetDisplayFromWindow(window); + SDL_VideoDisplay *display = window->display; SDL_DisplayMode *displayMode = &display->current_mode; SDL_VideoData *devdata = display->device->driverdata; SDL_Renderer *renderer; @@ -179,7 +179,7 @@ renderer->DestroyRenderer = SDL_PS3_DestroyRenderer; renderer->info.name = SDL_PS3_RenderDriver.info.name; renderer->info.flags = 0; - renderer->window = window->id; + renderer->window = window; renderer->driverdata = data; deprintf(1, "window->w = %u\n", window->w); @@ -518,7 +518,7 @@ SDL_PS3_RenderData *data = (SDL_PS3_RenderData *) renderer->driverdata; SDL_Window *window = SDL_GetWindowFromID(renderer->window); - SDL_VideoDisplay *display = SDL_GetDisplayFromWindow(window); + SDL_VideoDisplay *display = window->display; PS3_TextureData *txdata = (PS3_TextureData *) texture->driverdata; SDL_VideoData *devdata = display->device->driverdata; @@ -640,7 +640,7 @@ SDL_PS3_RenderData *data = (SDL_PS3_RenderData *) renderer->driverdata; SDL_Window *window = SDL_GetWindowFromID(renderer->window); - SDL_VideoDisplay *display = SDL_GetDisplayFromWindow(window); + SDL_VideoDisplay *display = window->display; SDL_VideoData *devdata = display->device->driverdata; /* Send the data to the screen */