Skip to content

Commit 68b00a2

Browse files
committed
Rename
1 parent 268c1b4 commit 68b00a2

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

chartLib/src/main/kotlin/info/appdev/charting/utils/CanvasUtils.kt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import kotlin.math.abs
1010
import kotlin.math.cos
1111
import kotlin.math.sin
1212

13-
private val mDrawableBoundsCache = Rect()
13+
private val drawableBoundsCache = Rect()
1414

1515
/**
1616
* Utilities class that has some helper methods. Needs to be initialized by
@@ -28,12 +28,12 @@ fun Canvas.drawImage(
2828
drawOffset.x = x - (width / 2).toFloat()
2929
drawOffset.y = y - (height / 2).toFloat()
3030

31-
drawable.copyBounds(mDrawableBoundsCache)
31+
drawable.copyBounds(drawableBoundsCache)
3232
drawable.setBounds(
33-
mDrawableBoundsCache.left,
34-
mDrawableBoundsCache.top,
35-
mDrawableBoundsCache.left + width,
36-
mDrawableBoundsCache.top + width
33+
drawableBoundsCache.left,
34+
drawableBoundsCache.top,
35+
drawableBoundsCache.left + width,
36+
drawableBoundsCache.top + width
3737
)
3838

3939
val saveId = this.save()

0 commit comments

Comments
 (0)