Allegro.cc - Online Community

Allegro.cc Forums » Programming Questions » allegro in background

Credits go to gnolam and Kibiz0r for helping out!
This thread is locked; no one can reply to it. rss feed Print
allegro in background
Adix88
Member #8,467
March 2007

I`m trying to make a dedicated server program for my game using allegro for the graphics. I was wondering .. can u make an allegro app work in background ? If you can how ?

Onewing
Member #6,152
August 2005
avatar

Quote:

can u make an allegro app work in background ?

Yes.

Quote:

If you can how ?

I know you can and I've done it before (where the app continues to run when it has lost focus), but I can't seem to find the command needed atm. Just thought I'd verify that it is doable. ;)

------------
Solo-Games.org | My Tech Blog: The Digital Helm

Adix88
Member #8,467
March 2007

thx ... anyone can remember that command ? :P

gnolam
Member #2,030
March 2002
avatar

set_display_switch_mode()

And it's "you", not "u".

--
Move to the Democratic People's Republic of Vivendi Universal (formerly known as Sweden) - officially democracy- and privacy-free since 2008-06-18!

Kibiz0r
Member #6,203
September 2005
avatar

set_display_switch_mode(SWITCH_BACKGROUND)
e:f,b

Adix88
Member #8,467
March 2007

Thank you for all your help ! This has definetly made my life easier .

Dustin Dettmer
Member #3,935
October 2003
avatar

If SWITCH_BACKGROUND fails you'll probably want to revert to SWITCH_BACKAMENSIA

karistouf
Member #5,126
October 2004
avatar

AMNESIA is working good. the app continues to work without any troubles... allegro do this great...

Go to: