Resize pharo window

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
12 messages Options
Reply | Threaded
Open this post in threaded view
|

Resize pharo window

Adrien BARREAU
Hello,

I try to understand how I can change the size of the Pharo window.

I tried this: Display setExtent: 1000@700 depth: 32; beDisplay.

That seems to work ... but only a few milliseconds. After this delay, the window returns back to its previous size.

Any suggestions? :)

Adrien.

_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Reply | Threaded
Open this post in threaded view
|

Re: Resize pharo window

Denis Kudriashov
DisplayScreen depth: depthInteger width: widthInteger height: heightInteger fullscreen: aBoolean

2010/10/19 Adrien BARREAU <[hidden email]>
Hello,

I try to understand how I can change the size of the Pharo window.

I tried this: Display setExtent: 1000@700 depth: 32; beDisplay.

That seems to work ... but only a few milliseconds. After this delay, the window returns back to its previous size.

Any suggestions? :)

Adrien.

_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project


_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Reply | Threaded
Open this post in threaded view
|

Re: Resize pharo window

Stéphane Ducasse
In reply to this post by Adrien BARREAU
I'm not sure that we can do that from the system and if this is not something that can only set up by the OS.

Stef



> Hello,
>
> I try to understand how I can change the size of the Pharo window.
>
> I tried this: Display setExtent: 1000@700 depth: 32; beDisplay.
>
> That seems to work ... but only a few milliseconds. After this delay, the window returns back to its previous size.
>
> Any suggestions? :)
>
> Adrien.
> _______________________________________________
> Pharo-project mailing list
> [hidden email]
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project


_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Reply | Threaded
Open this post in threaded view
|

Re: Resize pharo window

Max Leske
We can't... I wrote a script (Lukas rewrote it in C) which is active on his build server and replaces the relevant bits in the image after the build process.
Check it out at github: http://github.com/renggli/builder/blob/master/tools/build-resize.c

Cheers,
Max


On 19.10.2010, at 20:35, Stéphane Ducasse wrote:

> I'm not sure that we can do that from the system and if this is not something that can only set up by the OS.
>
> Stef
>
>
>
>> Hello,
>>
>> I try to understand how I can change the size of the Pharo window.
>>
>> I tried this: Display setExtent: 1000@700 depth: 32; beDisplay.
>>
>> That seems to work ... but only a few milliseconds. After this delay, the window returns back to its previous size.
>>
>> Any suggestions? :)
>>
>> Adrien.
>> _______________________________________________
>> Pharo-project mailing list
>> [hidden email]
>> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>
>
> _______________________________________________
> Pharo-project mailing list
> [hidden email]
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project


_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Reply | Threaded
Open this post in threaded view
|

Re: Resize pharo window

Levente Uzonyi-2
On Tue, 19 Oct 2010, Max Leske wrote:

> We can't... I wrote a script (Lukas rewrote it in C) which is active on his build server and replaces the relevant bits in the image after the build process.
> Check it out at github: http://github.com/renggli/builder/blob/master/tools/build-resize.c

We were using the following bash script for this:

$ cat resize-squeak.sh
#!/bin/bash

if [ $# -ne 3 ]
then
         echo "Usage: `basename $0` <image> <width> <height>"
         exit 1
fi
echo -ne \\x$(printf "%02X" $[$3%256])\\x$(printf "%02X" $[$3/256])\\x$(printf "%02X" $[$2%256])\\x$(printf "%02X" $[$2/256]) | dd of="$1" obs=1 seek=24 conv=block,notrunc cbs=4

But we patched our VMs, so nowadays we do it from the image. :)


Levente

>
> Cheers,
> Max
>
>
> On 19.10.2010, at 20:35, Stéphane Ducasse wrote:
>
>> I'm not sure that we can do that from the system and if this is not something that can only set up by the OS.
>>
>> Stef
>>
>>
>>
>>> Hello,
>>>
>>> I try to understand how I can change the size of the Pharo window.
>>>
>>> I tried this: Display setExtent: 1000@700 depth: 32; beDisplay.
>>>
>>> That seems to work ... but only a few milliseconds. After this delay, the window returns back to its previous size.
>>>
>>> Any suggestions? :)
>>>
>>> Adrien.
>>> _______________________________________________
>>> Pharo-project mailing list
>>> [hidden email]
>>> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>>
>>
>> _______________________________________________
>> Pharo-project mailing list
>> [hidden email]
>> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>
>
> _______________________________________________
> Pharo-project mailing list
> [hidden email]
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>
_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Reply | Threaded
Open this post in threaded view
|

