From 67e9d105cb728530033c7d87c8fc80a2fab86245 Mon Sep 17 00:00:00 2001 From: ehofman Date: Sun, 16 Jan 2005 08:52:22 +0000 Subject: [PATCH] Use the double precission pow() function to get Solaris compiling. --- simgear/screen/texture.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/simgear/screen/texture.cxx b/simgear/screen/texture.cxx index ec2b2bfd..2544354e 100644 --- a/simgear/screen/texture.cxx +++ b/simgear/screen/texture.cxx @@ -809,7 +809,7 @@ SGTexture::make_monochrome(float contrast, GLubyte r, GLubyte g, GLubyte b) { if (contrast != 1.0) { float pixcol = -1.0 + (avg/128); - avg = 128 + int(128*powf(pixcol, contrast)); + avg = 128 + int(128*pow(pixcol, contrast)); } ap[0] = avg*r/255; @@ -837,7 +837,7 @@ SGTexture::make_grayscale(float contrast) { if (contrast != 1.0) { float pixcol = -1.0 + (avg/128); - avg = 128 + int(128*powf(pixcol, contrast)); + avg = 128 + int(128*pow(pixcol, contrast)); } int pos = (x + y*texture_width)*colors; -- 2.39.5