/*
* Geeqie
* (C) 2006 John Ellis
- * Copyright (C) 2008 The Geeqie Team
+ * Copyright (C) 2008 - 2012 The Geeqie Team
*
* Author: John Ellis
*
group->y += y;
}
-#define PI 3.14159
+#define PI 3.14159265
static void pan_flower_position(FlowerGroup *group, FlowerGroup *parent,
gint *result_x, gint *result_y)
a = 2*PI * group->diameter / parent->circumference;
- x = (gint)((double)radius * cos(parent->angle + a / 2));
- y = (gint)((double)radius * sin(parent->angle + a / 2));
+ x = (gint)((gdouble)radius * cos(parent->angle + a / 2));
+ y = (gint)((gdouble)radius * sin(parent->angle + a / 2));
parent->angle += a;
y += pi_box->height;
- pi_box = pan_item_box_new(pw, dir_fd,
+ pi_box = pan_item_box_new(pw, file_data_ref(dir_fd),
x, y,
PAN_BOX_BORDER * 2, PAN_BOX_BORDER * 2,
PAN_BOX_OUTLINE_THICKNESS,
group->width = pi_box->width;
group->height = pi_box->y + pi_box->height;
- group->diameter = (int)sqrt(group->width * group->width + group->height * group->height);
+ group->diameter = (gint)sqrt(group->width * group->width + group->height * group->height);
group->children = NULL;
*y += pi_box->height;
- pi_box = pan_item_box_new(pw, dir_fd,
+ pi_box = pan_item_box_new(pw, file_data_ref(dir_fd),
*x, *y,
PAN_BOX_BORDER, PAN_BOX_BORDER,
PAN_BOX_OUTLINE_THICKNESS,
if (width) *width = w;
if (height) *height = h;
}
+/* vim: set shiftwidth=8 softtabstop=0 cindent cinoptions={1s: */