From: aj <aj...@oi...> - 2006-05-30 05:52:45
|
Sounds like your screen drivers and/or winxp are "trying to help you" Dont you love the way Windows presumes your in idiot, and "offers" to help you with your screen resolution. I have a friend with a LCD and he has similar issues, but its totally within the LCD, it has its own dialog box that pops up and tells your your screen is not "optimal". Anyway.. i dont think it has anything to do with allegro. if i were you i would be first looking at the screen drivers.. ie Nvdia stuff. good luck. Michael L Wilson wrote: > Apologies if this problem has been discussed on the list before; I > couldn't find it in the archives, and it isn't in the FAQ. > > I just installed Allegro on my Windows XP system. I've encountered an > oddity which is almost certainly due to XP, not allegro, but I'd like to > find a way to work around it in allegro if possible. > > This is from Windows XP, using Allegro 4.2.0 and the minimal DirectX 7 > libraries as specified in the distribution (docs/build/mingw32.txt), and > compiled using CYGWIN with gcc 3.4.4. My default screen resolution is > 1024x768, running on an LCD display. > > When running most of the test programs included with Allegro, they > immediately try to set a graphics mode that's 640x480, fullscreen. E.g., > see the tests/digitest program, which calls > > set_gfx_mode(GFX_AUTODETECT, 640, 480, 0, 0) > > The call appears to succeed, and the program starts up with the new screen > resolution. Within a second or two of starting, the program is magically > iconified. For a brief moment (too short to read it), there's a windows > dialog box. I *think* it's warning about a change to the screen > resolution, asking if it's OK. Unfortunately, it goes away before I can > read it, to say nothing of clicking on it. > > If I try to bring the application back up (from the iconified state), it > pops up, runs for about one second, then iconifies again with the same > snapshot of the dialog. If I manually change my screen's resolution to > 640x480, everything works fine. > > Since tests/test.exe allows me to specify the screen resolution as > 1024x768, everything is fine. (If I pick 640x480, I get the same problem, > of course.) > > Since the set_gfx_mode() call is (apparently) succeeding, Allegro has no > way to know that anything is wrong. > > Anybody have any ideas how to deal with this? My Allegro projects are > intended for a fairly non-technical target audience, and I'd like to fix > everything transparently. > > -Mike Wilson > > > |