Re: Resize pharo window

Max Leske
The script used to be bash but some people had problems with it on other systems so Lukas rewrote it.

That patch might be nice to have in an official VM...

Max

On 19.10.2010, at 22:07, Levente Uzonyi wrote:

> On Tue, 19 Oct 2010, Max Leske wrote:
>
>> We can't... I wrote a script (Lukas rewrote it in C) which is active on his build server and replaces the relevant bits in the image after the build process.
>> Check it out at github: http://github.com/renggli/builder/blob/master/tools/build-resize.c
>
> We were using the following bash script for this:
>
> $ cat resize-squeak.sh
> #!/bin/bash
>
> if [ $# -ne 3 ]
> then
>        echo "Usage: `basename $0` <image> <width> <height>"
>        exit 1
> fi
> echo -ne \\x$(printf "%02X" $[$3%256])\\x$(printf "%02X" $[$3/256])\\x$(printf "%02X" $[$2%256])\\x$(printf "%02X" $[$2/256]) | dd of="$1" obs=1 seek=24 conv=block,notrunc cbs=4
>
> But we patched our VMs, so nowadays we do it from the image. :)
>
>
> Levente
>
>>
>> Cheers,
>> Max
>>
>>
>> On 19.10.2010, at 20:35, Stéphane Ducasse wrote:
>>
>>> I'm not sure that we can do that from the system and if this is not something that can only set up by the OS.
>>>
>>> Stef
>>>
>>>
>>>
>>>> Hello,
>>>>
>>>> I try to understand how I can change the size of the Pharo window.
>>>>
>>>> I tried this: Display setExtent: 1000@700 depth: 32; beDisplay.
>>>>
>>>> That seems to work ... but only a few milliseconds. After this delay, the window returns back to its previous size.
>>>>
>>>> Any suggestions? :)
>>>>
>>>> Adrien.
>>>> _______________________________________________
>>>> Pharo-project mailing list
>>>> [hidden email]
>>>> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>>>
>>>
>>> _______________________________________________
>>> Pharo-project mailing list
>>> [hidden email]
>>> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>>
>>
>> _______________________________________________
>> Pharo-project mailing list
>> [hidden email]
>> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
> _______________________________________________
> Pharo-project mailing list
> [hidden email]
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project


_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Reply | Threaded
Open this post in threaded view
|

Re: Resize pharo window

Stéphane Ducasse
In reply to this post by Max Leske
levente could you push your patch in the normal vm because this is really useful to have it.

Stef

On Oct 19, 2010, at 10:07 PM, Levente Uzonyi wrote:

> On Tue, 19 Oct 2010, Max Leske wrote:
>
>> We can't... I wrote a script (Lukas rewrote it in C) which is active on his build server and replaces the relevant bits in the image after the build process.
>> Check it out at github: http://github.com/renggli/builder/blob/master/tools/build-resize.c
>
> We were using the following bash script for this:
>
> $ cat resize-squeak.sh
> #!/bin/bash
>
> if [ $# -ne 3 ]
> then
>        echo "Usage: `basename $0` <image> <width> <height>"
>        exit 1
> fi
> echo -ne \\x$(printf "%02X" $[$3%256])\\x$(printf "%02X" $[$3/256])\\x$(printf "%02X" $[$2%256])\\x$(printf "%02X" $[$2/256]) | dd of="$1" obs=1 seek=24 conv=block,notrunc cbs=4
>
> But we patched our VMs, so nowadays we do it from the image. :)
>
>
> Levente
>
>>
>> Cheers,
>> Max
>>
>>
>> On 19.10.2010, at 20:35, Stéphane Ducasse wrote:
>>
>>> I'm not sure that we can do that from the system and if this is not something that can only set up by the OS.
>>>
>>> Stef
>>>
>>>
>>>
>>>> Hello,
>>>>
>>>> I try to understand how I can change the size of the Pharo window.
>>>>
>>>> I tried this: Display setExtent: 1000@700 depth: 32; beDisplay.
>>>>
>>>> That seems to work ... but only a few milliseconds. After this delay, the window returns back to its previous size.
>>>>
>>>> Any suggestions? :)
>>>>
>>>> Adrien.
>>>> _______________________________________________
>>>> Pharo-project mailing list
>>>> [hidden email]
>>>> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>>>
>>>
>>> _______________________________________________
>>> Pharo-project mailing list
>>> [hidden email]
>>> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>>
>>
>> _______________________________________________
>> Pharo-project mailing list
>> [hidden email]
>> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
> _______________________________________________
> Pharo-project mailing list
> [hidden email]
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project


