• Create Account

Need scary sound effects or creepy audio loops for your next horror-themed game? Check out Highscore Vol.3 - The Horror Edition in our marketplace. 50 sounds and 10 loops for only \$9.99!

### #ActualInterminable

Posted 02 August 2012 - 03:57 AM

I worked out I was not making proper use of the values AdjustWindowRect() was setting. So now my sprites can move horizontally across the screen in bordered mode and look fine, but there's a problem: Everything looks squashed and sprites moving vertically still have the issue, because it's adjusting the top by -30 pixels and the left by -8 (because of the title bar). Ideally I'd like to have the window sized so that stuff within it is not squashed, unfortunately if I do it:

windowRect.right - windowRect.left,
windowRect.bottom - windowRect.left,


It looks fine and sprites move perfectly when moving horizontally, but the issue still exists when they move up or down.

I think this may be about solved now though, I just want to try and get the window sized correctly so sprites are not stretched and at the same time have their movement appear glitch free.

### #2Interminable

Posted 02 August 2012 - 03:57 AM

I worked out I was not making proper use of the values AdjustWindowRect() was setting. So now my sprites can move horizontally across the screen in bordered mode and look fine, but there's a problem: Everything looks squashed and sprites moving virtically still have the issue, because it's adjusting the top by -30 pixels and the left by -8 (because of the title bar). Ideally I'd like to have the window sized so that stuff within it is not squashed, unfortunately if I do it:

windowRect.right - windowRect.left,
windowRect.bottom - windowRect.left,


It looks fine and sprites move perfectly when moving horizontally, but the issue still exists when they move up or down.

I think this may be about solved now though, I just want to try and get the window sized correctly so sprites are not stretched and at the same time have their movement appear glitch free.

### #1Interminable

Posted 02 August 2012 - 03:31 AM

I worked out I was not making proper use of the values AdjustWindowRect() was setting. So now my sprites can move horizontally across the screen in bordered mode and look fine, but there's a problem: Everything looks squashed, because it's adjusting the top by -30 pixels and the left by -8 (because of the title bar). Ideally I'd like to have the window sized so that stuff within it is not squashed, unfortunately if I do it:

windowRect.right - windowRect.left,
windowRect.bottom - windowRect.left,


It looks fine and sprites move perfectly when moving horizontally, but the issue exists when they move up or down.

I think this may be about solved now though, I just want to try and get the window sized correctly so sprites are not stretched and at the same time have their movement appear glitch free.

PARTNERS