Sign in to follow this  
ELFanatic

windowed mode

Recommended Posts

Some reason, when I am in windowed mode, if I move the window beyond the screen to the left DirectX redraws everything so that it doesn't leave the screen, which is what it should do, but it doesn't have this problem if I move it to the right or to the bottom. The window goes off screen but the images inside the window refuse to. Does this make sense? I don't believe the problem is in my render function. So I'm not sure where it's rooting in. Ask for any pieces of code you think may help.

Share this post


Link to post
Share on other sites
I think pictures would explain better.


Okay, so this is what the picture looks like in the middle of the screen. The picture itself is irrevelent.


Now I move it to the right (or bottom) and it looks normal. It's what you'd expect, the right side is clipped off.


but when I move it to the left, the right side of the picture is clipped off again. I'd like to fix it so that the side that is off screen is the side that is clipped from the picture.

I'm not sure if it's relevent but I'm using the ID3DXSprite helper class. I'm not sure where the problem is. As I said before, I don't think it's my render routine but I'll post any code anyone wants to see.

Oh, something weird that I've noticed. As I drag it to the left it's okay but when I release the mouse button it redraws with this weird clipping. BUT the entire time I'm moving the window back onto screen from the left it acts weird like this. Some reason it's normal when dragging it out of screen to the left until I let go.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this