[etoys-dev] Etoys: MorphicExtras-kfr.46.mcz

commits at source.squeak.org commits at source.squeak.org
Mon Oct 17 05:26:17 EDT 2011


Karl Ramberg uploaded a new version of MorphicExtras to project Etoys:
http://source.squeak.org/etoys/MorphicExtras-kfr.46.mcz

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

Name: MorphicExtras-kfr.46
Author: kfr
Time: 17 October 2011, 11:25:47 am
UUID: 2f97846a-ee5e-b64a-96ef-e36c6e98d9dc
Ancestors: MorphicExtras-kfr.45

Try to get more stable reults. CameraPlugin fail sometimes to turn off the camera and restart it.

=============== Diff against MorphicExtras-kfr.45 ===============

Item was changed:
  ----- Method: WebCamMorph>>off (in category 'accessing') -----
  off
+ 	self stopStepping.
- 	CameraInterface  closeCamera: camNum.
  	camIsOn := false.
  	self updateDisplay.
+ 	CameraInterface  closeCamera: camNum.
- 	self stopStepping.
  	
+ 
+ 	
  !

Item was changed:
  ----- Method: WebCamMorph>>on (in category 'accessing') -----
  on
  	
  	(CameraInterface cameraIsOpen: camNum)
  		ifTrue: [ ^camIsOn := true.].
  	(CameraInterface
  		openCamera: camNum
  		width: frameExtent x
  		height: frameExtent y)
+ 		ifNil: [^false].
- 		ifNil: ["this fails sometimes"].
  	(Delay forSeconds: 1) wait.
  	displayForm := Form extent: frameExtent depth:32.
  	camIsOn := true.
  	self startStepping.
  	!

Item was changed:
  ----- Method: WebCamMorph>>step (in category 'stepping and presenter') -----
  step
  	| |
  	self updateDisplay.
+ 	
+ 									!
- 	!



More information about the etoys-dev mailing list