Mercurial > sdl-ios-xcode
comparison src/video/ps3/SDL_ps3video.c @ 3146:9e902f423497 gsoc2009_ps3
YUV-Textures with SPU-support working.
author | Martin Lowinski <martin@goldtopf.org> |
---|---|
date | Mon, 15 Jun 2009 16:33:03 +0000 |
parents | 7828eed2f31a |
children | 0cf7bff804ad |
comparison
equal
deleted
inserted
replaced
3145:7828eed2f31a | 3146:9e902f423497 |
---|---|
126 deprintf(1, "PS3_VideoInit()\n"); | 126 deprintf(1, "PS3_VideoInit()\n"); |
127 | 127 |
128 SDL_VideoData *data = (SDL_VideoData *) _this->driverdata; | 128 SDL_VideoData *data = (SDL_VideoData *) _this->driverdata; |
129 SDL_DisplayMode mode; | 129 SDL_DisplayMode mode; |
130 | 130 |
131 #if 0 | 131 #if 1 |
132 /* Use a fake 32-bpp desktop mode */ | 132 /* Use a fake 32-bpp desktop mode */ |
133 mode.format = SDL_PIXELFORMAT_RGB888; | 133 mode.format = SDL_PIXELFORMAT_RGB888; |
134 mode.w = 1920; | 134 mode.w = 1920; |
135 mode.h = 1080; | 135 mode.h = 1080; |
136 mode.refresh_rate = 0; | 136 mode.refresh_rate = 0; |
138 SDL_AddBasicVideoDisplay(&mode); | 138 SDL_AddBasicVideoDisplay(&mode); |
139 SDL_AddRenderDriver(0, &SDL_PS3_RenderDriver); | 139 SDL_AddRenderDriver(0, &SDL_PS3_RenderDriver); |
140 | 140 |
141 //SDL_zero(mode); | 141 //SDL_zero(mode); |
142 SDL_AddDisplayMode(0, &mode); | 142 SDL_AddDisplayMode(0, &mode); |
143 display.desktop_mode = mode; | 143 //display.desktop_mode = mode; |
144 display.current_mode = mode; | 144 //display.current_mode = mode; |
145 #endif | 145 #endif |
146 | 146 |
147 /* | 147 /* |
148 *PS3 stuff | 148 *PS3 stuff |
149 */ | 149 */ |
197 } | 197 } |
198 | 198 |
199 /* Blank screen */ | 199 /* Blank screen */ |
200 memset(data->frame_buffer, 0x00, fb_finfo.smem_len); | 200 memset(data->frame_buffer, 0x00, fb_finfo.smem_len); |
201 | 201 |
202 #if 0 | |
202 PS3_InitModes(_this); | 203 PS3_InitModes(_this); |
203 | 204 |
204 SDL_AddRenderDriver(0, &SDL_PS3_RenderDriver); | 205 SDL_AddRenderDriver(0, &SDL_PS3_RenderDriver); |
206 #endif | |
205 | 207 |
206 /* We're done! */ | 208 /* We're done! */ |
207 return 0; | 209 return 0; |
208 } | 210 } |
209 | 211 |