comparison src/video/SDL_surface.c @ 2853:6258fa7cd300

Fixed picking blit function when RLE fails
author Sam Lantinga <slouken@libsdl.org>
date Sun, 07 Dec 2008 22:37:40 +0000
parents 4dba7aa7ea77
children 99210400e8b9
comparison
equal deleted inserted replaced
2852:7046f9567045 2853:6258fa7cd300
546 546
547 if (!scaleMode) { 547 if (!scaleMode) {
548 return 0; 548 return 0;
549 } 549 }
550 550
551 switch (surface->map->info.flags & (SDL_COPY_NEAREST)) { 551 switch (surface->map->info.flags & SDL_COPY_NEAREST) {
552 case SDL_COPY_NEAREST: 552 case SDL_COPY_NEAREST:
553 *scaleMode = SDL_TEXTURESCALEMODE_FAST; 553 *scaleMode = SDL_TEXTURESCALEMODE_FAST;
554 break; 554 break;
555 default: 555 default:
556 *scaleMode = SDL_TEXTURESCALEMODE_NONE; 556 *scaleMode = SDL_TEXTURESCALEMODE_NONE;