[squeak-dev] Changing display depth

Frank Shearar frank.shearar at gmail.com
Wed Oct 30 22:56:47 UTC 2013


So once again I find myself catching up with Pavel's work.

He said a while back that:

DisplayScreen>>newDepthNoRestore:
- delegation to UIManager, MorphicUIManager implementation should be added

What I think that means is this:
* moving DisplayScreen >> #newDepth: to UIManager >> #newDepth:
* changing "Display newDepth: foo" to "UIManager default newDepth: foo"
* adding UIManager >> newDepthNoRestore: as a self subclassResponsibility
* changing any "Display newDepthNoRestore: foo" occurrences
* moving DisplayScreen >> #newDepthNoRestore to MorphicUIManager >>
#newDepthNoRestore:
* copying most of MorphicUIManager >> #newDepthNoRestore: to
MVCUIManager or whatever it's called ("most" means "everything outside
a Smalltalk isMorphic ifTrue: []")

This
* delegates setting screen depth to the UIManager, and
* avoids making Graphics depend on ToolBuilder-Kernel (because TBK
already depends on Graphics (because of a probably removable test case
thing))

The assumption here is that Graphics is lower level/more fundamental than TBK.

Thoughts?

frank


More information about the Squeak-dev mailing list