[MPlayer-cvslog] r32878 - trunk/gui/skin/font.c

ib subversion at mplayerhq.hu
Thu Feb 10 14:26:19 CET 2011


Author: ib
Date: Thu Feb 10 14:26:18 2011
New Revision: 32878

Log:
Use defined variable and do not recalculate again.

Modified:
   trunk/gui/skin/font.c

Modified: trunk/gui/skin/font.c
==============================================================================
--- trunk/gui/skin/font.c	Thu Feb 10 14:24:00 2011	(r32877)
+++ trunk/gui/skin/font.c	Thu Feb 10 14:26:18 2011	(r32878)
@@ -259,8 +259,8 @@ txSample * fntRender( wItem * item,int p
     {
      default:
      case fntAlignLeft:   dx=0; break;
-     case fntAlignCenter: dx=( iw - fntTextWidth( id,txt ) ) / 2; break;
-     case fntAlignRight:  dx=iw - fntTextWidth( id,txt ); break;
+     case fntAlignCenter: dx=( iw - tw ) / 2; break;
+     case fntAlignRight:  dx=iw - tw; break;
     }
 
   } else dx+=px;


More information about the MPlayer-cvslog mailing list