#include "wx/gtk/win_gtk.h"
-#include <math.h> // for floating-point functions
+#include "wx/math.h" // for floating-point functions
#include <gdk/gdk.h>
#include <gdk/gdkx.h>
int i_angle = (int) angle;
i_angle = i_angle % 360;
+ if (i_angle < 0)
+ i_angle += 360;
int xoffset = 0;
if ((i_angle >= 90.0) && (i_angle < 270.0))
xoffset = image.GetWidth();