Quantcast
Channel: GameDev.net
Viewing all articles
Browse latest Browse all 17825

Enumoutputs do not work in Win10

$
0
0
for (Foundation::UInt32 i = 0; ; i++) { hr = pAdapterInfo->pDXGIAdapter->EnumOutputs(i, &pDXGIOutput); if (SUCCEEDED(hr)) { //EnumDisplayModes(pOutputInfo) } SAFE_RELEASE(pDXGIOutput); } else { //None output will be found if (i==0) { //error("EnumOupput error i:%u, error %s", i,str); } break; } } return true; } Hi , guys! I used the upper code to get all resolutions supported by video card which will be selected by players. But the code works perfectly in win7 , but it couldn't find any output in win10, I read a lot of papers ,but can not find why. If anyone else has encountered this problem before ,please gives me some insight! Thanks a lot!

Viewing all articles
Browse latest Browse all 17825

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>