diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2018-10-26 22:21:04 +0000 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2018-10-26 22:22:59 +0000 |
commit | e4650554521c89f1f774bdd143b1359141091e15 (patch) | |
tree | 1b9a12209af70b90916182b405f01ac155264178 /experimental/firefox-esr/endian-gfx.patch | |
parent | 954c88d73be84cad6a6cf0b3f2d71ae544190120 (diff) | |
download | packages-e4650554521c89f1f774bdd143b1359141091e15.tar.gz packages-e4650554521c89f1f774bdd143b1359141091e15.tar.bz2 packages-e4650554521c89f1f774bdd143b1359141091e15.tar.xz packages-e4650554521c89f1f774bdd143b1359141091e15.zip |
experimental/firefox-esr: add ESR 60, which does not work [https://bugzilla.mozilla.org/1499121]
Diffstat (limited to 'experimental/firefox-esr/endian-gfx.patch')
-rw-r--r-- | experimental/firefox-esr/endian-gfx.patch | 32 |
1 files changed, 32 insertions, 0 deletions
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 <lsalzman@mozilla.com> +# 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; + |