Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions res/resource.rc
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
//

VS_VERSION_INFO VERSIONINFO
FILEVERSION 1,1,0,0
PRODUCTVERSION 1,1,0,0
FILEVERSION 1,1,1,0
PRODUCTVERSION 1,1,1,0
FILEFLAGSMASK 0x3fL
#ifdef _DEBUG
FILEFLAGS 0x1L
Expand All @@ -79,12 +79,12 @@ BEGIN
BEGIN
VALUE "CompanyName", "Tosox"
VALUE "FileDescription", "Borderless fullscreen support"
VALUE "FileVersion", "1.1.0"
VALUE "FileVersion", "1.1.1"
VALUE "InternalName", "BorderlessFullscreen"
VALUE "LegalCopyright", "Copyright © 2026"
VALUE "OriginalFilename", "BorderlessFullscreen.dll"
VALUE "ProductName", "BorderlessFullscreen"
VALUE "ProductVersion", "1.1.0"
VALUE "ProductVersion", "1.1.1"
END
END
BLOCK "VarFileInfo"
Expand Down
8 changes: 5 additions & 3 deletions src/dllmain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

#include <algorithm>
#include <cstdlib>
#include <thread>

namespace {
bool HasLaunchParameter(const wchar_t* parameter) {
Expand Down Expand Up @@ -210,7 +211,7 @@ namespace {
if ((targetWindow == nullptr) && (params != nullptr)) {
targetWindow = params->hDeviceWindow;
}
ApplyBorderlessWindow(targetWindow);
std::thread([targetWindow]() { ApplyBorderlessWindow(targetWindow); }).detach();
}
}

Expand All @@ -222,7 +223,8 @@ namespace {
void OnAfterDXGICreateSwapChain(IDXGIFactory*, IUnknown*, DXGI_SWAP_CHAIN_DESC* description,
HRESULT result, IDXGISwapChain*) {
if (SUCCEEDED(result) && (description != nullptr)) {
ApplyBorderlessWindow(description->OutputWindow);
HWND targetWindow = description->OutputWindow;
std::thread([targetWindow]() { ApplyBorderlessWindow(targetWindow); }).detach();
}
}

Expand All @@ -245,7 +247,7 @@ namespace {
.size = sizeof(CoHModSDKModuleV1),
.modId = "de.tosox.borderlessfullscreen",
.name = "Borderless Fullscreen",
.version = "1.1.0",
.version = "1.1.1",
.author = "Tosox",
.OnInitialize = &OnInitialize,
.OnShutdown = &OnShutdown,
Expand Down
Loading