From f79abf832dd7794163cb6bda9605a1fe25447762 Mon Sep 17 00:00:00 2001 From: Rogier Date: Mon, 14 Apr 2014 01:26:48 +0200 Subject: [PATCH] Fix compilation problem --- PixelCacheEntry.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PixelCacheEntry.h b/PixelCacheEntry.h index de3e66e..f8dbaaf 100644 --- a/PixelCacheEntry.h +++ b/PixelCacheEntry.h @@ -53,12 +53,12 @@ inline PixelCacheEntry::PixelCacheEntry(const ColorEntry &entry, double height) { } -inline Color PixelCacheEntry::to_color(void) +inline Color PixelCacheEntry::to_color(void) const { return Color(int(r*255+0.5),int(g*255+0.5),int(b*255+0.5),int(a*255+0.5)); } -inline ColorEntry PixelCacheEntry::to_colorEntry(void) +inline ColorEntry PixelCacheEntry::to_colorEntry(void) const { return ColorEntry(int(r*255+0.5),int(g*255+0.5),int(b*255+0.5),int(a*255+0.5),int(t*255+0.5)); }