Browse Source

Fixed CID 1197332

AlexVinS 9 years ago
parent
commit
8f7b0dac45
1 changed files with 1 additions and 1 deletions
  1. 1 1
      client/gui/SDL_Pixels.h

+ 1 - 1
client/gui/SDL_Pixels.h

@@ -49,7 +49,7 @@ namespace Channels
 		{
 			Uint16 * const pixel = (Uint16*)ptr;
 			Uint8 subpx = value >> (8 - bits);
-			*pixel = (*pixel & !mask) | ((subpx << shift) & mask );
+			*pixel = (*pixel & ~mask) | ((subpx << shift) & mask );
 		}
 
 		static Uint8 STRONG_INLINE get(const Uint8 *ptr)