提交 278fd03a 编写于 作者: J jp9000

libobs-d3d11: Use get_win_ver (not GetVersionEx)

上级 0fb79a47
......@@ -18,6 +18,7 @@
#pragma once
#include <util/AlignedNew.hpp>
#include <util/windows/win-version.h>
#include <vector>
#include <string>
......@@ -49,11 +50,10 @@ using namespace std;
static inline uint32_t GetWinVer()
{
OSVERSIONINFO ovi;
ovi.dwOSVersionInfoSize = sizeof(ovi);
GetVersionEx(&ovi);
struct win_version_info ver;
get_win_ver(&ver);
return (ovi.dwMajorVersion << 8) | (ovi.dwMinorVersion);
return (ver.major << 8) | ver.minor;
}
static inline DXGI_FORMAT ConvertGSTextureFormat(gs_color_format format)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册