obs-studio
obs-studio copied to clipboard
libobs: Also determine WinUI 3 Window
Description
Besides UWP applications, which means WinUI 2 applications that cannot be captured by BitBlt, WinUI 3 applications also cannot be captured by BitBlt. This commit adds a check for WinUI 3 applications.
Motivation and Context
Just as we cannot use Bitblt to capture the screen of UWP (WinUI 2) applications, WinUI 3 applications also have this problem. However, we have not made any special judgment on WinUI 3 at present.
How Has This Been Tested?
- Install WinUI 3 Gallery and WinUI 2 Gallery, which is, WinUI 3 applications and UWP (WinUI 2) applications.
- Use Window Capture to capture these two windows using Automatic.
- Specify the capture method to BitBlt and check the hint.
Both windows are captured by WGC correctly, and the hints are displayed correctly when selecting BitBlt.
Testing environment:
- i9-11900H
- RTX 3060 Laptop
- Windows 11 26120.961 (Insider Dev)
Types of changes
- Tweak (non-breaking change to improve existing functionality)
Checklist:
- [x] My code has been run through clang-format.
- [x] I have read the contributing document.
- [x] My code is not on the master branch.
- [x] The code has been tested.
- [x] All commit messages are properly formatted and commits squashed where appropriate.
- [x] I have included updates to all appropriate documentation.