Problem with simple Dice/DiceView program
Tom Phoenix
rootbeer at redcat.com
Tue Jul 25 23:49:16 UTC 2006
On 7/25/06, Manas Dadarkar <manas at us.ibm.com> wrote:
> the image of the dice does not get refreshed in the system window.
You were drawing it outside of the Morph's bounds, so it didn't get
refreshed. I think you'll be happier with this code for
DiceView>>drawOn:
drawOn: aCanvas
| di |
super drawOn: aCanvas.
aCanvas drawImage: (di := dice diceImage)
at: (bounds bottomRight - di extent).
Hope this helps!
--Tom Phoenix
More information about the Squeak-dev
mailing list
|