_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Reply | Threaded
Open this post in threaded view
|

Re: Resize pharo window

Levente Uzonyi-2
In reply to this post by Max Leske
On Tue, 19 Oct 2010, Max Leske wrote:

> The script used to be bash but some people had problems with it on other systems so Lukas rewrote it.
>
> That patch might be nice to have in an official VM...

It may be in the next release. See the following thread:
http://lists.squeakfoundation.org/pipermail/vm-dev/2010-August/005253.html


Levente

>
> Max
>
> On 19.10.2010, at 22:07, Levente Uzonyi wrote:
>
>> On Tue, 19 Oct 2010, Max Leske wrote:
>>
>>> We can't... I wrote a script (Lukas rewrote it in C) which is active on his build server and replaces the relevant bits in the image after the build process.
>>> Check it out at github: http://github.com/renggli/builder/blob/master/tools/build-resize.c
>>
>> We were using the following bash script for this:
>>
>> $ cat resize-squeak.sh
>> #!/bin/bash
>>
>> if [ $# -ne 3 ]
>> then
>>        echo "Usage: `basename $0` <image> <width> <height>"
>>        exit 1
>> fi
>> echo -ne \\x$(printf "%02X" $[$3%256])\\x$(printf "%02X" $[$3/256])\\x$(printf "%02X" $[$2%256])\\x$(printf "%02X" $[$2/256]) | dd of="$1" obs=1 seek=24 conv=block,notrunc cbs=4
>>
>> But we patched our VMs, so nowadays we do it from the image. :)
>>
>>
>> Levente
>>
>>>
>>> Cheers,
>>> Max
>>>
>>>
>>> On 19.10.2010, at 20:35, Stéphane Ducasse wrote:
>>>
>>>> I'm not sure that we can do that from the system and if this is not something that can only set up by the OS.
>>>>
>>>> Stef
>>>>
>>>>
>>>>
>>>>> Hello,
>>>>>
>>>>> I try to understand how I can change the size of the Pharo window.
>>>>>
>>>>> I tried this: Display setExtent: 1000@700 depth: 32; beDisplay.
>>>>>
>>>>> That seems to work ... but only a few milliseconds. After this delay, the window returns back to its previous size.
>>>>>
>>>>> Any suggestions? :)
>>>>>
>>>>> Adrien.
>>>>> _______________________________________________
>>>>> Pharo-project mailing list
>>>>> [hidden email]
>>>>> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>>>>
>>>>
>>>> _______________________________________________
>>>> Pharo-project mailing list
>>>> [hidden email]
>>>> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>>>
>>>
>>> _______________________________________________
>>> Pharo-project mailing list
>>> [hidden email]
>>> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>> _______________________________________________
>> Pharo-project mailing list
>> [hidden email]
>> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>
>
> _______________________________________________
> Pharo-project mailing list
> [hidden email]
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>
_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Reply | Threaded
Open this post in threaded view
|

Re: Resize pharo window

laza
So you gonna remove the call to ioSetDisplayMode of the specific vm
display plugin from primitiveSetDisplayMode?

Alex

2010/10/19 Levente Uzonyi <[hidden email]>:

