Whitespace
--HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40696
This commit is contained in:
parent
06f748ead5
commit
f32aece36b
1 changed files with 2 additions and 1 deletions
|
@ -389,8 +389,9 @@ void SDL_GetRGBA(Uint32 pixel, SDL_PixelFormat *fmt,
|
||||||
if(fmt->Amask) {
|
if(fmt->Amask) {
|
||||||
v = (pixel & fmt->Amask) >> fmt->Ashift;
|
v = (pixel & fmt->Amask) >> fmt->Ashift;
|
||||||
*a = (v << fmt->Aloss) + (v >> (8 - (fmt->Aloss << 1)));
|
*a = (v << fmt->Aloss) + (v >> (8 - (fmt->Aloss << 1)));
|
||||||
} else
|
} else {
|
||||||
*a = SDL_ALPHA_OPAQUE;
|
*a = SDL_ALPHA_OPAQUE;
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
*r = fmt->palette->colors[pixel].r;
|
*r = fmt->palette->colors[pixel].r;
|
||||||
*g = fmt->palette->colors[pixel].g;
|
*g = fmt->palette->colors[pixel].g;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue