Uniformly Resizing a Window in XNA

前端 未结 2 1084
夕颜
夕颜 2021-01-06 09:05

Well, I am trying to give my game\'s window the ability to resize uniformly. I have checked everywhere but I can\'t seem to find anything about it.

Any ideas?

2条回答
  •  挽巷
    挽巷 (楼主)
    2021-01-06 09:45

    My guess is that this code won't work because it will keep calling itself, because the ClientSizeChanged event will fire the ClientSizeChanged event.

    Maybe you need to check and see if the window is already in the correct aspect ratio, and not change it further.

提交回复
热议问题