[squeak-dev] The Trunk: MorphicExtras-eem.321.mcz

commits at source.squeak.org commits at source.squeak.org
Wed Jul 13 23:27:55 UTC 2022


Eliot Miranda uploaded a new version of MorphicExtras to project The Trunk:
http://source.squeak.org/trunk/MorphicExtras-eem.321.mcz

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

Name: MorphicExtras-eem.321
Author: eem
Time: 13 July 2022, 4:27:52.458073 pm
UUID: 7b3c5d64-9127-4ff0-af18-fcd383257a4b
Ancestors: MorphicExtras-eem.320

Fix a bug in the WebCamMorph where turning the camera off and on can change the resolution if not using frame size.

=============== Diff against MorphicExtras-eem.320 ===============

Item was changed:
  ----- Method: WebCamMorph>>on (in category 'accessing') -----
  on
  	camIsOn ifTrue: [^true].
  	(CameraInterface cameraIsOpen: camNum) ifFalse:
+ 		[| extent |
+ 		 extent := self class resolutionFor: resolution.
+ 		 (CameraInterface openCamera: camNum width: extent x height: extent y) ifNil:
- 		[(CameraInterface openCamera: camNum width: frameExtent x height: frameExtent y) ifNil:
  			[^false]].
  	"The plugin/camera subsystem may end up choosing a different width and height.
  	 So use the width and height it has selected; it may not be what was asked for."
  	self initializeDisplayForm.
  	CameraInterface waitForCameraStart: camNum.
  	camIsOn := true.
  	self startStepping!



More information about the Squeak-dev mailing list