git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3675
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
#include "wx/dcclient.h"
#include "wx/dcmemory.h"
#include "wx/image.h"
#include "wx/dcclient.h"
#include "wx/dcmemory.h"
#include "wx/image.h"
+#include <math.h> // for floating-point functions
#include "gdk/gdk.h"
#include "gtk/gtk.h"
#include "gdk/gdk.h"
#include "gtk/gtk.h"
{
// X doesn't allow different width in x and y and so we take
// the average
{
// X doesn't allow different width in x and y and so we take
// the average
- double w = 0.5 + (abs((double) XLOG2DEVREL(width)) + abs((double) YL2DEVREL(width))) / 2.0;
+ double w = 0.5 +
+ ( fabs((double) XLOG2DEVREL(width)) +
+ fabs((double) YLOG2DEVREL(width)) ) / 2.0;
#include "wx/dcclient.h"
#include "wx/dcmemory.h"
#include "wx/image.h"
#include "wx/dcclient.h"
#include "wx/dcmemory.h"
#include "wx/image.h"
+#include <math.h> // for floating-point functions
#include "gdk/gdk.h"
#include "gtk/gtk.h"
#include "gdk/gdk.h"
#include "gtk/gtk.h"
{
// X doesn't allow different width in x and y and so we take
// the average
{
// X doesn't allow different width in x and y and so we take
// the average
- double w = 0.5 + (abs((double) XLOG2DEVREL(width)) + abs((double) YL2DEVREL(width))) / 2.0;
+ double w = 0.5 +
+ ( fabs((double) XLOG2DEVREL(width)) +
+ fabs((double) YLOG2DEVREL(width)) ) / 2.0;