DisplayScreen actualScreenSize ???

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

DisplayScreen actualScreenSize ???

Stéphane Ducasse
Hi adrien

I did the following:

I commented the method startup of DisplayScreen
saved the image

then in a file I put

        Display setExtent: DisplayScreen actualScreenSize depth: Display nativeDepth.
        Display beDisplay.
       

/Applications/Squeak/Squeak\ 4.2.3beta1U.app/Contents/MacOS/Squeak\ VM\ Opt PharoCore-1.2-12195.9.image display.st

and it nearly worked :)
I could interact with the little part. I do not understand why DisplayScreen actualScreenSize does not return the correct size or why I only get that size

when I open a image with a display I get correct size so probably that the vm returns a default value when the screen is not started?
John?


Now what I did was to use image with exactly the same size and use the size returned by DisplayScreen actualScreenSize
in one to open the other and I got the same problem

Stef



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

Screen shot 2010-10-18 at 9.42.27 PM.png (31K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: DisplayScreen actualScreenSize ???

Stéphane Ducasse
Now I could evaluate in the tiny screen

         DisplayScreen actualScreenSize
                 972@643

and I got which is the size of the large window.
       
Stef


On Oct 18, 2010, at 9:48 PM, Stéphane Ducasse wrote:

> Hi adrien
>
> I did the following:
>
> I commented the method startup of DisplayScreen
> saved the image
>
> then in a file I put
>
> Display setExtent: DisplayScreen actualScreenSize depth: Display nativeDepth.
> Display beDisplay.
>
>
> /Applications/Squeak/Squeak\ 4.2.3beta1U.app/Contents/MacOS/Squeak\ VM\ Opt PharoCore-1.2-12195.9.image display.st
>
> and it nearly worked :)
> I could interact with the little part. I do not understand why DisplayScreen actualScreenSize does not return the correct size or why I only get that size
>
> when I open a image with a display I get correct size so probably that the vm returns a default value when the screen is not started?
> John?
>
>
> Now what I did was to use image with exactly the same size and use the size returned by DisplayScreen actualScreenSize
> in one to open the other and I got the same problem
>
> Stef
>
>
> <Screen shot 2010-10-18 at 9.42.27 PM.png>_______________________________________________
> 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