Archived

This topic is now archived and is closed to further replies.

Craazer

Direct draw in window

Recommended Posts

Craazer    122
Have u ever used direct draw in window? has there been graph bugs in other windows when u move your own? anyway my window left bugs to other windows but i fixed it by clipping pixels. And now it works just fine until i move window to ''low'' the application crashes! I mean i can but the window out the screen from left or right but not from bottom... what could couse this? my windows mouse icon/cursor gets also mestup.

Share this post


Link to post
Share on other sites
EbonySeraph    122
I would check for WM_SIZE and WM_MOVE messages. Make sure you always know where your window is, know that if it gets to be off the screen, you have to start clipping whatever edges aren''t visible. Also, even if you window moves and is still onscreen, the clipper still has to be changed.

"Ogun''s Laughter Is No Joke!!!" - Ogun Kills On The Right, A Nigerian Poem.

Share this post


Link to post
Share on other sites
Craazer    122
quote:
Original post by EbonySeraph
I would check for WM_SIZE and WM_MOVE messages. Make sure you always know where your window is, know that if it gets to be off the screen, you have to start clipping whatever edges aren''t visible. Also, even if you window moves and is still onscreen, the clipper still has to be changed.



Thats what i have done..
i calculated lowest bosible pixel to draw like this:
WINDOW_HEIGHT - window_rect.bottom

and make it so no pixel werent drawed below ''screen''
well maybe i check that clipper again.

Share this post


Link to post
Share on other sites