diff options
Diffstat (limited to 'experimental/firefox-esr/endian-gfx.patch')
-rw-r--r-- | experimental/firefox-esr/endian-gfx.patch | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/experimental/firefox-esr/endian-gfx.patch b/experimental/firefox-esr/endian-gfx.patch index ec81a9cee..ca92bf830 100644 --- a/experimental/firefox-esr/endian-gfx.patch +++ b/experimental/firefox-esr/endian-gfx.patch @@ -10,12 +10,10 @@ 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) +@@ -75,13 +75,13 @@ AlphaByteIndex(SurfaceFormat aFormat) // The endian-dependent bit shift to access RGB of a UINT32 pixel. - static constexpr uint32_t - RGBBitShift(SurfaceFormat aFormat) - { + static constexpr uint32_t RGBBitShift(SurfaceFormat aFormat) { #if MOZ_LITTLE_ENDIAN return 8 * RGBByteIndex(aFormat); #else @@ -25,8 +23,5 @@ diff --git a/gfx/2d/Swizzle.cpp b/gfx/2d/Swizzle.cpp } // The endian-dependent bit shift to access alpha of a UINT32 pixel. - static constexpr uint32_t - AlphaBitShift(SurfaceFormat aFormat) - { + static constexpr uint32_t AlphaBitShift(SurfaceFormat aFormat) { return (RGBBitShift(aFormat) + 24) % 32; - |