[squeak-dev] The Trunk: EToys-eem.400.mcz

commits at source.squeak.org commits at source.squeak.org
Thu Jul 23 23:06:44 UTC 2020


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

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

Name: EToys-eem.400
Author: eem
Time: 23 July 2020, 4:06:39.960265 pm
UUID: cd372e46-6184-4c26-9528-da5309945631
Ancestors: EToys-eem.399

Allow the webcam resolution to be set before opening a WebCamMorph.

=============== Diff against EToys-eem.399 ===============

Item was changed:
  ----- Method: WebCamMorph>>setWebCamResolution: (in category 'e-toy - settings') -----
  setWebCamResolution: aSymbol
  	| wasOn |
+ 	"Failing silently here is awful; but that's what the code did :-("
+ 	(WebCamResolution resolutions includes: aSymbol) ifFalse: [^ self].
- 
- 	((WebCamResolution resolutions) includes: aSymbol) ifFalse: [^ self].
  	resolution := aSymbol.
  
  	(wasOn := camIsOn) ifTrue: [self off].
  	frameExtent := self class resolutionFor: aSymbol.
+ 	displayForm ifNotNil:
+ 		[displayForm := displayForm scaledToSize: frameExtent].
- 	displayForm := displayForm scaledToSize: frameExtent.
  	self updateDisplay.
+      wasOn ifTrue: [self on]
-      wasOn ifTrue: [self on].
- 			
- 
  !



More information about the Squeak-dev mailing list