Commit fdd20200 authored by Claudio Valerio's avatar Claudio Valerio

Updated windows freetype and xpdf build instruction

parent bddf7079
...@@ -6,6 +6,10 @@ instructions ...@@ -6,6 +6,10 @@ instructions
- Download freetype (http://www.freetype.org/download.html#stable) - Download freetype (http://www.freetype.org/download.html#stable)
- Decompress freetype.XXX.tar.gz - Decompress freetype.XXX.tar.gz
WIN
- qmake
- nmake
MAC MAC
- qmake freetype.pro -spec macx-g++ - qmake freetype.pro -spec macx-g++
- make - make
......
...@@ -7,9 +7,10 @@ instructions for version 3.02 ...@@ -7,9 +7,10 @@ instructions for version 3.02
- Decompress xpdf-3.02.xx.tar.gz - Decompress xpdf-3.02.xx.tar.gz
Windows: Windows:
- using cywin run ./configure - copy xpdf-3.02/aconf-win32.h into xpdf-3.02/aconf.h
- run qmake xpdf.pro -r -spec win32-g++ - edit xpdf-3.02/aconf.h, add this line "#undef UNICODE"
- run make - qmake
- nmake
OSX: OSX:
- cd xpdf-3.02 - cd xpdf-3.02
......
...@@ -528,7 +528,7 @@ void GString::formatDouble(double x, char *buf, int bufSize, int prec, ...@@ -528,7 +528,7 @@ void GString::formatDouble(double x, char *buf, int bufSize, int prec,
if ((neg = x < 0)) { if ((neg = x < 0)) {
x = -x; x = -x;
} }
x = floor(x * pow(10, prec) + 0.5); x = floor(x * pow(10.0, prec) + 0.5);
i = bufSize; i = bufSize;
started = !trim; started = !trim;
for (j = 0; j < prec && i > 1; ++j) { for (j = 0; j < prec && i > 1; ++j) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment