Allegro.cc - Online Community

Allegro.cc Forums » Programming Questions » Keeping a program from "stopping" when moving the window

This thread is locked; no one can reply to it. rss feed Print
Keeping a program from "stopping" when moving the window
GrantG
Member #8,173
December 2006
avatar

I don't know why this happens, but when I move my program's window, the window stops updating until I let go of it (I'm using DirectX by the way). I'm sure fixing this can't be too complicated.

CGamesPlay
Member #2,559
July 2002
avatar

I don't know for sure, but what if you call:set_display_switch_mode(SWITCH_BACKGROUND);

--
Tomasu: Every time you read this: hugging!

Ryan Patterson - <http://cgamesplay.com/>

GrantG
Member #8,173
December 2006
avatar

Uhh would you know where is the Allegro source that function is, I've been looking but can't seem to find it.

CGamesPlay
Member #2,559
July 2002
avatar

Uhh why do you care?

--
Tomasu: Every time you read this: hugging!

Ryan Patterson - <http://cgamesplay.com/>

Onewing
Member #6,152
August 2005
avatar

It also might have to do with the video card. I actually worked on one machine where I had to move the window to have it updated. Made playing games...interesting. A simple upgrade of the drivers help. Just thought I'd mention.

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

GrantG
Member #8,173
December 2006
avatar

Quote:

Uhh why do you care?

I'm using DirectX not Allegro, so maybe if I had a look at the function that would help.

CGamesPlay
Member #2,559
July 2002
avatar

Quote:

I'm using DirectX not Allegro, so maybe if I had a look at the function that would help.

Oh. In that case, the function won't help anyways.

--
Tomasu: Every time you read this: hugging!

Ryan Patterson - <http://cgamesplay.com/>

Go to: