comparison src/video/nds/SDL_ndsvideo.c @ 3520:83518f8fcd61

Fixed calls to SDL_AddRenderDriver()
author Sam Lantinga <slouken@libsdl.org>
date Fri, 04 Dec 2009 08:45:08 +0000
parents 99210400e8b9
children f7b03b6838cb
comparison
equal deleted inserted replaced
3519:1374f9275de9 3520:83518f8fcd61
108 mode.h = 192; 108 mode.h = 192;
109 mode.format = SDL_PIXELFORMAT_ABGR1555; 109 mode.format = SDL_PIXELFORMAT_ABGR1555;
110 mode.refresh_rate = 60; 110 mode.refresh_rate = 60;
111 mode.driverdata = NULL; 111 mode.driverdata = NULL;
112 112
113 SDL_AddBasicVideoDisplay(&mode); 113 if (SDL_AddBasicVideoDisplay(&mode) < 0) {
114 SDL_AddRenderDriver(0, &NDS_RenderDriver); 114 return -1;
115 }
116 SDL_AddRenderDriver(&_this->displays[0], &NDS_RenderDriver);
115 117
116 SDL_zero(mode); 118 SDL_zero(mode);
117 SDL_AddDisplayMode(0, &mode); 119 SDL_AddDisplayMode(0, &mode);
118 120
119 powerON(POWER_ALL_2D); 121 powerON(POWER_ALL_2D);