mirror of
https://github.com/clementine-player/Clementine
synced 2025-01-03 13:30:26 +01:00
Fix narrowing issues preventing MacOS build.
This commit is contained in:
parent
58569d9d0d
commit
823aed98a1
8
3rdparty/libprojectm/Renderer/VideoEcho.cpp
vendored
8
3rdparty/libprojectm/Renderer/VideoEcho.cpp
vendored
@ -77,10 +77,10 @@ void VideoEcho::Draw(RenderContext &context)
|
||||
default: flipx=1;flipy=1; break;
|
||||
}
|
||||
|
||||
float pointsFlip[4][2] = {{-0.5*flipx, -0.5*flipy},
|
||||
{-0.5*flipx, 0.5*flipy},
|
||||
{ 0.5*flipx, 0.5*flipy},
|
||||
{ 0.5*flipx, -0.5*flipy}};
|
||||
float pointsFlip[4][2] = {{static_cast<float>(-0.5*flipx), static_cast<float>(-0.5*flipy)},
|
||||
{static_cast<float>(-0.5*flipx), static_cast<float>(0.5*flipy)},
|
||||
{ static_cast<float>(0.5*flipx), static_cast<float>(0.5*flipy)},
|
||||
{ static_cast<float>(0.5*flipx), static_cast<float>(-0.5*flipy)}};
|
||||
|
||||
glVertexPointer(2,GL_FLOAT,0,pointsFlip);
|
||||
glDrawArrays(GL_TRIANGLE_FAN,0,4);
|
||||
|
Loading…
Reference in New Issue
Block a user