get rid of my blank screen!

This is a discussion on get rid of my blank screen! within the Game Programming forums, part of the General Programming Boards category; How do I stop my or any Allegro program returning from full screen mode to windows and causing a blank ...

  1. #1
    Registered User
    Join Date
    Aug 2001
    Posts
    380

    get rid of my blank screen!

    How do I stop my or any Allegro program returning from full screen mode to windows and causing a blank black screen? I would get the same results as if I were programming without a monitor. All ideas welcomed.

  2. #2
    Registered User
    Join Date
    Aug 2001
    Posts
    380
    Here's the link to my program gives me the blank screen. arrows and esc to quit http://freepages.tv.rootsweb.com/~lambs/pacman.zip

    As or after it exits the screen should become completely black or blank. Atleast it does for me.

  3. #3
    Registered User
    Join Date
    Oct 2001
    Posts
    375
    Your program works just fine on my PC. Perhaps it is the resolution or color depth on your computer. Try running the program in different settings.. also try running it in a Window and see what the results are.
    Allegro precompiled Installer for Dev-C++, MSVC, and Borland: http://galileo.spaceports.com/~springs/

  4. #4
    Registered User
    Join Date
    Aug 2001
    Posts
    380
    As long as I'm running it in Windowed mode everything works ok. Also, I tried updating the video drivers, didn't seem to make a different. The blank appears to happen randomly. So running the program ten times might not produce a blank. Or running it twice and the blank could show up. I was trying to program using the GFX_GDI mode only, but the keyboard handler wasn't responding and is now .

  5. #5
    Registered User
    Join Date
    Aug 2001
    Posts
    380
    Just ignore the 'keyboard handlering' problem.

  6. #6
    Registered User
    Join Date
    Oct 2001
    Posts
    375
    Hhhmmmm, how strange. I couldn't produce the effect you mentioned on any computers here with your exe. I didn't have time to look thru the code very thouroughly, but I didn't notice anything off from what I did see. I presume you've tried using the exact same color depth and resolution as the desktop and had the same effect?

    If it is completely random, then that makes it much harder to debug, especially since I can't reproduce it.... Might try updating your DirectX runtimes.
    Allegro precompiled Installer for Dev-C++, MSVC, and Borland: http://galileo.spaceports.com/~springs/

  7. #7
    Registered User
    Join Date
    Aug 2001
    Posts
    380
    The runtime files I'm using are from Direct X 8. Yes, I have tried matching the resolution and color depths with the desktop. It takes more tries before the problem comes around. Both with matched and umatch settings the blank screen went away twice.....as windows had started the shutdown procdure. Usually it disappears when windows gets to the please wait shutdown screen. By disappear I mean the desktop and stuff comes visible again. For all I know the video card could be at fault. Also, I had another person over at the allegro forum test it only to get same results as you did. This problem also occurs with valar_king's graveyard demo.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Blank output screen after compiling C.
    By thunderdome in forum C Programming
    Replies: 2
    Last Post: 01-19-2006, 06:53 PM
  2. Feedback: Functional Specification Wording
    By Ragsdale85 in forum C++ Programming
    Replies: 0
    Last Post: 01-18-2006, 04:56 PM
  3. char copy
    By variable in forum C Programming
    Replies: 8
    Last Post: 02-06-2005, 10:18 PM
  4. i am not able to figure ot the starting point of this
    By youngashish in forum C++ Programming
    Replies: 7
    Last Post: 10-07-2004, 03:41 AM
  5. Converting from Screen to World Coordinates
    By DavidP in forum Game Programming
    Replies: 9
    Last Post: 05-11-2004, 01:51 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21