1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-26 05:02:18 +00:00
freebsd-ports/audio/clementine-player/files/patch-3rdparty_libprojectm_Renderer_VideoEcho.cpp
Sean Bruno bb8cd08fc9 audio/clementine-player: Jump to qt5
- regenerate some of the patch files for this new branch
- cleanup and try to adjust Makefile

audio/libechonest: Jump to qt5
- clementine-player is the only port that I could find that has an explicit
  dependency on libechonest.  Commit this update so there is no window for
  build failures.

Test built on 13-CURRENT, 12-STABLE, 11-STABLE across i386 and amd64.
Run-time tested on 13-CURRENT, amd64.

PR:		234534 226529
Submitted by:	greg@unrelenting.technology
2019-01-03 21:43:57 +00:00

18 lines
795 B
C++

--- 3rdparty/libprojectm/Renderer/VideoEcho.cpp.orig 2018-12-05 17:16:34 UTC
+++ 3rdparty/libprojectm/Renderer/VideoEcho.cpp
@@ -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);