From 1097c1416f352fe4da49391548224a057cfc870d Mon Sep 17 00:00:00 2001 From: Xu Zhao Date: Sat, 1 Jul 2017 23:04:20 -0400 Subject: x11: add 128x128 sized icon support --- etc/mpv-icon-8bit-128x128.png | Bin 0 -> 22984 bytes video/out/x11_common.c | 5 +++++ wscript_build.py | 6 ++++++ 3 files changed, 11 insertions(+) create mode 100644 etc/mpv-icon-8bit-128x128.png diff --git a/etc/mpv-icon-8bit-128x128.png b/etc/mpv-icon-8bit-128x128.png new file mode 100644 index 0000000000..1840269246 Binary files /dev/null and b/etc/mpv-icon-8bit-128x128.png differ diff --git a/video/out/x11_common.c b/video/out/x11_common.c index f46e78b8d9..30ad89746f 100644 --- a/video/out/x11_common.c +++ b/video/out/x11_common.c @@ -118,11 +118,16 @@ static const char x11_icon_64[] = #include "video/out/x11_icon_64.inc" ; +static const char x11_icon_128[] = + #include "video/out/x11_icon_128.inc" +; + #define ICON_ENTRY(var) { (char *)var, sizeof(var) } static const struct bstr x11_icons[] = { ICON_ENTRY(x11_icon_16), ICON_ENTRY(x11_icon_32), ICON_ENTRY(x11_icon_64), + ICON_ENTRY(x11_icon_128), {0} }; diff --git a/wscript_build.py b/wscript_build.py index c6fa552164..12ef2c5490 100644 --- a/wscript_build.py +++ b/wscript_build.py @@ -75,6 +75,12 @@ def build(ctx): target = "video/out/x11_icon_64.inc", ) + ctx( + features = "file2string", + source = "etc/mpv-icon-8bit-128x128.png", + target = "video/out/x11_icon_128.inc", + ) + ctx( features = "file2string", source = "etc/input.conf", -- cgit v1.2.3