[squeak-dev] Host window resizing (was: [Vm-dev] Re: Too many full GCs in Cog/Spur ... while just drawing GUI ...)

Levente Uzonyi leves at caesar.elte.hu
Thu Apr 7 15:57:33 UTC 2016


On Thu, 7 Apr 2016, Bert Freudenberg wrote:

> (moving from vm-dev)
>
> On 07.04.2016, at 13:45, marcel.taeumel <Marcel.Taeumel at hpi.de> wrote:
>>
>> DisplayScreen depth: 32 width: 1024 height: 768 fullscreen: false.
>
> This does nothing except on Windows I believe.

It works on Unix VMs using the vm-display-null driver. We use it to resize 
the window without restarting the image.

>
> I was pretty certain that at some point we added these methods from Etoys:
>
> 	DisplayScreen class>>hostWindowSize:
> 	DisplayScreen class>>hostWindowTitle:
>
> (which are used to set the proper out-of-the box image size, and to display a document title)
>
> ... but I can’t find them in Trunk. Am I misremembering?
>
> Anyway, the primitive works:
>
> nil with: 1 with: 1024 with: 768 executeMethod: HostWindowProxy>>#primitiveWindowSize:x:y:

The primitive fails on unix Spur VMs.

>
> How about we remove DisplayScreen's depth:width:height:fullscreen: and add these instead? Alternatively, we could implement it using the hostwindow and fullscreen primitives, but since there are no senders anyway (ad it never worked on all platforms)  I’d say we can deprecate it.

Sure, as soon as there's a unified way to do it on all platforms.

Levente

>
> - Bert -
>
>
>
>


More information about the Squeak-dev mailing list