Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c7b3b1b5 authored by James O'Leary's avatar James O'Leary Committed by Android (Google) Code Review
Browse files

Merge "Fix crash when quantizing" into sc-dev

parents f26cbdfa 14c6e6fc
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -75,7 +75,7 @@ public class WSMeansQuantizer implements Quantizer {
            // Note: they don't _have_ to be ignored, for example, we could instead turn them
            // opaque. Traditionally, including outside Android, quantizers ignore transparent
            // pixels, so that strategy was chosen.
            int alpha = (pixel >> 24);
            int alpha = (pixel >> 24) & 0xff;
            if (alpha < 255) {
                continue;
            }