Skip to content

Commit

Permalink
codes changes, tries to locate problems of #4
Browse files Browse the repository at this point in the history
  • Loading branch information
soarqin committed Oct 28, 2021
1 parent b19fd48 commit e60569d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ static void initSokol() {

pass_action = sg_pass_action{
.colors = {
{.action = SG_ACTION_CLEAR, .value = {0, 0, 0, .5}}
{.action = SG_ACTION_CLEAR, .value = {0, 0, 0, 1}}
},
};

Expand Down Expand Up @@ -376,6 +376,8 @@ static void init() {
SetWindowLong(hwnd, GWL_STYLE, style);
SetWindowLong(hwnd, GWL_EXSTYLE, exStyle);
SetLayeredWindowAttributes(hwnd, 0, cfg->alpha, LWA_COLORKEY | LWA_ALPHA);
SetClassLongPtr(hwnd, GCLP_HBRBACKGROUND, (LONG)CreateSolidBrush(0));
InvalidateRect(hwnd, nullptr, TRUE);

static tray_menu menu[] = {
{.text = (char*)"Quit", .cb = quit_cb},
Expand Down

0 comments on commit e60569d

Please sign in to comment.