Loading packages/EasterEgg/src/com/android/egg/paint/BrushPropertyDrawable.kt +2 −2 Original line number Original line Diff line number Diff line Loading @@ -62,7 +62,7 @@ class BrushPropertyDrawable : Drawable { return _size return _size } } override fun draw(c: Canvas?) { override fun draw(c: Canvas) { c?.let { c?.let { val w = bounds.width().toFloat() val w = bounds.width().toFloat() val h = bounds.height().toFloat() val h = bounds.height().toFloat() Loading packages/EasterEgg/src/com/android/egg/paint/Painting.kt +2 −2 Original line number Original line Diff line number Diff line Loading @@ -333,11 +333,11 @@ public class Painting : View, SpotFilter.Plotter { bits.width.toFloat()/oldBits.height, bits.width.toFloat()/oldBits.height, bits.height.toFloat()/oldBits.width) bits.height.toFloat()/oldBits.width) } } c.matrix = matrix c.setMatrix(matrix) } } // paint the old artwork atop the new // paint the old artwork atop the new c.drawBitmap(oldBits, 0f, 0f, _drawPaint) c.drawBitmap(oldBits, 0f, 0f, _drawPaint) c.matrix = Matrix() c.setMatrix(Matrix()) } else { } else { c.drawColor(paperColor) c.drawColor(paperColor) } } Loading Loading
packages/EasterEgg/src/com/android/egg/paint/BrushPropertyDrawable.kt +2 −2 Original line number Original line Diff line number Diff line Loading @@ -62,7 +62,7 @@ class BrushPropertyDrawable : Drawable { return _size return _size } } override fun draw(c: Canvas?) { override fun draw(c: Canvas) { c?.let { c?.let { val w = bounds.width().toFloat() val w = bounds.width().toFloat() val h = bounds.height().toFloat() val h = bounds.height().toFloat() Loading
packages/EasterEgg/src/com/android/egg/paint/Painting.kt +2 −2 Original line number Original line Diff line number Diff line Loading @@ -333,11 +333,11 @@ public class Painting : View, SpotFilter.Plotter { bits.width.toFloat()/oldBits.height, bits.width.toFloat()/oldBits.height, bits.height.toFloat()/oldBits.width) bits.height.toFloat()/oldBits.width) } } c.matrix = matrix c.setMatrix(matrix) } } // paint the old artwork atop the new // paint the old artwork atop the new c.drawBitmap(oldBits, 0f, 0f, _drawPaint) c.drawBitmap(oldBits, 0f, 0f, _drawPaint) c.matrix = Matrix() c.setMatrix(Matrix()) } else { } else { c.drawColor(paperColor) c.drawColor(paperColor) } } Loading