[gnome-screensaver] Add parentheses to the floor macro to clean screen dirt
- From: Ray Strode <halfline src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gnome-screensaver] Add parentheses to the floor macro to clean screen dirt
- Date: Fri, 12 Feb 2010 20:04:22 +0000 (UTC)
commit 8d8893656081cf1784e71bab0be93bac5f50aa66
Author: Ray Strode <rstrode redhat com>
Date: Fri Feb 12 15:03:52 2010 -0500
Add parentheses to the floor macro to clean screen dirt
savers/floaters.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/savers/floaters.c b/savers/floaters.c
index 2d26e27..9587357 100644
--- a/savers/floaters.c
+++ b/savers/floaters.c
@@ -42,7 +42,7 @@
#include "gs-theme-window.h"
#ifndef trunc
-#define trunc(x) ((x > 0.0) ? floor(x) : -floor(-x))
+#define trunc(x) (((x) > 0.0) ? floor((x)) : -floor(-(x)))
#endif
#ifndef OPTIMAL_FRAME_RATE
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]