Skip to content

Commit b75ee71

Browse files
committed
(#8) Added explicit cast
1 parent 2e85850 commit b75ee71

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/highlightwindow_win32.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ void showHighlightWindow(int32_t x, int32_t y, int32_t width, int32_t height, lo
3838
NULL
3939
);
4040

41-
SetLayeredWindowAttributes(hwnd, 0, 255 * opacity, LWA_ALPHA);
41+
SetLayeredWindowAttributes(hwnd, 0, (BYTE)(255 * opacity), LWA_ALPHA);
4242

4343
if (hwnd == NULL) {
4444
return;

0 commit comments

Comments
 (0)