comparison src/video/win32/SDL_gdirender.c @ 2698:e1da92da346c gsoc2008_nds

Clean up.
author Darren Alton <dalton@stevens.edu>
date Wed, 27 Aug 2008 04:23:38 +0000
parents 926294b2bb4e
children 5651642f4a78
comparison
equal deleted inserted replaced
2697:c9121b04cffa 2698:e1da92da346c
618 SelectObject(data->memory_hdc, texturedata->hbm); 618 SelectObject(data->memory_hdc, texturedata->hbm);
619 if (texturedata->hpal) { 619 if (texturedata->hpal) {
620 SelectPalette(data->memory_hdc, texturedata->hpal, TRUE); 620 SelectPalette(data->memory_hdc, texturedata->hpal, TRUE);
621 RealizePalette(data->memory_hdc); 621 RealizePalette(data->memory_hdc);
622 } 622 }
623 if (texture-> 623 if (texture->blendMode &
624 blendMode & (SDL_TEXTUREBLENDMODE_MASK | SDL_TEXTUREBLENDMODE_BLEND)) 624 (SDL_TEXTUREBLENDMODE_MASK | SDL_TEXTUREBLENDMODE_BLEND)) {
625 {
626 BLENDFUNCTION blendFunc = { 625 BLENDFUNCTION blendFunc = {
627 AC_SRC_OVER, 626 AC_SRC_OVER,
628 0, 627 0,
629 texture->a, 628 texture->a,
630 AC_SRC_ALPHA 629 AC_SRC_ALPHA