summaryrefslogtreecommitdiffstats
path: root/app/gfx/icon_util.h
diff options
context:
space:
mode:
Diffstat (limited to 'app/gfx/icon_util.h')
-rw-r--r--app/gfx/icon_util.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/app/gfx/icon_util.h b/app/gfx/icon_util.h
index 1ecbfb56..65d3d80 100644
--- a/app/gfx/icon_util.h
+++ b/app/gfx/icon_util.h
@@ -128,6 +128,9 @@ class IconUtil {
// Returns how many icon dimensions are defined.
static int GetIconDimensionCount();
+ // Returns true if any pixel in the given pixels buffer has an non-zero alpha.
+ static bool PixelsHaveAlpha(const uint32* pixels, size_t num_pixels);
+
// A helper function that initializes a BITMAPV5HEADER structure with a set
// of values.
static void InitializeBitmapHeader(BITMAPV5HEADER* header, int width,