mirror of
https://github.com/Blinue/Magpie.git
synced 2026-06-24 02:04:10 +00:00
refactor: 将禁用窗口大小调整和窗口圆角的职能移到 FrameSourceBase 中以简化 App::Run
This commit is contained in:
parent
e2480576f7
commit
afc60e59f6
12 changed files with 136 additions and 120 deletions
|
|
@ -16,6 +16,11 @@ using namespace Windows::Foundation::Metadata;
|
|||
extern std::shared_ptr<spdlog::logger> logger;
|
||||
|
||||
bool GraphicsCaptureFrameSource::Initialize() {
|
||||
if (!FrameSourceBase::Initialize()) {
|
||||
SPDLOG_LOGGER_ERROR(logger, "初始化 FrameSourceBase 失败");
|
||||
return false;
|
||||
}
|
||||
|
||||
App::GetInstance().SetErrorMsg(ErrorMessages::FAILED_TO_CAPTURE);
|
||||
|
||||
// 只在 Win10 1903 及更新版本中可用
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue