From e4650554521c89f1f774bdd143b1359141091e15 Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Fri, 26 Oct 2018 22:21:04 +0000 Subject: experimental/firefox-esr: add ESR 60, which does not work [https://bugzilla.mozilla.org/1499121] --- experimental/firefox-esr/endian-gfx.patch | 32 +++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 experimental/firefox-esr/endian-gfx.patch (limited to 'experimental/firefox-esr/endian-gfx.patch') diff --git a/experimental/firefox-esr/endian-gfx.patch b/experimental/firefox-esr/endian-gfx.patch new file mode 100644 index 000000000..ec81a9cee --- /dev/null +++ b/experimental/firefox-esr/endian-gfx.patch @@ -0,0 +1,32 @@ + +# HG changeset patch +# User Lee Salzman +# Date 1540234148 14400 +# Node ID f0f7573deea111d97bc96aa6b33e2518ee89da3a +# Parent 2ce8f6d1a64ef8ee845c595bc441234af72422fe +Bug 1500709 - fix big-endian RGBBitShift in Swizzle. r=me +CLOSED TREE + +diff --git a/gfx/2d/Swizzle.cpp b/gfx/2d/Swizzle.cpp +--- a/gfx/2d/Swizzle.cpp ++++ b/gfx/2d/Swizzle.cpp +@@ -82,17 +82,17 @@ AlphaByteIndex(SurfaceFormat aFormat) + + // The endian-dependent bit shift to access RGB of a UINT32 pixel. + static constexpr uint32_t + RGBBitShift(SurfaceFormat aFormat) + { + #if MOZ_LITTLE_ENDIAN + return 8 * RGBByteIndex(aFormat); + #else +- return 24 - 8 * RGBByteIndex(aFormat); ++ return 8 - 8 * RGBByteIndex(aFormat); + #endif + } + + // The endian-dependent bit shift to access alpha of a UINT32 pixel. + static constexpr uint32_t + AlphaBitShift(SurfaceFormat aFormat) + { + return (RGBBitShift(aFormat) + 24) % 32; + -- cgit v1.2.3-60-g2f50