> On Tue, 19 Oct 2010, Max Leske wrote:
>
>> The script used to be bash but some people had problems with it on other
>> systems so Lukas rewrote it.
>>
>> That patch might be nice to have in an official VM...
>
> It may be in the next release. See the following thread:
> http://lists.squeakfoundation.org/pipermail/vm-dev/2010-August/005253.html
>
>
> Levente
>
>>
>> Max
>>
>> On 19.10.2010, at 22:07, Levente Uzonyi wrote:
>>
>>> On Tue, 19 Oct 2010, Max Leske wrote:
>>>
>>>> We can't... I wrote a script (Lukas rewrote it in C) which is active on
>>>> his build server and replaces the relevant bits in the image after the build
>>>> process.
>>>> Check it out at github:
>>>> http://github.com/renggli/builder/blob/master/tools/build-resize.c
>>>
>>> We were using the following bash script for this:
>>>
>>> $ cat resize-squeak.sh
>>> #!/bin/bash
>>>
>>> if [ $# -ne 3 ]
>>> then
>>>       echo "Usage: `basename $0` <image> <width> <height>"
>>>       exit 1
>>> fi
>>> echo -ne \\x$(printf "%02X" $[$3%256])\\x$(printf "%02X"
>>> $[$3/256])\\x$(printf "%02X" $[$2%256])\\x$(printf "%02X" $[$2/256]) | dd
>>> of="$1" obs=1 seek=24 conv=block,notrunc cbs=4
>>>
>>> But we patched our VMs, so nowadays we do it from the image. :)
>>>
>>>
>>> Levente
>>>
>>>>
>>>> Cheers,
>>>> Max
>>>>
>>>>
>>>> On 19.10.2010, at 20:35, Stéphane Ducasse wrote:
>>>>
>>>>> I'm not sure that we can do that from the system and if this is not
>>>>> something that can only set up by the OS.
>>>>>
>>>>> Stef
>>>>>
>>>>>
>>>>>
>>>>>> Hello,
>>>>>>
>>>>>> I try to understand how I can change the size of the Pharo window.
>>>>>>
>>>>>> I tried this: Display setExtent: 1000@700 depth: 32; beDisplay.
>>>>>>
>>>>>> That seems to work ... but only a few milliseconds. After this delay,
>>>>>> the window returns back to its previous size.
>>>>>>
>>>>>> Any suggestions? :)
>>>>>>
>>>>>> Adrien.
>>>>>> _______________________________________________
>>>>>> Pharo-project mailing list
>>>>>> [hidden email]
>>>>>> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> Pharo-project mailing list
>>>>> [hidden email]
>>>>> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>>>>
>>>>
>>>> _______________________________________________
>>>> Pharo-project mailing list
>>>> [hidden email]
>>>> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>>>
>>> _______________________________________________
>>> Pharo-project mailing list
>>> [hidden email]
>>> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>>
>>
>> _______________________________________________
>> Pharo-project mailing list
>> [hidden email]
>> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>
> _______________________________________________
> Pharo-project mailing list
> [hidden email]
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>

_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Reply | Threaded
Open this post in threaded view
|

Re: Resize pharo window

Yanni Chiu
In reply to this post by Max Leske
On 19/10/10 4:13 PM, Max Leske wrote:
> The script used to be bash but some people had problems with it on other systems so Lukas rewrote it.

Here's one more way using "vi" (which apparently has a binary mode).
Save the attached vi commands in a file, and run it using:

     vi -b your.image < poke-image.vi

It sets the image size to 512x768. If you want another size, you'll have
to do the conversion to hex.

This method can be useful if the "bash" method won't work, and you don't
have a C compiler on your machine.

_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project

poke-image.vi (57 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Resize pharo window

Levente Uzonyi-2
In reply to this post by laza
On Wed, 20 Oct 2010, Alexander Lazarević wrote:

> So you gonna remove the call to ioSetDisplayMode of the specific vm
display plugin from primitiveSetDisplayMode?

Alex


No, the idea is to replace the current implementation of ioSetDisplayMode:

  return 0;

to another which saves the display size:

  setSavedWindowSize((w << 16) + (h & 0xFFFF));
  return 1;



Levente


2010/10/19 Levente Uzonyi <[hidden email]>:

> On Tue, 19 Oct 2010, Max Leske wrote:
>
>> The script used to be bash but some people had problems with it on other
>> systems so Lukas rewrote it.
>>
>> That patch might be nice to have in an official VM...
>
> It may be in the next release. See the following thread:
> http://lists.squeakfoundation.org/pipermail/vm-dev/2010-August/005253.html
>
>
> Levente
>
>>
>> Max
>>
>> On 19.10.2010, at 22:07, Levente Uzonyi wrote:
>>
>>> On Tue, 19 Oct 2010, Max Leske wrote:
>>>
>>>> We can't... I wrote a script (Lukas rewrote it in C) which is active on
>>>> his build server and replaces the relevant bits in the image after the build
>>>> process.
>>>> Check it out at github:
>>>> http://github.com/renggli/builder/blob/master/tools/build-resize.c
>>>
>>> We were using the following bash script for this:
>>>
>>> $ cat resize-squeak.sh
>>> #!/bin/bash
>>>
>>> if [ $# -ne 3 ]
>>> then
>>>       echo "Usage: `basename $0` <image> <width> <height>"
>>>       exit 1
>>> fi
>>> echo -ne \\x$(printf "%02X" $[$3%256])\\x$(printf "%02X"
>>> $[$3/256])\\x$(printf "%02X" $[$2%256])\\x$(printf "%02X" $[$2/256]) | dd
>>> of="$1" obs=1 seek=24 conv=block,notrunc cbs=4
>>>
>>> But we patched our VMs, so nowadays we do it from the image. :)
>>>
>>>
>>> Levente
>>>
>>>>
>>>> Cheers,
>>>> Max
>>>>
>>>>
>>>> On 19.10.2010, at 20:35, Stéphane Ducasse wrote:
>>>>
>>>>> I'm not sure that we can do that from the system and if this is not
>>>>> something that can only set up by the OS.
>>>>>
>>>>> Stef
>>>>>
>>>>>
>>>>>
>>>>>> Hello,
>>>>>>
>>>>>> I try to understand how I can change the size of the Pharo window.
>>>>>>
>>>>>> I tried this: Display setExtent: 1000@700 depth: 32; beDisplay.
>>>>>>
>>>>>> That seems to work ... but only a few milliseconds. After this delay,
>>>>>> the window returns back to its previous size.
>>>>>>
>>>>>> Any suggestions? :)
>>>>>>
>>>>>> Adrien.
>>>>>> _______________________________________________
>>>>>> Pharo-project mailing list
>>>>>> [hidden email]
>>>>>> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> Pharo-project mailing list
>>>>> [hidden email]
>>>>> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>>>>
>>>>
>>>> _______________________________________________
>>>> Pharo-project mailing list
>>>> [hidden email]
>>>> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>>>
>>> _______________________________________________
>>> Pharo-project mailing list
>>> [hidden email]
>>> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>>
>>
>> _______________________________________________
>> Pharo-project mailing list
>> [hidden email]
>> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>
> _______________________________________________
> Pharo-project mailing list
> [hidden email]
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>
_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Reply | Threaded
Open this post in threaded view
|

