Changing Display size&depth on Mac
John M McIntosh
johnmci at smalltalkconsulting.com
Tue Dec 10 19:59:35 UTC 2002
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
========================================================================
===
More information about the Squeak-dev
mailing list
|