Skip to main content
GameDev.net gamedev.net
🔒 Locked

windowed mode

Started by blue-ice2002 Feb 18, 2005 at 12:30 PM 1 replies 400+ views
Original Post
blue-ice2002
blue-ice2002
hello i have tiles that are 64*32 but when i make the mode windowed,and make a smaller window than the screen,the sizes gets smaller,i mean they are automatically resized to fit in the window,but i want the real sizes i give? why does it happen?
DrunkenHyena
DrunkenHyena
Your backbuffer is stretch blitted to the window, so everything is scaled. You need to create your backbuffer in the size you want and if your window is resizable, handle resize messages and Reset your device to resize the back buffer.
Stay Casual,KenDrunken Hyena</FON
blue-ice2002
blue-ice2002


thanks,but when i change these parameters to the sizes that i gave when creating the window class ,nothing changes?

d3dpp.BackBufferWidth=824;
d3dpp.BackBufferWidth=730;

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.