Marcel Taeumel uploaded a new version of Graphics to project The Trunk:
http://source.squeak.org/trunk/Graphics-mt.337.mcz
==================== Summary ====================
Name: Graphics-mt.337
Author: mt
Time: 12 May 2016, 11:07:11.878798 am
UUID: e72639c7-032e-cd44-8161-78e83af64554
Ancestors: Graphics-mt.336
Revert previous commit and document the current implementation. We have to fix the host window plugin in Windows.
=============== Diff against Graphics-mt.336 ===============
Item was changed:
----- Method: DisplayScreen class>>setNewScreenSize: (in category 'display box access') -----
setNewScreenSize: aPoint
+ "Ensure that the Display is set to the given extent."
- "Ensure that the Display is set to the given extent. Due to the behavior of host-window plugin, we may have to account for host window shadows and title bars."
+ self hostWindowExtent: aPoint.
+ self checkForNewScreenSize.
+
+ "In the Windows version of the host window plugin, the extent currently includes window decorations. Therefore, we need two attempts to ensure that the Display extent is aPoint. Note that this is a bug in the plugin."
+ Display extent < aPoint ifTrue: [
+ self hostWindowExtent: 2*aPoint - Display extent.
+ self checkForNewScreenSize].!
- self hostWindowExtent: aPoint + self hostWindowExtent - self actualScreenSize.
- self checkForNewScreenSize.!
Marcel Taeumel uploaded a new version of 50Deprecated to project The Trunk:
http://source.squeak.org/trunk/50Deprecated-mt.2.mcz
==================== Summary ====================
Name: 50Deprecated-mt.2
Author: mt
Time: 12 May 2016, 10:24:52.792798 am
UUID: b6f355c5-d95a-204b-aaf8-8986e9227b28
Ancestors: 50Deprecated-eem.1
Deprecations were moved to 51Deprecated. This package should not exist because we used 46Deprecated for the last release.
=============== Diff against 50Deprecated-eem.1 ===============
Item was removed:
- ----- Method: Dictionary>>fasterKeys (in category '*50Deprecated-accessing') -----
- fasterKeys
- "Contrary to old version of #keys, this method returned an Array rather than a Set.
- This was faster because no lookup: was performed.
- But now, #keys also return an Array, so don't use #fasterKeys anymore."
-
- self deprecated: 'use #keys'.
-
- ^self keys.
- !
Item was removed:
- ----- Method: Dictionary>>keyForIdentity: (in category '*50Deprecated-accessing') -----
- keyForIdentity: anObject
- "If anObject is one of the values of the receive, return its key, else return nil. Contrast #keyAtValue: in which there is only an equality check, here there is an identity check"
-
- self deprecated: 'Use #keyAtIdentityValue:ifAbsent:'.
- ^self keyAtIdentityValue: anObject ifAbsent: nil!
Marcel Taeumel uploaded a new version of Graphics to project The Trunk:
http://source.squeak.org/trunk/Graphics-mt.336.mcz
==================== Summary ====================
Name: Graphics-mt.336
Author: mt
Time: 12 May 2016, 9:38:38.58863 am
UUID: 01f5f8b2-0ae6-f040-aa5f-848b34cfd3ae
Ancestors: Graphics-dtl.335
Use host window extent to calculate the new screen size.
=============== Diff against Graphics-dtl.335 ===============
Item was changed:
----- Method: DisplayScreen class>>setNewScreenSize: (in category 'display box access') -----
setNewScreenSize: aPoint
+ "Ensure that the Display is set to the given extent. Due to the behavior of host-window plugin, we may have to account for host window shadows and title bars."
- "Ensure that the Display is set to the given extent. Due to the behavior of host-window plugin, this may need two attempts because the plugin tends to account for host window shadows and title bars."
+ self hostWindowExtent: aPoint + self hostWindowExtent - self actualScreenSize.
+ self checkForNewScreenSize.!
- self hostWindowExtent: aPoint.
- self checkForNewScreenSize.
-
- Display extent < aPoint ifTrue: [
- self hostWindowExtent: 2*aPoint - Display extent.
- self checkForNewScreenSize].!
Marcel Taeumel uploaded a new version of Graphics to project The Trunk:
http://source.squeak.org/trunk/Graphics-dtl.335.mcz
==================== Summary ====================
Name: Graphics-dtl.335
Author: dtl
Time: 11 May 2016, 11:25:12.450775 pm
UUID: df71df68-b235-49be-b4a5-bebb84cb420a
Ancestors: Graphics-mt.334
DisplayScreen class>>hostWindowExtent: uses the host window plugin to set the size of the main Squeak display window. Add the complementary #hostWindowExtent to query the plugin for display size. Requires VM support for HostWindowPlugin.
Assuming required support from VM HostWindowPlugin:
Display width @ Display height = DisplayScreen hostWindowExtent ==> true
Recategorize methods for plugin access, and add a method comment to explain the convention of treating host window index 1 as a reference to the Squeak display window.
=============== Diff against Graphics-mt.334 ===============
Item was added:
+ ----- Method: DisplayScreen class>>hostWindowExtent (in category 'host window access') -----
+ hostWindowExtent
+
+ ^ self primitiveWindowSize: self hostWindowIndex
+ !
Item was changed:
----- Method: DisplayScreen class>>hostWindowIndex (in category 'host window access') -----
hostWindowIndex
+ "By convention, the reference to the primary Squeak display window is 1.
+ The host window plugin may use different conventions for references to
+ windows. In general, the handles for references to host windows should be
+ considered as meaningful only to the VM plugin, with host window index 1
+ being a special case of a well known handle value."
^ 1!
Item was changed:
+ ----- Method: DisplayScreen class>>primitiveWindow:title: (in category 'primitives - host window access') -----
- ----- Method: DisplayScreen class>>primitiveWindow:title: (in category 'host window access') -----
primitiveWindow: id title: titleString
<primitive: 'primitiveHostWindowTitle' module: 'HostWindowPlugin'>
^self primitiveFailed!
Item was changed:
+ ----- Method: DisplayScreen class>>primitiveWindow:width:height: (in category 'primitives - host window access') -----
- ----- Method: DisplayScreen class>>primitiveWindow:width:height: (in category 'host window access') -----
primitiveWindow: id width: width height: height
<primitive: 'primitiveHostWindowSizeSet' module: 'HostWindowPlugin'>
^self primitiveFailed!
Item was added:
+ ----- Method: DisplayScreen class>>primitiveWindowSize: (in category 'primitives - host window access') -----
+ primitiveWindowSize: id
+
+ <primitive: 'primitiveHostWindowSize' module: 'HostWindowPlugin'>
+ ^self primitiveFailed!
Bert Freudenberg uploaded a new version of Kernel to project The Trunk:
http://source.squeak.org/trunk/Kernel-bf.1020.mcz
==================== Summary ====================
Name: Kernel-bf.1020
Author: bf
Time: 11 May 2016, 6:56:53.270494 pm
UUID: 6e52fc30-34bc-4d1b-b149-bdee465f4f75
Ancestors: Kernel-bf.1019
Add MethodContext>>actualStackSize
=============== Diff against Kernel-bf.1019 ===============
Item was added:
+ ----- Method: MethodContext>>actualStackSize (in category 'private-debugger') -----
+ actualStackSize "For use only by Debugger, Inspectors etc"
+ ^ stackp - method numTemps!