ports/graphics/geomorph/files/extra-patch-src-hf-hf_calc.c
Pav Lucistnik 195e1f0a24 Geomorph is a height field generator and editor for the Linux
operating system.

A height field is a kind of topographic map.  It is a 2D projection
of a 3D landscape.

Geomorph generates square images and shows a 3D preview of the
resulting landscape.  The resulting 2D image can be processed with
a tool like Povray for rendering the landscape.

WWW: http://geomorph.sourceforge.net/

PR:		ports/94521
Submitted by:	Dmitry Marakasov <amdmi3@mail.ru>
2006-03-18 17:13:52 +00:00

11 lines
367 B
C

--- src/hf/hf_calc.c.orig Tue Nov 22 07:25:40 2005
+++ src/hf/hf_calc.c Mon Mar 6 13:08:02 2006
@@ -1298,6 +1298,8 @@
overflow);
}
+#define lround(x) (((x) - (gdouble)(long int)(x)) < 0.5 ? (x) : (x+1.0))
+
void hf_fast_rotate (hf_type *hf_in, hf_type *hf_out, gint hf_size, gint angle) {
// Rotation of a square HF, preview style, with aliasing
// "Wraps"