Fwd: Changing Display size&depth on Mac
John M McIntosh
johnmci at smalltalkconsulting.com
Wed Dec 11 07:21:34 UTC 2002
Oops to the list also
Begin forwarded message:
> From: John M McIntosh <johnmci at smalltalkconsulting.com>
> Date: Tue Dec 10, 2002 11:21:01 PM US/Pacific
> To: Bob Arning <arning at charm.net>
> Subject: Re: Changing Display size&depth on Mac
>
> There was an attempt made to remove all the C source (at least the
> macintosh source) from the image as part of the VMMaker changeset. So
> something like InterpreterSupportCode(Class)>>macWindowFile got
> deleted in the 3.2 lets see at
>
> #4866
> "Change Set: VMMaker32-7part2
> Date: 7 May 2002
> Author: tim at sumeru.stanford.edu"
>
>
> DisplayScreen depth: 16 width: 640 height: 480 fullscreen: false
>
> changes the macintosh display screen. So the comment is bad/misleading
>
> Mmm now how the heck do you resize the window? Mmm I don't really see
> a call to set the top/left/bottom/right (sigh)... Seems we have a bit
> of disconnect here.
>
> So what should the two calls be to manipulate the window
> size,depth,placement/fullscreen.
> And to manipulate the screen size & depth.
>
> On Tuesday, December 10, 2002, at 12:27 PM, Bob Arning wrote:
>
>> 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?). */
>>>>
>>
>>
>>
> --
> =======================================================================
> ====
> John M. McIntosh <johnmci at smalltalkconsulting.com> 1-800-477-2659
> Corporate Smalltalk Consulting Ltd. http://www.smalltalkconsulting.com
> =======================================================================
> ====
>
>
--
========================================================================
===
John M. McIntosh <johnmci at smalltalkconsulting.com> 1-800-477-2659
Corporate Smalltalk Consulting Ltd. http://www.smalltalkconsulting.com
========================================================================
===
More information about the Squeak-dev
mailing list
|