Skip to content

Commit

Permalink
fixed warning
Browse files Browse the repository at this point in the history
  • Loading branch information
ncannasse committed Feb 6, 2019
1 parent 0814eb7 commit 4a4cfe9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/sdl/sdl.c
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,7 @@ HL_PRIM double HL_NAME(win_get_opacity)(SDL_Window *win) {
}

HL_PRIM bool HL_NAME(win_set_opacity)(SDL_Window *win, double opacity) {
return SDL_SetWindowOpacity(win, opacity) == 0;
return SDL_SetWindowOpacity(win, (float)opacity) == 0;
}

HL_PRIM void HL_NAME(win_resize)(SDL_Window *win, int mode) {
Expand Down

0 comments on commit 4a4cfe9

Please sign in to comment.