changeset 34060:fab4513840cb

Add () around macro definitions where necessary to avoid bad surprises.
author reimar
date Wed, 28 Sep 2011 18:26:18 +0000
parents 8a80fb185741
children fe03e0d5c7d0
files libvo/matrixview.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/matrixview.c	Wed Sep 28 17:04:09 2011 +0000
+++ b/libvo/matrixview.c	Wed Sep 28 18:26:18 2011 +0000
@@ -50,8 +50,8 @@
 #define MAX_TEXT_Y 0x4000
 static int text_x = 0;
 static int text_y = 0;
-#define _text_x text_x/2
-#define _text_y text_y/2
+#define _text_x (text_x/2)
+#define _text_y (text_y/2)
 
 // Scene position
 #define Z_Off -128.0f