From bbdc49d5ccd04563006a608c87c870413f75057e Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Fri, 7 Oct 2022 07:23:30 +0100 Subject: gentoo auto-resync : 07:10:2022 - 07:23:30 --- .../imv/files/imv-4.3.1_p20211221-animated-gif.patch | 19 +++++++++++++++++++ .../imv/files/imv-4.3.1_p20211221-libgrapheme2.patch | 12 ++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 media-gfx/imv/files/imv-4.3.1_p20211221-animated-gif.patch create mode 100644 media-gfx/imv/files/imv-4.3.1_p20211221-libgrapheme2.patch (limited to 'media-gfx/imv/files') diff --git a/media-gfx/imv/files/imv-4.3.1_p20211221-animated-gif.patch b/media-gfx/imv/files/imv-4.3.1_p20211221-animated-gif.patch new file mode 100644 index 000000000000..3b7ac34a3a80 --- /dev/null +++ b/media-gfx/imv/files/imv-4.3.1_p20211221-animated-gif.patch @@ -0,0 +1,19 @@ +Upstream priorizes freeimage in general, but nsgif supports animated +gif while freeimage displays them as a static image. This allows setting +USE=freeimage while still getting animations if (optional) USE=gif. +--- a/src/main.c ++++ b/src/main.c +@@ -20,2 +20,6 @@ + ++#ifdef IMV_BACKEND_LIBNSGIF ++ imv_install_backend(imv, &imv_backend_libnsgif); ++#endif ++ + #ifdef IMV_BACKEND_FREEIMAGE +@@ -39,6 +43,2 @@ + #endif +- +-#ifdef IMV_BACKEND_LIBNSGIF +- imv_install_backend(imv, &imv_backend_libnsgif); +-#endif + diff --git a/media-gfx/imv/files/imv-4.3.1_p20211221-libgrapheme2.patch b/media-gfx/imv/files/imv-4.3.1_p20211221-libgrapheme2.patch new file mode 100644 index 000000000000..cc467e9eb55d --- /dev/null +++ b/media-gfx/imv/files/imv-4.3.1_p20211221-libgrapheme2.patch @@ -0,0 +1,12 @@ +--- a/src/console.c ++++ b/src/console.c +@@ -54,3 +54,3 @@ + if (buffer[position] != 0) { +- return position + grapheme_next_character_break(buffer + position, SIZE_MAX); ++ return position + grapheme_next_character_break_utf8(buffer + position, SIZE_MAX); + } else { +@@ -87,3 +87,3 @@ + do { +- step = grapheme_next_character_break(buffer + result, SIZE_MAX); ++ step = grapheme_next_character_break_utf8(buffer + result, SIZE_MAX); + if (result + step >= position) -- cgit v1.2.3