feat: SVG support in Image viewer app
This commit is contained in:
1 parent
7cb1866998
commit
72b9bd681b
3 files changed
+93
-1
No files matched your search
@@ -45,7 +45,9 @@ bool str_ends_with(const char* s, const char* suffix) {
|
||||
}
|
||||
|
||||
bool is_image_file(const char* name) {
|
||||
return str_ends_with(name, ".jpg") || str_ends_with(name, ".jpeg");
|
||||
return str_ends_with(name, ".jpg")
|
||||
|| str_ends_with(name, ".jpeg")
|
||||
|| str_ends_with(name, ".svg");
|
||||
}
|
||||
|
||||
bool is_font_file(const char* name) {
|
||||
|
||||
Reference in new issue
Block a user