comparison src/video/SDL_video.c @ 1682:7ae8018b2e5d SDL-1.3

Default palette entries to white, instead of black. More palettized video mode support...
author Sam Lantinga <slouken@libsdl.org>
date Fri, 16 Jun 2006 06:00:31 +0000
parents 80a5e6a4e1e2
children 396a35389351
comparison
equal deleted inserted replaced
1681:80a5e6a4e1e2 1682:7ae8018b2e5d
331 SDL_realloc(_this->displays, 331 SDL_realloc(_this->displays,
332 (_this->num_displays + 1) * sizeof(*displays)); 332 (_this->num_displays + 1) * sizeof(*displays));
333 if (displays) { 333 if (displays) {
334 index = _this->num_displays++; 334 index = _this->num_displays++;
335 displays[index] = *display; 335 displays[index] = *display;
336 displays[index].device = _this;
336 _this->displays = displays; 337 _this->displays = displays;
337 } else { 338 } else {
338 SDL_OutOfMemory(); 339 SDL_OutOfMemory();
339 } 340 }
340 return index; 341 return index;