Advertisement Jump to content
Sign in to follow this  
fluke

suface/texture stretching in windowed mode RESOLVED

This topic is 4910 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

in dx9, if i switch from fullscreen to windowed and then call SetWindowPos or MoveWindow afterwards, my entire client area gets stretched and is obscured by the bottom of the window frame... here's a quick rundown of the function calls i make and the order i call them in: SetWindowLong(...);//returns OK! SetWindowPos(...);//returns OK, but doesn't set correct dimensions!!! SetMenu(...);returns OK, definitly the culprit!!!!!! MoveWindow(...);//returns OK, but doesn't set correct dimensions!!! DX9ChangeFromFullscreenToWindowed(); SetWindowPos(...);//returns OK! try again and now it works, but with a vertically stretched client area... :( RESOLVED: i just needed to put MoveWindow() immediatley after setting my D3DPRESENT_PARAMETERS, but before calling CreateDevice... [Edited by - fluke on August 13, 2005 10:49:32 PM]

Share this post


Link to post
Share on other sites
Advertisement
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!