diff options
author | Arisotura <thetotalworm@gmail.com> | 2020-05-10 23:30:55 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-10 23:30:55 +0200 |
commit | a7a286371a31f832234a8a241c216180b3fd6e3d (patch) | |
tree | c1a1f6f4728a2bce5bbc698e969150a611572553 /src/libui_sdl/OSD.cpp | |
parent | bc9c989f61b0f7e346d7bd688b4af8480bd3264b (diff) | |
parent | 675b3f882ff1c0cc66a34e571a64e028f269f4bc (diff) |
Merge pull request #622 from nadiaholmquist/fix/clang-build
Fix building with Clang
Diffstat (limited to 'src/libui_sdl/OSD.cpp')
-rw-r--r-- | src/libui_sdl/OSD.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libui_sdl/OSD.cpp b/src/libui_sdl/OSD.cpp index a01e39b..02418cc 100644 --- a/src/libui_sdl/OSD.cpp +++ b/src/libui_sdl/OSD.cpp @@ -419,8 +419,8 @@ void Update(bool opengl, uiAreaDrawParams* params) item.DrawBitmapLoaded = true; } - uiRect rc_src = {0, 0, item.Width, item.Height}; - uiRect rc_dst = {kOSDMargin, y, item.Width, item.Height}; + uiRect rc_src = {0, 0, (int) item.Width, (int) item.Height}; + uiRect rc_dst = {kOSDMargin, (int) y, (int) item.Width, (int) item.Height}; uiDrawBitmapDraw(params->Context, item.DrawBitmap, &rc_src, &rc_dst, 0); } |