Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpc-hc/mpc-hc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUnderground78 <underground78@users.sourceforge.net>2011-08-09 02:22:25 +0400
committerUnderground78 <underground78@users.sourceforge.net>2011-08-09 02:22:25 +0400
commit7724b3eab28539cb823854639a601711b1ed3b41 (patch)
tree9758a359dfcc53fd8e0e74de521d55257406b496 /src/Subtitles
parentc924a9ad60d553ad3f825495de4d34ab84919ddf (diff)
Warning fixes:
- C4800: forcing value to bool 'true' or 'false'. - C4200: zero-sized array in struct/union. - double/float casts. Patch partially by XhmikosR. This commit fixes ticket #1625. git-svn-id: https://mpc-hc.svn.sourceforge.net/svnroot/mpc-hc/trunk@3618 10f7b99b-c216-0410-bff0-8a66a9350fd8
Diffstat (limited to 'src/Subtitles')
-rw-r--r--src/Subtitles/libssf/GlyphPath.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Subtitles/libssf/GlyphPath.cpp b/src/Subtitles/libssf/GlyphPath.cpp
index d4835ca33..1c08945de 100644
--- a/src/Subtitles/libssf/GlyphPath.cpp
+++ b/src/Subtitles/libssf/GlyphPath.cpp
@@ -125,10 +125,10 @@ namespace ssf
float angle_out = atan2((float)out.y, (float)out.x);
float angle_diff = angle_out - angle_in;
if(angle_diff < 0) {
- angle_diff += M_PI*2;
+ angle_diff += (float)M_PI*2;
}
if(angle_diff > M_PI) {
- angle_diff -= M_PI*2;
+ angle_diff -= (float)M_PI*2;
}
float scale = cos(angle_diff / 2);
@@ -157,7 +157,7 @@ namespace ssf
}
if(scale < 0.1) {
- scale = 0.1;
+ scale = 0.1f;
}
float angle = angle_in + angle_diff / 2 - rotate;