Thread: can i test for allegro gfx mode?

  1. #1
    GA ichijoji's Avatar
    Join Date
    Nov 2002

    Question can i test for allegro gfx mode?

    I'm working on a casino game, and I want to switch from console to FULLSCREEN_AUTODETECT to play movies of slot machines and roulette wheels and such. The problem is that the first few seconds of the movie go unseen while set_gfx_mode() does its thing. Is there any way to test to see if the program has switched to fullscreen before I start the movie, or should I just put in something like:
    I'd rather know when it switches in so that the user won't have to wait for the movie/skip the first part. Thanks.
    (code attached)
    Illusion and reality become impartiality and confidence.

  2. #2
    C++ Developer XSquared's Avatar
    Join Date
    Jun 2002
    Ontario, Canada
    Try asking here.
    Naturally I didn't feel inspired enough to read all the links for you, since I already slaved away for long hours under a blistering sun pressing the search button after typing four whole words! - Quzah

    You. Fetch me my copy of the Wall Street Journal. You two, fight to the death - Stewie

  3. #3
    Rambling Man
    Join Date
    Jan 2002
    if(set_gfx_mode(GFX_AUTODETECT_FULLSCREEN, 800, 600, 0, 0) == 0)
    The drawboard() function shouldn't start until after the gfx mode has been set.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. can not set breakpoint in release mode
    By George2 in forum Windows Programming
    Replies: 4
    Last Post: 07-16-2008, 03:43 AM
  2. console mode and service mode
    By George2 in forum C# Programming
    Replies: 0
    Last Post: 06-01-2008, 01:42 AM
  3. C or C++
    By AcerN30 in forum Game Programming
    Replies: 41
    Last Post: 05-30-2008, 06:57 PM
  4. C++ Operator Overloading help
    By Bartosz in forum C++ Programming
    Replies: 2
    Last Post: 08-17-2005, 12:55 PM
  5. problem with open gl engine.
    By gell10 in forum Game Programming
    Replies: 1
    Last Post: 08-21-2003, 04:10 AM