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

Commit f469a168 authored by nicolasroard's avatar nicolasroard
Browse files

Fix flashing (remove clipping)

bug:8747333

Change-Id: Ie1e7f1a58bf195b1f427b75ee9a1390e29b3ba2a
parent 00259461
Loading
Loading
Loading
Loading
+7 −2
Original line number Diff line number Diff line
@@ -307,7 +307,12 @@ public class ImageShow extends View implements OnGestureListener,
        scalingMatrix.mapRect(unscaledClipRect, unscaledClipRect);

        canvas.save();
        if (!unscaledClipRect.isEmpty()) {

        boolean enablePartialRendering = false;

        // For now, partial rendering is disabled for all filters,
        // so no need to clip.
        if (enablePartialRendering && !unscaledClipRect.isEmpty()) {
            canvas.clipRect(unscaledClipRect);
        }

@@ -466,7 +471,7 @@ public class ImageShow extends View implements OnGestureListener,
                canvas.drawBitmap(mBackgroundImage, s, d, mPaint);
            }
        } else {
            canvas.drawColor(mBackgroundColor);
            canvas.drawARGB(0, 0, 0, 0);
        }
    }