Re: Resize pharo window

Eliot Miranda-2
Hi Levente,

2010/10/20 Levente Uzonyi <[hidden email]>
On Wed, 20 Oct 2010, Alexander Lazarević wrote:

So you gonna remove the call to ioSetDisplayMode of the specific vm
display plugin from primitiveSetDisplayMode?

Alex


No, the idea is to replace the current implementation of ioSetDisplayMode:

       return 0;

to another which saves the display size:

       setSavedWindowSize((w << 16) + (h & 0xFFFF));
       return 1;

This may or may not be related.  We do headless builds at Teleplace and everything worked fine until we moved to Mac.  There-on the issue for us was that ioScreenSize was defined to answer 16@16 for the screen size when run headless, and so images built headless on the Mac used to come up with a tiny screen.  The fix was to use the saved window size.  See http://www.squeakvm.org/svn/squeak/branches/Cog/platforms/Mac%20OS/vm/sqMacWindow.c.

As far as setting the image size in image we discussed all this on this list back on May 16th, right?  e.g. save the image (but don't quit) open the just-saved image and modify the screen size there-in.  Is this what you're doing?

best
Eliot




Levente


2010/10/19 Levente Uzonyi <[hidden email]>:
On Tue, 19 Oct 2010, Max Leske wrote:

The script used to be bash but some people had problems with it on other
systems so Lukas rewrote it.

That patch might be nice to have in an official VM...

It may be in the next release. See the following thread:
http://lists.squeakfoundation.org/pipermail/vm-dev/2010-August/005253.html


Levente


Max

On 19.10.2010, at 22:07, Levente Uzonyi wrote:

On Tue, 19 Oct 2010, Max Leske wrote:

We can't... I wrote a script (Lukas rewrote it in C) which is active on
his build server and replaces the relevant bits in the image after the build
process.
Check it out at github:
http://github.com/renggli/builder/blob/master/tools/build-resize.c

We were using the following bash script for this:

$ cat resize-squeak.sh
#!/bin/bash

if [ $# -ne 3 ]
then
      echo "Usage: `basename $0` <image> <width> <height>"
      exit 1
fi
echo -ne \\x$(printf "%02X" $[$3%256])\\x$(printf "%02X"
$[$3/256])\\x$(printf "%02X" $[$2%256])\\x$(printf "%02X" $[$2/256]) | dd
of="$1" obs=1 seek=24 conv=block,notrunc cbs=4

But we patched our VMs, so nowadays we do it from the image. :)


Levente


Cheers,
Max


On 19.10.2010, at 20:35, Stéphane Ducasse wrote:

I'm not sure that we can do that from the system and if this is not
something that can only set up by the OS.

Stef



Hello,

I try to understand how I can change the size of the Pharo window.

I tried this: Display setExtent: 1000@700 depth: 32; beDisplay.

That seems to work ... but only a few milliseconds. After this delay,
the window returns back to its previous size.

Any suggestions? :)

Adrien.
_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project


_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project


_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project

_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project


_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project

_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project


_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project


_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project