mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice-common
synced 2026-01-01 12:42:00 +00:00
Have only one copy of ROUND macro and cast to int explicitly
This commit is contained in:
parent
026463bd1c
commit
15f932d3ff
@ -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;
|
||||
|
||||
@ -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 {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user