The Trunk: EToys-jl.242.mcz

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

The Trunk: EToys-jl.242.mcz

commits-2
Jens Lincke uploaded a new version of EToys to project The Trunk:
http://source.squeak.org/trunk/EToys-jl.242.mcz

==================== Summary ====================

Name: EToys-jl.242
Author: jl
Time: 21 September 2016, 4:50:30.595628 pm
UUID: a01c6a14-2b59-244f-a945-3efd07a67bed
Ancestors: EToys-tfel.241

fix drawing glitch in zoomed Kedama

=============== Diff against EToys-tfel.241 ===============

Item was changed:
  ----- Method: KedamaMorph>>drawOn: (in category 'drawing') -----
  drawOn: aCanvas
 
  | result |
  drawRequested ifFalse: [^ self].
  drawRequested := false.
  changePending := false.
  "Time millisecondClockValue printString displayAt: 0@0."
+ aCanvas fillRectangle: (self bounds) color: self color.
+ self player ifNil: [^ self].
- self player ifNil: [^ aCanvas fillRectangle: (self bounds) color: self color].
  patchVarDisplayForm fillColor: self color.
  patchesToDisplay do: [:p |
  p displayPatchVariableOn: patchVarDisplayForm.
  ].
  self drawTurtlesOnForm: patchVarDisplayForm.
  pixelsPerPatch = 1 ifTrue: [
  aCanvas drawImage: patchVarDisplayForm at: bounds origin.
  ] ifFalse: [
  result := self zoom: patchVarDisplayForm into: magnifiedDisplayForm factor: pixelsPerPatch.
  result ifNil: [
  aCanvas warpImage: patchVarDisplayForm transform: (MatrixTransform2x3 withScale: pixelsPerPatch) at: self innerBounds origin.
  ] ifNotNil: [
  aCanvas drawImage: magnifiedDisplayForm at: bounds origin.
  ]
  ].
 
  !