浏览代码

UI: Support JXR image dropEvent on Windows

jpark37 3 年之前
父节点
当前提交
475d8432cb
共有 1 个文件被更改,包括 5 次插入2 次删除
  1. 5 2
      UI/window-basic-main-dropfiles.cpp

+ 5 - 2
UI/window-basic-main-dropfiles.cpp

@@ -17,8 +17,11 @@ using namespace std;
 
 
 static const char *textExtensions[] = {"txt", "log", nullptr};
 static const char *textExtensions[] = {"txt", "log", nullptr};
 
 
-static const char *imageExtensions[] = {"bmp",  "tga", "png",  "jpg",
-					"jpeg", "gif", "webp", nullptr};
+static const char *imageExtensions[] = {"bmp", "gif", "jpeg", "jpg",
+#ifdef _WIN32
+					"jxr",
+#endif
+					"png", "tga", "webp", nullptr};
 
 
 static const char *htmlExtensions[] = {"htm", "html", nullptr};
 static const char *htmlExtensions[] = {"htm", "html", nullptr};