Mercurial > sdl-ios-xcode
comparison src/video/ps3/SDL_ps3video.c @ 3520:83518f8fcd61
Fixed calls to SDL_AddRenderDriver()
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Fri, 04 Dec 2009 08:45:08 +0000 |
parents | 94fb40a4a9a7 |
children | f7b03b6838cb |
comparison
equal
deleted
inserted
replaced
3519:1374f9275de9 | 3520:83518f8fcd61 |
---|---|
122 | 122 |
123 | 123 |
124 int | 124 int |
125 PS3_VideoInit(_THIS) | 125 PS3_VideoInit(_THIS) |
126 { | 126 { |
127 int i; | |
128 | |
127 deprintf(1, "PS3_VideoInit()\n"); | 129 deprintf(1, "PS3_VideoInit()\n"); |
128 | 130 |
129 SDL_VideoData *data = (SDL_VideoData *) _this->driverdata; | 131 SDL_VideoData *data = (SDL_VideoData *) _this->driverdata; |
130 SDL_DisplayMode mode; | 132 SDL_DisplayMode mode; |
131 | 133 |
179 | 181 |
180 /* Blank screen */ | 182 /* Blank screen */ |
181 memset(data->frame_buffer, 0x00, fb_finfo.smem_len); | 183 memset(data->frame_buffer, 0x00, fb_finfo.smem_len); |
182 | 184 |
183 PS3_InitModes(_this); | 185 PS3_InitModes(_this); |
184 SDL_AddRenderDriver(0, &SDL_PS3_RenderDriver); | 186 for (i = 0; i < _this->num_displays; ++i) { |
187 SDL_AddRenderDriver(&_this->displays[i], &SDL_PS3_RenderDriver); | |
188 } | |
185 | 189 |
186 /* We're done! */ | 190 /* We're done! */ |
187 return 0; | 191 return 0; |
188 } | 192 } |
189 | 193 |