Skip to content

Commit

Permalink
fix: get_opacity
Browse files Browse the repository at this point in the history
  • Loading branch information
killcerr authored Jun 29, 2024
1 parent 81f571c commit 043be5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ BYTE get_opacity(HWND window) {
COLORREF key;
BYTE alpha;
DWORD falgs;
GetLayeredWindowAttributes(window, &key, &alpha, &falgs);
if (GetLayeredWindowAttributes(window, &key, &alpha, &falgs) == 0) return 255;
return alpha;
}

Expand Down

0 comments on commit 043be5b

Please sign in to comment.