Marcel Taeumel uploaded a new version of SUnitGUI to project The Trunk:
http://source.squeak.org/trunk/SUnitGUI-mt.87.mcz
==================== Summary ====================
Name: SUnitGUI-mt.87
Author: mt
Time: 5 April 2022, 3:37:02.213949 pm
UUID: 76f6e024-4ac9-ef4e-9e3e-704fd2a2e440
Ancestors: SUnitGUI-ct.86
We usually need 3 lines of text in the status field.
=============== Diff against SUnitGUI-ct.86 ===============
Item was changed:
----- Method: TestRunner>>statusHeight (in category 'building') -----
statusHeight
+ ^ ToolBuilder default inputFieldHeightFor: 3!
- ^Preferences standardCodeFont height * 2 + 12!
Marcel Taeumel uploaded a new version of Morphic to project The Trunk:
http://source.squeak.org/trunk/Morphic-mt.1957.mcz
==================== Summary ====================
Name: Morphic-mt.1957
Author: mt
Time: 5 April 2022, 3:30:34.499949 pm
UUID: cc3da8b2-65c1-4045-8227-46b2545f5c63
Ancestors: Morphic-ul.1956
Enable image-side composition buffer for Morphic on all macOS platforms. See commentary in #startUpActions.
=============== Diff against Morphic-ul.1956 ===============
Item was changed:
----- Method: MorphicProject>>startUpActions (in category 'enter') -----
startUpActions
super startUpActions.
self world install.
+ self world firstHand position: 100@100.
+
+ "April 2022: None of the currently supported graphics backends on macOS (i.e., -metal -core-graphics, -opengl) in the OSVM supports an extra display buffer at the VM side, which may result in flickering during compositing or an expensive (over-)committing at vsync boundaries. Thus, use an image-side buffer for compositing to mitigate (or avoid) these issues."
+ WorldState disableDeferredUpdates: Smalltalk platformName = 'Mac OS'.!
- self world firstHand position: 100@100.!
Item was changed:
----- Method: PasteUpMorph>>installFlaps (in category 'world state') -----
installFlaps
"Get flaps installed within the bounds of the receiver"
| localFlapTabs |
Project current assureFlapIntegrity.
self addGlobalFlaps.
localFlapTabs := self localFlapTabs.
localFlapTabs do: [:each | each visible: false].
+ localFlapTabs keysAndValuesDo: [:i :each |
+ each adaptToWorld.
+ each visible: true.
+ self changed].
- Preferences eToyFriendly ifTrue: [
- ProgressInitiationException display: 'Building Viewers...' translated
- during: [:bar |
- localFlapTabs keysAndValuesDo: [:i :each |
- each adaptToWorld.
- each visible: true.
- each unhibernate.
- self changed.
- bar value: i / self localFlapTabs size]].
- ] ifFalse: [
- localFlapTabs keysAndValuesDo: [:i :each |
- each adaptToWorld.
- each visible: true.
- self changed]].
self assureFlapTabsFitOnScreen.
self bringTopmostsToFront!
Item was changed:
+ (PackageInfo named: 'Morphic') postscript: 'Preferences maxBalloonHelpLineLength: 45.
+
+ "See commentary in MorphicProject >> #startUpActions."
+ WorldState disableDeferredUpdates: Smalltalk platformName = ''Mac OS''.'!
- (PackageInfo named: 'Morphic') postscript: 'Preferences maxBalloonHelpLineLength: 45.'!
Marcel Taeumel uploaded a new version of System to project The Trunk:
http://source.squeak.org/trunk/System-mt.1334.mcz
==================== Summary ====================
Name: System-mt.1334
Author: mt
Time: 5 April 2022, 3:28:26.895949 pm
UUID: d03e8df4-a41b-0d46-9afc-94959770ade2
Ancestors: System-ct.1333
Minor clean up and more documentation around Project startUp and shutDown.
=============== Diff against System-ct.1333 ===============
Item was changed:
----- Method: Project class>>shutDown: (in category 'snapshots') -----
shutDown: quitting
+ "1) Give the current project a chance to clean-up if we are about to quit."
+ quitting ifTrue: [Project current shutDownActions].
+
+ "2) To save some space in the .image file, shrink the display bits. Not sure why we need to #invalidate, though..."
+ Project current invalidate; shrinkDisplay.!
- Project current
- invalidate;
- shrinkDisplay.
-
- quitting ifTrue: [
- Project current world triggerEvent: #aboutToLeaveWorld].!
Item was changed:
----- Method: Project class>>startUp: (in category 'snapshots') -----
startUp: startAfresh
+ "0) No blitting onto Display must be performed before this point!! Or the VM will crash."
+
+ "1) We just shrunk the display form to save space in the .image file. We have to restore it now. Also, when we start afresh, we MUST communicate display form and depth to the VM as both are cannot be retrieved from the image header."
Project current restoreDisplay.
+ "2) Give the current project a chance to initialize if we start afresh. After that, repaint everything to avoid flickering if the start-up actions changed something."
+ startAfresh ifTrue: [Project current startUpActions; restore].!
- startAfresh ifTrue: [
- Project current startUpActions.
- Project current world triggerEvent: #aboutToEnterWorld].
-
- Project current restore.!
Item was added:
+ ----- Method: Project>>shutDownActions (in category 'enter') -----
+ shutDownActions
+ "The image is about to be snapshotted *and* quitting after that."
+
+ self world triggerEvent: #aboutToLeaveWorld.
+ !
Item was changed:
----- Method: Project>>startUpActions (in category 'enter') -----
startUpActions
"The image is being newly started, not just snapshotted."
+ self world triggerEvent: #aboutToEnterWorld.
!