Mercurial > sdl-ios-xcode
comparison src/video/win32/SDL_gdirender.c @ 3139:7f684f249ec9
indent
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Sat, 23 May 2009 22:41:08 +0000 |
parents | 0d12e8f1de3c |
children | 83518f8fcd61 |
comparison
equal
deleted
inserted
replaced
3125:d71d8ceda8b3 | 3139:7f684f249ec9 |
---|---|
479 case SDL_BLENDMODE_NONE: | 479 case SDL_BLENDMODE_NONE: |
480 if (data->premultiplied) { | 480 if (data->premultiplied) { |
481 /* Crap, we've lost the original pixel data... *sigh* */ | 481 /* Crap, we've lost the original pixel data... *sigh* */ |
482 } | 482 } |
483 return 0; | 483 return 0; |
484 #ifndef _WIN32_WCE /* WinCE has no alphablend */ | 484 #ifndef _WIN32_WCE /* WinCE has no alphablend */ |
485 case SDL_BLENDMODE_MASK: | 485 case SDL_BLENDMODE_MASK: |
486 case SDL_BLENDMODE_BLEND: | 486 case SDL_BLENDMODE_BLEND: |
487 if (!data->premultiplied && data->pixels) { | 487 if (!data->premultiplied && data->pixels) { |
488 switch (texture->format) { | 488 switch (texture->format) { |
489 case SDL_PIXELFORMAT_ARGB8888: | 489 case SDL_PIXELFORMAT_ARGB8888: |
625 if (data->yuv) { | 625 if (data->yuv) { |
626 return SDL_SW_LockYUVTexture(data->yuv, rect, markDirty, pixels, | 626 return SDL_SW_LockYUVTexture(data->yuv, rect, markDirty, pixels, |
627 pitch); | 627 pitch); |
628 } else if (data->pixels) { | 628 } else if (data->pixels) { |
629 #ifndef _WIN32_WCE | 629 #ifndef _WIN32_WCE |
630 /* WinCE has no GdiFlush */ | 630 /* WinCE has no GdiFlush */ |
631 GdiFlush(); | 631 GdiFlush(); |
632 #endif | 632 #endif |
633 *pixels = | 633 *pixels = |
634 (void *) ((Uint8 *) data->pixels + rect->y * data->pitch + | 634 (void *) ((Uint8 *) data->pixels + rect->y * data->pitch + |
635 rect->x * SDL_BYTESPERPIXEL(texture->format)); | 635 rect->x * SDL_BYTESPERPIXEL(texture->format)); |