summaryrefslogtreecommitdiff
path: root/splash/SplashTypes.h
diff options
context:
space:
mode:
authorAlbert Astals Cid <aacid@kde.org>2010-01-12 22:55:06 +0000
committerAlbert Astals Cid <aacid@kde.org>2010-01-12 22:55:06 +0000
commit9c0b20ab8c104c2f5398a5a3b8409ca554f5fa39 (patch)
tree2bd1d0f12c25fd980109ed570c988a281c58b2a6 /splash/SplashTypes.h
parent30e5f76e372114339fa1d37c335e6bbade8b6d8a (diff)
Add the possibility of using float for splash variables instead of double
Based on a patch by Marius Vollmer marius.vollmer@nokia.com See bug 25578 for more info
Diffstat (limited to 'splash/SplashTypes.h')
-rw-r--r--splash/SplashTypes.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/splash/SplashTypes.h b/splash/SplashTypes.h
index b623fed7..993dd468 100644
--- a/splash/SplashTypes.h
+++ b/splash/SplashTypes.h
@@ -11,7 +11,7 @@
// All changes made under the Poppler project to this file are licensed
// under GPL version 2 or later
//
-// Copyright (C) 2006 Albert Astals Cid <aacid@kde.org>
+// Copyright (C) 2006, 2010 Albert Astals Cid <aacid@kde.org>
// Copyright (C) 2008 Tomas Are Haavet <tomasare@gmail.com>
// Copyright (C) 2009 Thomas Freitag <Thomas.Freitag@alfa.de>
// Copyright (C) 2009 Stefan Thomas <thomas@eload24.com>
@@ -33,6 +33,8 @@
#if USE_FIXEDPOINT
#include "goo/FixedPoint.h"
typedef FixedPoint SplashCoord;
+#elif USE_FLOAT
+typedef float SplashCoord;
#else
typedef double SplashCoord;
#endif