[squeak-dev] The Trunk: Graphics-ar.76.mcz

commits at source.squeak.org commits at source.squeak.org
Sat Sep 19 05:13:51 UTC 2009


Andreas Raab uploaded a new version of Graphics to project The Trunk:
http://source.squeak.org/trunk/Graphics-ar.76.mcz

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

Name: Graphics-ar.76
Author: ar
Time: 18 September 2009, 10:12:40 am
UUID: 08dbf0f0-44d3-2042-905e-41186face7e5
Ancestors: Graphics-ar.75

Face Lift: Use Bert's version of Color>>duller.

Project refactoring: Vector Display restore requests through Project current since the current project knows best how to redraw a Morphic or MVC environment.

=============== Diff against Graphics-ar.75 ===============

Item was changed:
  ----- Method: DisplayScreen class>>checkForNewScreenSize (in category 'display box access') -----
  checkForNewScreenSize
  	"Check whether the screen size has changed and if so take appropriate actions"
  
  	Display extent = DisplayScreen actualScreenSize ifTrue: [^ self].
  	DisplayScreen startUp.
+ 	Project current ifNotNil:[:p| p displaySizeChanged].!
- 	Smalltalk isMorphic
- 		ifTrue:
- 			[World restoreMorphicDisplay.
- 			World repositionFlapsAfterScreenSizeChange]
- 		ifFalse:
- 			[ScheduledControllers restore; searchForActiveController]!

Item was changed:
  ----- Method: Color>>duller (in category 'transformations') -----
  duller
  
+ 	^ self adjustSaturation: -0.1 brightness: -0.1!
- 	^ self adjustSaturation: -0.03 brightness: -0.2!

Item was changed:
  ----- Method: DisplayScreen>>restore (in category 'other') -----
  restore
+ 	"Restore the bits on Display"
+ 	Project current ifNotNil:[:p| p invalidate; restore].!
- 	Smalltalk isMorphic
- 		ifTrue: [World fullRepaintNeeded]
- 		ifFalse: [ScheduledControllers unCacheWindows; restore].!

Item was changed:
  ----- Method: DisplayScreen>>restoreAfter: (in category 'other') -----
  restoreAfter: aBlock
  	"Evaluate the block, wait for a mouse click, and then restore the screen."
  
  	aBlock value.
  	Sensor waitButton.
+ 	self restore.!
- 	Smalltalk isMorphic
- 		ifTrue: [World fullRepaintNeeded]
- 		ifFalse: [(ScheduledControllers restore; activeController) view emphasize]!




More information about the Squeak-dev mailing list