diff --git a/aegilib/src/formats/format_ass.cpp b/aegilib/src/formats/format_ass.cpp index 604b639ab..cecd766b8 100644 --- a/aegilib/src/formats/format_ass.cpp +++ b/aegilib/src/formats/format_ass.cpp @@ -343,7 +343,7 @@ void FormatHandlerASS::WriteSection(TextFileWriter &writer,SectionPtr section) size_t props = section->GetPropertyCount(); for (size_t i=0;iGetPropertyName(i); - writer.WriteLineToFile(propName + _T(": ") + section->GetProperty(name)); + writer.WriteLineToFile(propName + _T(": ") + section->GetProperty(propName)); } // Write contents diff --git a/aegisub/gl_wrap.cpp b/aegisub/gl_wrap.cpp index 7c3e36b37..ba52eea3d 100644 --- a/aegisub/gl_wrap.cpp +++ b/aegisub/gl_wrap.cpp @@ -100,7 +100,7 @@ void OpenGLWrapper::DrawLine(float x1,float y1,float x2,float y2) { // Draw line void OpenGLWrapper::DrawDashedLine(float x1,float y1,float x2,float y2,float step) { float dist = sqrt((x2-x1)*(x2-x1) + (y2-y1)*(y2-y1)); - int steps = (dist-20)/step; + int steps = (int)((dist-20)/step); double stepx = double(x2-x1)/steps; double stepy = double(y2-y1)/steps; for (int i=0;i &points,std::vector &pointC Vector2D p4 = cur->p4; // Find number of steps - int len = (p2-p1).Len() + (p3-p2).Len() + (p4-p3).Len(); + int len = (int)((p2-p1).Len() + (p3-p2).Len() + (p4-p3).Len()); int steps = len/8; // Render curve diff --git a/build/aegisub_vs2005/aegisub_vs2005.vcproj b/build/aegisub_vs2005/aegisub_vs2005.vcproj index a4ee4ee39..296902fa4 100644 --- a/build/aegisub_vs2005/aegisub_vs2005.vcproj +++ b/build/aegisub_vs2005/aegisub_vs2005.vcproj @@ -744,62 +744,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -1203,6 +1147,62 @@ > + + + + + + + + + + + + + + + + + + + + + + + + + + + +