|
Running without focus |
23yrold3yrold
Member #1,134
March 2001
|
I think I know the answer to this one already, I'm just kind of hoping I'm wrong. Got an Allegro program running in windowed mode, animation runs in the background ... I click on another window and all animation ceases (as is expected). Is there a way to get the program to be constantly running aund refreshing the window even without focus, or do I need to get all Win32 on it? -- |
Marco Radaelli
Member #3,028
December 2002
|
23yrold3yrold
Member #1,134
March 2001
|
Doesn't seem to work as advertised ... I'm to use SWITCH_BACKAMNESIA, yes? No effect. Should I be calling it anywhere in particular, like before or after set_gfx_mode()? -- |
ReyBrujo
Moderator
January 2001
|
For Windows, you need to call it after setting the graphics mode. -- |
23yrold3yrold
Member #1,134
March 2001
|
You win. Works perfectly now; thanks. -- |
vixinu
Member #7,343
June 2006
|
what about MacOS X (10.4.6)(G4) or Linux (PPC) |
ReyBrujo
Moderator
January 2001
|
You should use both, SWITCH_BACKAMNESIA and SWITCH_BACKGROUND. Which one works depends on your operative system and whether the application is fullscreen or just windowed. -- |
CGamesPlay
Member #2,559
July 2002
|
They work the same way on those platforms. -- Ryan Patterson - <http://cgamesplay.com/> |
|