Re: lingo-l Changing resolution

2002-05-13 Thread Colin Holgate

You know the resolution from the desktoprectlist. You would want to 
be sure that you resize the same monitor that the stage is going to 
appear on. Probably (the desktoprectlist)[1].

Are you sure that director can resize the desktop? It can change the 
colordepth, and no, you don't want to do that. Do it with your own 
Lingo, that way you can make a note of the original setting, and 
politely set it back.

I'm guessing that you mean 800/600/16 bit and not 800/600/16 colors? 
Some Mac video boards didn't do 16 bit (or 15 bit), they went 
straight from 256 colors up to millions, with nothing in between. If 
the intention is to make sure that there's a nice color range, why 
not first check if they're in millions, and if they are don't mess 
with the color at all. I mean, why lower the quality just for the 
sake of it?

Direct OS Xtra has a dosSetDisplay function that may do the 
resolution change. In general I think that resizing the desktop is an 
impolite thing to do, but I don't know anyone who would not allow 
that while playing Quake.


-- 
[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email 
[EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for 
learning and helping with programming Lingo.  Thanks!]



lingo-l Changing resolution

2002-05-13 Thread Kerry Thompson

Hello all--

A client has asked me to automatically change the user's display to 800
x 600 x 16 for a game. The Mac is giving me pause.

It's pretty easy on Windows--I use Buddy to do all the checking, and
restore the original settings. Buddy doesn't have those calls on the
Mac, though. As far as I can tell, I can't even find out the current
resolution.

As far as I can tell, the only way to change resolution is through the
options when I'm building the projector. So, a couple questions:

- Is there another way, like Buddy on Windows?
- If I let Director change the resolution, does it reset it when it
exits?
- Generally, how do Mac users feel about a game resetting their
resolution? I know I'd blow my stack if a word processor did it, but I
think games are expected to behave differently.

Cordially,

Kerry Thompson
[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email 
[EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for 
learning and helping with programming Lingo.  Thanks!]



Re: lingo-l Changing resolution

2002-05-13 Thread Mats Leidö

 - Generally, how do Mac users feel about a game resetting their
 resolution? I know I'd blow my stack if a word processor did it, but I
 think games are expected to behave differently.

In my humble experience, Mac users will mind very little if a game 
changes their resolution - no matter whether it is UT or Tetris - and 
also if your game zooms/scales to fill the entire screen. As long as 
it´s a fun game anyway... Many semi-large games on the Mac do the 
scaling thing in fullscreen mode - have a look at for example Wingnut 
or Deimos Rising. Sometimes there is a menu command for playing in a 
window, like in Caesar III, which would scale the stage back to 100% 
(normal) size, or for changing stage size afterwards.

((If you were to change the desktop size, which you apparently don´t 
intend to do, on the Mac there would mostly be some kind of message or 
dialog box before the game fills the screen, sometimes with a popup list 
choice of resolutions/color depths (eg. Wingnut), sometimes with an 
exit/quit button if they don´t want to change resolution for some 
reason. This is a scheme you might adapt for your stage scaling also))

[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email 
[EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for 
learning and helping with programming Lingo.  Thanks!]