summaryrefslogtreecommitdiff
path: root/Libraries/LibGfx/Bitmap.h
diff options
context:
space:
mode:
Diffstat (limited to 'Libraries/LibGfx/Bitmap.h')
-rw-r--r--Libraries/LibGfx/Bitmap.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/Libraries/LibGfx/Bitmap.h b/Libraries/LibGfx/Bitmap.h
index 493c3292f6..c1118784d8 100644
--- a/Libraries/LibGfx/Bitmap.h
+++ b/Libraries/LibGfx/Bitmap.h
@@ -97,8 +97,8 @@ public:
static RefPtr<Bitmap> create_from_serialized_byte_buffer(ByteBuffer&& buffer);
static bool is_path_a_supported_image_format(const StringView& path)
{
-#define __ENUMERATE_IMAGE_FORMAT(Name, Ext) \
- if (path.ends_with(Ext)) \
+#define __ENUMERATE_IMAGE_FORMAT(Name, Ext) \
+ if (path.ends_with(Ext, CaseSensitivity::CaseInsensitive)) \
return true;
ENUMERATE_IMAGE_FORMATS
#undef __ENUMERATE_IMAGE_FORMAT