1
0
mirror of https://github.com/clementine-player/Clementine synced 2024-12-18 04:19:55 +01:00

More mingw fixes

This commit is contained in:
David Sansome 2010-06-07 11:47:35 +00:00
parent d34283a113
commit cdb8dd8dd5
2 changed files with 5 additions and 2 deletions

View File

@ -3,6 +3,7 @@
#include <math.h>
#include <cassert>
#include <iostream>
#include <cmath>
#include "Renderer/BeatDetect.hpp"
PresetInputs::PresetInputs() : PipelineContext()
@ -195,7 +196,7 @@ void PresetOutputs::PerPixelMath(const PipelineContext &context)
{
for (y = 0; y < gy; y++)
{
fZoom2 = powf(this->zoom_mesh[x][y], powf(this->zoomexp_mesh[x][y],
fZoom2 = std::pow(this->zoom_mesh[x][y], std::pow(this->zoomexp_mesh[x][y],
rad_mesh[x][y] * 2.0f - 1.0f));
fZoom2Inv = 1.0f / fZoom2;
this->x_mesh[x][y] = this->orig_x[x][y] * 0.5f * fZoom2Inv + 0.5f;

View File

@ -16,6 +16,8 @@
#include <OpenGL/gl.h>
#endif
#include <cmath>
#include "MilkdropWaveform.hpp"
#include "math.h"
#include "BeatDetect.hpp"
@ -124,7 +126,7 @@ void MilkdropWaveform::MaximizeColors(RenderContext &context)
case 2048: temp_a *= 0.33f; break;
}
temp_a*=1.3f;
temp_a*=powf(context.beatDetect->treb , 2.0f);
temp_a*=std::pow(context.beatDetect->treb , 2.0f);
}
if (maximizeColors==true)