Hi
I use baSetDisplayEx in a stub projector heaps on all Windows platforms

Here is a typical script converting to 640x480 and 16 bit colour but it will
work with any resolution except you would need to be careful that with
Windows NT, 2000 you only used the refresh rate if you were changing from a
higher resolution - or you might damage their monitor.
With the stub projector movie I set the background colour to black.
I think you need to do this in a stub projector or you can run into trouble.

It works fine with Windows 95, 98, ME.

on exitFrame
  global oldRes, oldDepth
  set the centerStage = TRUE
  wd = baScreenInfo( "width" )
  ht = baScreenInfo( "height" )
  refrsh = baScreenInfo( "refresh" )
  depth = baScreenInfo( "depth" )
  oldDepth = depth
  if wd > 640 OR ht > 480 then
    if depth < 16 then depth = 16
    oldRes = [wd, ht]
    x = baSetDisplayEx( 640 , 480 , depth , refrsh, "temp" , false )
    updateStage
  else
    oldRes = [640,480]
    if depth < 16 then
      depth = 16
      x = baSetDisplayEx( 640 , 480 , depth , refrsh, "temp" , false )
      updateStage
    end if
  end if
  depth = baScreenInfo( "depth" )
  if depth < 16 then
    alert "The color depth is less than 16 bit and could not be reset
automatically. You will need to�
 change the color depth to at least 16 bit and restart StoryMaker."
    go to "fail"
    exit
  else
    go to movie "sentences"
    exit
  end if
end

Hope this helps
Trevor Geddes

Original message:
>I experience difficulty in using Buddy API
set OK = baSetDisplayEx( 800 , 600 , 8 , 75 , "temp" , false )

the centerstage = 1

to change resolution of Windows 98, ME. The movie was set at 800x600. The
screen turn black after above code been executed. Anyone experience this. It
works fine on Windows 2000.



[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/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!]

Reply via email to