Skip to content

Commit

Permalink
Fix inversion
Browse files Browse the repository at this point in the history
  • Loading branch information
fuzun committed Aug 31, 2019
1 parent 50d28f9 commit 833bc63
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 @@ -164,7 +164,7 @@ int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,
frameVisible = true;

// Window transparency: 0 is invisible, 255 is opaque
SetLayeredWindowAttributes(hwnd, 0, frameVisible * 255, LWA_ALPHA);
SetLayeredWindowAttributes(hwnd, 0, (frameVisible ? 0 : 1) * 255, LWA_ALPHA);
RedrawWindow(hwnd, NULL, NULL, RDW_INVALIDATE);

while (PeekMessage(&Msg, NULL, 0, 0, PM_REMOVE) > 0) {
Expand Down

0 comments on commit 833bc63

Please sign in to comment.