Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Background Transparency for moonlight #5

Open
NighLow opened this issue May 15, 2024 · 1 comment
Open

Background Transparency for moonlight #5

NighLow opened this issue May 15, 2024 · 1 comment

Comments

@NighLow
Copy link

NighLow commented May 15, 2024

Not really an issue, but I would like to request background transparency for moonlight streaming for users who do not have a fuser.

@WyvrnRes
Copy link

Starting from line 60 in Main.cpp, replace the code with this:

// Set the window to LAYERED (for transparency)
hWnd = CreateWindowEx(WS_EX_LAYERED | WS_EX_APPWINDOW, wc.lpszClassName, L"GUI Framework",
    WS_POPUP,
    0, 0, screenWidth, screenHeight, NULL, NULL, hInstance, NULL);

if (!hWnd)
    return -1;

// Make the black window background transparent
SetLayeredWindowAttributes(hWnd, RGB(0, 0, 0), 0, LWA_COLORKEY);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants