Skip to content

Commit

Permalink
Fix a UI glitch with the lossless alpha check box
Browse files Browse the repository at this point in the history
  • Loading branch information
0xC0000054 committed Oct 5, 2022
1 parent d465fc4 commit 0e1c28a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/win/UIWin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,10 @@ namespace
break;
case IDC_LOSSLESS_CHECK:
options.lossless = Button_GetCheck(controlHwnd) == BST_CHECKED;
EnableWindow(GetDlgItem(hDlg, IDC_LOSSLESS_ALPHA_CHECK), !options.lossless);
if (hasAlphaChannel)
{
EnableWindow(GetDlgItem(hDlg, IDC_LOSSLESS_ALPHA_CHECK), !options.lossless);
}
EnableLossyCompressionSettings(hDlg, !options.lossless);
break;
case IDC_LOSSLESS_ALPHA_CHECK:
Expand Down

0 comments on commit 0e1c28a

Please sign in to comment.