Browse Source

graphics: remove unneeded ALPHA_EMBEDDED's in libs

K. Lange 9 months ago
parent
commit
e5996aa4b4
2 changed files with 0 additions and 4 deletions
  1. 0 1
      lib/decor-fancy.c
  2. 0 3
      lib/icon_cache.c

+ 0 - 1
lib/decor-fancy.c

@@ -42,7 +42,6 @@ static int (*freetype_draw_string_width)(char * s) = NULL;
 static void init_sprite(int id, char * path) {
 	sprites[id] = malloc(sizeof(sprite_t));
 	load_sprite(sprites[id], path);
-	sprites[id]->alpha = ALPHA_EMBEDDED;
 }
 
 static int get_bounds_fancy(yutani_window_t * window, struct decor_bounds * bounds) {

+ 0 - 3
lib/icon_cache.c

@@ -49,7 +49,6 @@ static void _init_caches(void) {
 	{ /* Generic fallback icon */
 		sprite_t * app_icon = malloc(sizeof(sprite_t));
 		load_sprite(app_icon, "/usr/share/icons/16/applications-generic.bmp");
-		app_icon->alpha = ALPHA_EMBEDDED;
 		hashmap_set(icon_cache_16, "generic", app_icon);
 	}
 
@@ -57,7 +56,6 @@ static void _init_caches(void) {
 	{ /* Generic fallback icon */
 		sprite_t * app_icon = malloc(sizeof(sprite_t));
 		load_sprite(app_icon, "/usr/share/icons/48/applications-generic.bmp");
-		app_icon->alpha = ALPHA_EMBEDDED;
 		hashmap_set(icon_cache_48, "generic", app_icon);
 	}
 }
@@ -86,7 +84,6 @@ static sprite_t * icon_get_int(const char * name, hashmap_t * icon_cache, char *
 					/* And if we find one, cache it */
 					icon = malloc(sizeof(sprite_t));
 					load_sprite(icon, path);
-					icon->alpha = ALPHA_EMBEDDED;
 					hashmap_set(icon_cache, (void*)name, icon);
 					return icon;
 				}