From 87a8b791207ecd94e75ea45b9010e5c155679b05 Mon Sep 17 00:00:00 2001 From: Lierrmm Date: Fri, 10 Feb 2023 15:04:46 +0000 Subject: [PATCH] feat: add windows 11 style borders to splash screen Based on boiii - https://github.com/momo5502/boiii/blob/main/src/client/component/splash.cpp --- src/client/component/splash.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/client/component/splash.cpp b/src/client/component/splash.cpp index a0aa636f..c03e99bc 100644 --- a/src/client/component/splash.cpp +++ b/src/client/component/splash.cpp @@ -128,6 +128,8 @@ namespace splash SetWindowPos(this->window_, nullptr, rect.left, rect.top, rect.right - rect.left, rect.bottom - rect.top, SWP_NOZORDER); + SetWindowRgn(this->window_, CreateRoundRectRgn(0, 0, rect.right - rect.left, rect.bottom - rect.top, 15, 15), TRUE); + ShowWindow(this->window_, SW_SHOW); UpdateWindow(this->window_); }