From 6a74e7212bfae4cc3d08b56aabbda4baf8a79986 Mon Sep 17 00:00:00 2001 From: psperl Date: Wed, 13 Jun 2007 03:04:31 +0000 Subject: [PATCH] PJS: WTF! darken center casting error is suprisingly stupid git-svn-id: https://projectm.svn.sourceforge.net/svnroot/projectm/trunk@160 6778bc44-b910-0410-a7a0-be141de4315d --- src/projectM-engine/projectM.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/projectM-engine/projectM.cpp b/src/projectM-engine/projectM.cpp index 948e63dfb..db9f0565d 100755 --- a/src/projectM-engine/projectM.cpp +++ b/src/projectM-engine/projectM.cpp @@ -979,7 +979,7 @@ void projectM::draw_custom_waves() { void projectM::darken_center() { - int unit=0.05f; + float unit=0.05f; glMatrixMode(GL_MODELVIEW); glPushMatrix(); @@ -1801,7 +1801,7 @@ void projectM::draw_title() { // glScalef(this->vw*.015,this->vh*.025,0); glRasterPos2f(0.01, 0.05); - title_font->FaceSize( 20*(this->vh/512.0)); + title_font->FaceSize( (unsigned)(20*(this->vh/512.0))); if ( this->title != NULL ) { title_font->Render(this->title ); @@ -1825,9 +1825,9 @@ void projectM::draw_preset() { glRasterPos2f(0.01, 0.01); - title_font->FaceSize(12*(this->vh/512.0)); + title_font->FaceSize((unsigned)(12*(this->vh/512.0))); if(this->noSwitch) title_font->Render("[LOCKED] " ); - title_font->FaceSize(20*(this->vh/512.0)); + title_font->FaceSize((unsigned)(20*(this->vh/512.0))); title_font->Render(this->presetName ); @@ -1848,7 +1848,7 @@ void projectM::draw_help( ) { //glScalef(this->vw*.02,this->vh*.02 ,0); - title_font->FaceSize( 18*(this->vh/512.0)); + title_font->FaceSize((unsigned)( 18*(this->vh/512.0))); glRasterPos2f(0.01, -0.05); title_font->Render("Help"); @@ -1912,7 +1912,7 @@ sprintf( buffer, " (%f)", this->aspect); glRasterPos2f(0, -.09+offset); - other_font->FaceSize(18*(this->vh/512.0)); + other_font->FaceSize((unsigned)(18*(this->vh/512.0))); sprintf( buffer, " texsize: %d", this->renderTarget->texsize); other_font->Render(buffer); @@ -1946,7 +1946,7 @@ void projectM::draw_fps( float realfps ) { glPushMatrix(); glTranslatef(0.01,1, 0); glRasterPos2f(0, -0.05); - title_font->FaceSize(20*(this->vh/512.0)); + title_font->FaceSize((unsigned)(20*(this->vh/512.0))); title_font->Render(bufferfps); glPopMatrix();