|
|
|
|
@ -97,7 +97,7 @@ class ReplayerAnimator(var handHistory: HandHistory, var export: Boolean) { |
|
|
|
|
* 2/ The last frame of the last step is longer because some video players |
|
|
|
|
* auto-replay videos, and we want viewers to visualize the end. |
|
|
|
|
*/ |
|
|
|
|
private val visualOccurences: Int |
|
|
|
|
private val visualOccurrences: Int |
|
|
|
|
get() { |
|
|
|
|
val step = this.currentStep |
|
|
|
|
return when { |
|
|
|
|
@ -536,7 +536,7 @@ class ReplayerAnimator(var handHistory: HandHistory, var export: Boolean) { |
|
|
|
|
|
|
|
|
|
val bitmap = Bitmap.createBitmap(this.width.toInt(), this.height.toInt(), Bitmap.Config.ARGB_8888) |
|
|
|
|
val canvas = Canvas(bitmap) |
|
|
|
|
vo = this.visualOccurences / 90.0 // this is needed before the call to drawTable which pass to the next frame |
|
|
|
|
vo = this.visualOccurrences / 90.0 // this is needed before the call to drawTable which pass to the next frame |
|
|
|
|
|
|
|
|
|
this.drawer.drawTable(canvas, context) |
|
|
|
|
|
|
|
|
|
@ -588,7 +588,7 @@ class ReplayerAnimator(var handHistory: HandHistory, var export: Boolean) { |
|
|
|
|
// Timber.d("FRAME [$f] >> step: $currentStepIndex, frame: $currentFrameIndex, vo: ${this.visualOccurences}, type: ${this.frameType}") |
|
|
|
|
val bitmap = Bitmap.createBitmap(this.width.toInt(), this.height.toInt(), Bitmap.Config.ARGB_8888) |
|
|
|
|
val canvas = Canvas(bitmap) |
|
|
|
|
val vo = this.visualOccurences // this is needed before the call to drawTable which pass to the next frame |
|
|
|
|
val vo = this.visualOccurrences // this is needed before the call to drawTable which pass to the next frame |
|
|
|
|
|
|
|
|
|
this.drawer.drawTable(canvas, context) |
|
|
|
|
|
|
|
|
|
|