[MPlayer-cvslog] r35828 - trunk/gui/wm/ws.c

ib subversion at mplayerhq.hu
Wed Jan 23 11:31:15 CET 2013


Author: ib
Date: Wed Jan 23 11:31:15 2013
New Revision: 35828

Log:
Remove pointless parentheses.

Modified:
   trunk/gui/wm/ws.c

Modified: trunk/gui/wm/ws.c
==============================================================================
--- trunk/gui/wm/ws.c	Tue Jan 22 20:46:11 2013	(r35827)
+++ trunk/gui/wm/ws.c	Wed Jan 23 11:31:15 2013	(r35828)
@@ -1033,11 +1033,11 @@ static int pack_rgb15(int r, int g, int 
 {
     int pixel;
 
-    pixel   = (r >> 3);
+    pixel   = r >> 3;
     pixel <<= 5;
-    pixel  |= (g >> 3);
+    pixel  |= g >> 3;
     pixel <<= 5;
-    pixel  |= (b >> 3);
+    pixel  |= b >> 3;
 
     return pixel;
 }
@@ -1055,11 +1055,11 @@ static int pack_rgb16(int r, int g, int 
 {
     int pixel;
 
-    pixel   = (r >> 3);
+    pixel   = r >> 3;
     pixel <<= 6;
-    pixel  |= (g >> 2);
+    pixel  |= g >> 2;
     pixel <<= 5;
-    pixel  |= (b >> 3);
+    pixel  |= b >> 3;
 
     return pixel;
 }


More information about the MPlayer-cvslog mailing list