Hello,
I’ve changed WINVER and _WIN32_WINNT in Engine/Source/Programs/UnrealBuildTool/Windows/UEBuildWindows.cs as I need some features from ms media foundation that are only (Camera input)
That exposed below broken code in WindowsApplication.cpp. It should be:
CalculatedPopUpPosition->Set( WindowPos.left, WindowPos.top)
bool FWindowsApplication::TryCalculatePopupWindowPosition( const FPlatformRect& InAnchor, const
FVector2D& InSize,
const EPopUpOrientation::Type Orientation,
/*OUT*/ FVector2D* const CalculatedPopUpPosition ) const
{
#if(_WIN32_WINNT >= 0x0601)
POINT AnchorPoint = { FMath::TruncToInt(InAnchor.Left), FMath::TruncToInt(InAnchor.Top) };
SIZE WindowSize = { FMath::TruncToInt(InSize.X), FMath::TruncToInt(InSize.Y) };
RECT WindowPos;
::CalculatePopupWindowPosition( &AnchorPoint, &WindowSize, TPM_CENTERALIGN | TPM_VCENTERALIGN, NULL, &WindowPos );
CalculatedPopUpPosition->Set( WindowPos.left, WindowPos.right );
return true;
#else
return false;
#endif
}