From 92e55a7773cd434a6e19e7bd56fdb094b7fcc597 Mon Sep 17 00:00:00 2001 From: alepulver Date: Fri, 11 Jan 2008 02:07:43 +0000 Subject: - Fix local patch that was producing a crash. - Bump PORTREVISION. --- games/freeorion/Makefile | 1 + games/freeorion/files/patch-UI__TechTreeWnd.cpp | 21 +++++++++++---------- 2 files changed, 12 insertions(+), 10 deletions(-) (limited to 'games') diff --git a/games/freeorion/Makefile b/games/freeorion/Makefile index 49f2bd8..afcc53d 100644 --- a/games/freeorion/Makefile +++ b/games/freeorion/Makefile @@ -7,6 +7,7 @@ PORTNAME= freeorion PORTVERSION= 0.3.1.20071206 +PORTREVISION= 1 CATEGORIES= games MASTER_SITES= ftp://ftp.alepulver.com.ar/distfiles/ diff --git a/games/freeorion/files/patch-UI__TechTreeWnd.cpp b/games/freeorion/files/patch-UI__TechTreeWnd.cpp index 6013690..69f9fb8 100644 --- a/games/freeorion/files/patch-UI__TechTreeWnd.cpp +++ b/games/freeorion/files/patch-UI__TechTreeWnd.cpp @@ -1,13 +1,14 @@ --- ./UI/TechTreeWnd.cpp.orig Fri Aug 10 21:45:52 2007 -+++ ./UI/TechTreeWnd.cpp Sat Sep 8 15:48:32 2007 -@@ -55,6 +55,10 @@ - const double MIN_SCALE = 0.1073741824; // = 1.0/(1.25)^10 - const double MAX_SCALE = 1.0; ++++ ./UI/TechTreeWnd.cpp Thu Jan 10 23:14:08 2008 +@@ -20,6 +20,11 @@ + #include + #include -+ const double PI = 3.141594; ++#define PI M_PI + -+ double PS2INCH(double x) { return PS2INCH(x); } -+ - pointf Bezier(pointf* patch, double t) - { - pointf temp[6][6]; ++#define POINTS_PER_INCH 72 ++#define POINTS(f_inch) (ROUND((f_inch)*POINTS_PER_INCH)) ++#define PS2INCH(ps) ((ps)/(double)POINTS_PER_INCH) + + namespace { + // command-line options -- cgit v1.1