Direct draw in window

Started by
1 comment, last by Craazer 21 years, 6 months ago
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.
Advertisement
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.
"Ogun's Laughter Is No Joke!!!" - Ogun Kills On The Right, A Nigerian Poem.
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.

This topic is closed to new replies.

Advertisement