comparison src/video/dummy/SDL_nullvideo.c @ 2227:b252359547ed

Exported the software renderer texture functions to make easier to create a renderer based on a framebuffer. Fixed an initialization bug with the dummy video display mode.
author Sam Lantinga <slouken@libsdl.org>
date Sat, 11 Aug 2007 23:26:03 +0000
parents a788656ca29a
children c3e7c0698cbb 99210400e8b9
comparison
equal deleted inserted replaced
2226:0e70b4b8cf84 2227:b252359547ed
112 /* Use a fake 32-bpp desktop mode */ 112 /* Use a fake 32-bpp desktop mode */
113 mode.format = SDL_PIXELFORMAT_RGB888; 113 mode.format = SDL_PIXELFORMAT_RGB888;
114 mode.w = 1024; 114 mode.w = 1024;
115 mode.h = 768; 115 mode.h = 768;
116 mode.refresh_rate = 0; 116 mode.refresh_rate = 0;
117 mode.driverdata = NULL;
117 SDL_AddBasicVideoDisplay(&mode); 118 SDL_AddBasicVideoDisplay(&mode);
118 SDL_AddRenderDriver(0, &SDL_DUMMY_RenderDriver); 119 SDL_AddRenderDriver(0, &SDL_DUMMY_RenderDriver);
119 120
120 SDL_zero(mode); 121 SDL_zero(mode);
121 SDL_AddDisplayMode(0, &mode); 122 SDL_AddDisplayMode(0, &mode);