r14955 by fschmid - Optimized encoding of tensor patch data.
scribus-commit
scribus-commit at lists.scribus.net
Sat Apr 10 14:10:19 CEST 2010
Revision: 14955
Author: fschmid
Date: 2010-04-10T12:03:12.431930Z
Commit message: Optimized encoding of tensor patch data.
Changeset:
M /trunk/Scribus/scribus/pdflib_core.cpp
Diffs:
Index: scribus/pdflib_core.cpp
===================================================================
--- scribus/pdflib_core.cpp (revision 14954)
+++ scribus/pdflib_core.cpp (revision 14955)
@@ -6328,7 +6328,7 @@
quint32 PDFLibCore::encode32dVal(double val)
{
- quint32 res = static_cast<quint32>(((val - (-40000.0)) / (40000.0 - (-40000.0))) * 0xFFFFFFFF);
+ quint32 res = static_cast<quint32>(((val - (-40000.0)) / 80000.0) * 0xFFFFFFFF);
return res;
}
More information about the scribus-commit
mailing list