mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-09-24 23:31:36 +08:00
libobs-d3d11: Use get_win_ver (not GetVersionEx)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user