Changing Display size&depth on Mac

Bob Arning arning at charm.net
Tue Dec 10 20:27:41 UTC 2002


John,

>reads the same.  How old is the source that you are using?

The source I was looking at is the source in the 3.2 image. I haven't gotten the hang of browsing sourceforge.

>Mmm others are welcome to try. Mind if you switch from 1024x768 to  
>640x480 then the finder repositions icons
>on the desktop (ugly feature) that trashs those carefully position  
>desktop alias files.

Is this changing the Mac's screen resolution or Squeak's window size? It would seem to be the former, while existing comments imply the latter. Which is right?

Cheers,
Bob

On Tue, 10 Dec 2002 11:59:35 -0800 John M McIntosh <johnmci at smalltalkconsulting.com> wrote:
>Mmm well my copy of the source code reads
>
>int ioSetDisplayMode(int width, int height, int depth, int  
>fullscreenFlag) {
>	/* Set the window to the given width, height, and color depth. Put the  
>window
>	   into the full screen mode specified by fullscreenFlag. */
>	
>
>Ah the copy at
>
>http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/squeak/squeak/platforms/ 
>Mac%20OS/vm/sqMacWindow.c?rev=1.19&content-type=text/vnd.viewcvs-markup
>
>reads the same.  How old is the source that you are using?
>However it should work, at least on os-x.
>
>Yup, tried it on my test machine with a 3.2.8b9 VM
>DisplayScreen depth: 16 width: 640 height: 480 fullscreen: false.   
>"ugly"
>DisplayScreen depth: 16 width: 1024 height: 768 fullscreen: false.
>
>That works, do you have multiple monitors, it could be a bug that my  
>limited test machine suite hasn't exposed.
>
>Mmm others are welcome to try. Mind if you switch from 1024x768 to  
>640x480 then the finder repositions icons
>on the desktop (ugly feature) that trashs those carefully position  
>desktop alias files.
>
>On Tuesday, December 10, 2002, at 08:41  AM, Bob Arning wrote:
>
>> I've been trying to change the size of Squeak's window from inside  
>> Squeak:
>>
>> 	DisplayScreen depth: 8 width: 1024 height: 768 fullscreen: false
>>
>> does not change the size, but *does* change the depth. This seems  
>> quite the opposite to what is suggested by:
>> --------------------------
>> int ioSetDisplayMode(int width, int height, int depth, int  
>> fullscreenFlag) {
>> 	/* Set the window to the given width, height, and color depth. Put  
>> the window
>> 	   into the full screen mode specified by fullscreenFlag. */
>> 	/* Note: Changing display depth is not yet, and may never be,  
>> implemented
>> 	   on the Macintosh, where (a) it is considered inappropriate and (b)  
>> it may
>> 	   not even be a well-defined operation if the Squeak window spans  
>> several
>> 	   displays (which display''s depth should be changed?). */
>>




More information about the Squeak-dev mailing list