Lines Matching refs:icon

1756     if (_this->SetWindowIcon && window->icon) {  in SDL_RecreateWindow()
1757 _this->SetWindowIcon(_this, window, window->icon); in SDL_RecreateWindow()
1833 SDL_SetWindowIcon(SDL_Window * window, SDL_Surface * icon) in SDL_SetWindowIcon() argument
1837 if (!icon) { in SDL_SetWindowIcon()
1841 SDL_FreeSurface(window->icon); in SDL_SetWindowIcon()
1844 window->icon = SDL_ConvertSurfaceFormat(icon, SDL_PIXELFORMAT_ARGB8888, 0); in SDL_SetWindowIcon()
1845 if (!window->icon) { in SDL_SetWindowIcon()
1850 _this->SetWindowIcon(_this, window, window->icon); in SDL_SetWindowIcon()
2831 SDL_FreeSurface(window->icon); in SDL_DestroyWindow()
3711 CreateMaskFromColorKeyOrAlpha(SDL_Surface * icon, Uint8 * mask, int flags)
3715 #define SET_MASKBIT(icon, x, y, mask) \
3716 mask[(y*((icon->w+7)/8))+(x/8)] &= ~(0x01<<(7-(x%8)))
3718 colorkey = icon->format->colorkey;
3719 switch (icon->format->BytesPerPixel) {
3723 for (y = 0; y < icon->h; ++y) {
3724 pixels = (Uint8 *) icon->pixels + y * icon->pitch;
3725 for (x = 0; x < icon->w; ++x) {
3727 SET_MASKBIT(icon, x, y, mask);
3737 for (y = 0; y < icon->h; ++y) {
3738 pixels = (Uint16 *) icon->pixels + y * icon->pitch / 2;
3739 for (x = 0; x < icon->w; ++x) {
3741 SET_MASKBIT(icon, x, y, mask);
3743 && (*pixels & icon->format->Amask) == 0) {
3744 SET_MASKBIT(icon, x, y, mask);
3755 for (y = 0; y < icon->h; ++y) {
3756 pixels = (Uint32 *) icon->pixels + y * icon->pitch / 4;
3757 for (x = 0; x < icon->w; ++x) {
3759 SET_MASKBIT(icon, x, y, mask);
3761 && (*pixels & icon->format->Amask) == 0) {
3762 SET_MASKBIT(icon, x, y, mask);
3776 SDL_WM_SetIcon(SDL_Surface * icon, Uint8 * mask)
3778 if (icon && _this->SetIcon) {
3781 int mask_len = icon->h * (icon->w + 7) / 8;
3788 if (icon->flags & SDL_SRCCOLORKEY)
3790 if (icon->flags & SDL_SRCALPHA)
3793 CreateMaskFromColorKeyOrAlpha(icon, mask, flags);
3795 _this->SetIcon(_this, icon, mask);
3798 _this->SetIcon(_this, icon, mask);