Have only one copy of ROUND macro and cast to int explicitly

This commit is contained in:
Larsson@.(none) 2010-02-26 08:52:38 +01:00 committed by unknown
parent 026463bd1c
commit 15f932d3ff
2 changed files with 1 additions and 3 deletions

View File

@ -26,8 +26,6 @@
#include "lines.h"
#include "pixman_utils.h"
#define ROUND(_x) floor((_x) + 0.5)
struct CairoCanvas {
CanvasBase base;
uint32_t *private_data;

View File

@ -76,7 +76,7 @@
#define MAX(x, y) (((x) >= (y)) ? (x) : (y))
#endif
#define ROUND(_x) floor((_x) + 0.5)
#define ROUND(_x) ((int)floor((_x) + 0.5))
#ifdef WIN32
typedef struct __declspec (align(1)) LZImage {