Lines Matching full:mask
1712 static void CreateMaskFromColorKeyOrAlpha(SDL_Surface *icon, Uint8 *mask, int flags)
1716 #define SET_MASKBIT(icon, x, y, mask) \
1717 mask[(y*((icon->w+7)/8))+(x/8)] &= ~(0x01<<(7-(x%8)))
1726 SET_MASKBIT(icon, x, y, mask);
1739 SET_MASKBIT(icon, x, y, mask);
1741 SET_MASKBIT(icon, x, y, mask);
1755 SET_MASKBIT(icon, x, y, mask);
1757 SET_MASKBIT(icon, x, y, mask);
1770 void SDL_WM_SetIcon (SDL_Surface *icon, Uint8 *mask)
1776 /* Generate a mask if necessary, and create the icon! */
1777 if ( mask == NULL ) {
1780 mask = (Uint8 *)SDL_malloc(mask_len);
1781 if ( mask == NULL ) {
1784 SDL_memset(mask, ~0, mask_len);
1788 CreateMaskFromColorKeyOrAlpha(icon, mask, flags);
1790 video->SetIcon(video, icon, mask);
1791 SDL_free(mask);
1793 video->SetIcon(this, icon, mask);