[squeak-dev] The Trunk: Graphics-mt.337.mcz

commits at source.squeak.org commits at source.squeak.org
Thu May 12 09:07:31 UTC 2016


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.!



More information about the Squeak-dev mailing list