]> git.sesse.net Git - vlc/commitdiff
* Ask tooney to know ! (fix minor bug)
authorEmmanuel Puig <karibu@videolan.org>
Thu, 17 Apr 2003 19:56:31 +0000 (19:56 +0000)
committerEmmanuel Puig <karibu@videolan.org>
Thu, 17 Apr 2003 19:56:31 +0000 (19:56 +0000)
modules/gui/skins/controls/playlist.cpp
modules/gui/skins/controls/text.cpp
modules/gui/skins/src/font.h

index f1615a6c5c328b717329a296b139ab70eeecf806..8eb4e464d17cfc238779b660e9c9c4a24cc2e331 100644 (file)
@@ -2,7 +2,7 @@
  * playlist.cpp: Playlist control
  *****************************************************************************
  * Copyright (C) 2003 VideoLAN
- * $Id: playlist.cpp,v 1.2 2003/04/16 21:40:07 ipkiss Exp $
+ * $Id: playlist.cpp,v 1.3 2003/04/17 19:56:31 karibu Exp $
  *
  * Authors: Olivier Teulière <ipkiss@via.ecp.fr>
  *          Emmanuel Puig    <karibu@via.ecp.fr>
@@ -328,21 +328,21 @@ void ControlPlayList::DrawCase( Graphics *dest, int i, int x, int y, int w,
     F->Print( dest,
         Num,
         CaseTextLeft[j] - x, TextTop + j * CaseHeight - y,
-        NumWidth - Margin, CaseHeight, DT_RIGHT );
+        NumWidth - Margin, CaseHeight, VLC_FONT_ALIGN_RIGHT );
 
     // Print name
     F->Print( dest,
         GetFileName( i ),
         NumWidth + Margin + CaseTextLeft[j] - x,
         TextTop + j * CaseHeight - y,
-        FileWidth - 2 * Margin, CaseHeight, DT_LEFT );
+        FileWidth - 2 * Margin, CaseHeight, VLC_FONT_ALIGN_LEFT );
 
     // Print info
     F->Print( dest,
         "no info",
         NumWidth + FileWidth + Margin + CaseTextLeft[j] - x,
         TextTop + j * CaseHeight - y,
-        InfoWidth - Margin, CaseHeight, DT_CENTER );
+        InfoWidth - Margin, CaseHeight, VLC_FONT_ALIGN_CENTER );
 }
 //---------------------------------------------------------------------------
 char * ControlPlayList::GetFileName( int i )
index b4657e857b8a3b86850f7bdf5f1ca734396f6cf3..0a98a401308f93d331802f5835307af661554b1a 100644 (file)
@@ -2,7 +2,7 @@
  * text.cpp: Text control
  *****************************************************************************
  * Copyright (C) 2003 VideoLAN
- * $Id: text.cpp,v 1.5 2003/04/17 16:34:31 karibu Exp $
+ * $Id: text.cpp,v 1.6 2003/04/17 19:56:31 karibu Exp $
  *
  * Authors: Olivier Teulière <ipkiss@via.ecp.fr>
  *          Emmanuel Puig    <karibu@via.ecp.fr>
@@ -34,6 +34,7 @@
 #include "../src/graphics.h"
 #include "../os_graphics.h"
 #include "../src/font.h"
+#include "../os_font.h"
 #include "generic.h"
 #include "text.h"
 #include "../src/event.h"
@@ -210,12 +211,12 @@ void ControlText::SetSize()
     Height = h;
 
     // Set position wether alignment
-    if( Align == DT_CENTER )
+    if( Align == VLC_FONT_ALIGN_CENTER )
     {
         Left     = InitLeft - Width / 2;
         TextLeft = InitLeft - TextWidth / 2;
     }
-    else if( Align == DT_RIGHT )
+    else if( Align == VLC_FONT_ALIGN_RIGHT )
     {
         Left     = InitLeft - Width;
         TextLeft = InitLeft - TextWidth;
index c532015c755d8b92575218cbab10ec99b86833f6..5dc5c6d4410fce2247c243cedf303c13d0841fd3 100644 (file)
@@ -2,7 +2,7 @@
  * font.h: Font class
  *****************************************************************************
  * Copyright (C) 2003 VideoLAN
- * $Id: font.h,v 1.2 2003/04/12 21:43:27 asmax Exp $
+ * $Id: font.h,v 1.3 2003/04/17 19:56:31 karibu Exp $
  *
  * Authors: Olivier Teulière <ipkiss@via.ecp.fr>
  *          Emmanuel Puig    <karibu@via.ecp.fr>
 #include <string>
 using namespace std;
 
-/* FIXME :kludge */
-#define DT_TOP               0  //  0x0000
-#define DT_LEFT              0  //  0x0000
-#define DT_CENTER            1  //  0x0001
-#define DT_RIGHT             2  //  0x0002
-
 //---------------------------------------------------------------------------
 struct intf_thread_t;
 class Graphics;