Commit 2057de4a authored by Emmanuel Puig's avatar Emmanuel Puig

* Ask tooney to know ! (fix minor bug)

parent d17b6f1c
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* playlist.cpp: Playlist control * playlist.cpp: Playlist control
***************************************************************************** *****************************************************************************
* Copyright (C) 2003 VideoLAN * 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 Teulire <ipkiss@via.ecp.fr> * Authors: Olivier Teulire <ipkiss@via.ecp.fr>
* Emmanuel Puig <karibu@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, ...@@ -328,21 +328,21 @@ void ControlPlayList::DrawCase( Graphics *dest, int i, int x, int y, int w,
F->Print( dest, F->Print( dest,
Num, Num,
CaseTextLeft[j] - x, TextTop + j * CaseHeight - y, CaseTextLeft[j] - x, TextTop + j * CaseHeight - y,
NumWidth - Margin, CaseHeight, DT_RIGHT ); NumWidth - Margin, CaseHeight, VLC_FONT_ALIGN_RIGHT );
// Print name // Print name
F->Print( dest, F->Print( dest,
GetFileName( i ), GetFileName( i ),
NumWidth + Margin + CaseTextLeft[j] - x, NumWidth + Margin + CaseTextLeft[j] - x,
TextTop + j * CaseHeight - y, TextTop + j * CaseHeight - y,
FileWidth - 2 * Margin, CaseHeight, DT_LEFT ); FileWidth - 2 * Margin, CaseHeight, VLC_FONT_ALIGN_LEFT );
// Print info // Print info
F->Print( dest, F->Print( dest,
"no info", "no info",
NumWidth + FileWidth + Margin + CaseTextLeft[j] - x, NumWidth + FileWidth + Margin + CaseTextLeft[j] - x,
TextTop + j * CaseHeight - y, TextTop + j * CaseHeight - y,
InfoWidth - Margin, CaseHeight, DT_CENTER ); InfoWidth - Margin, CaseHeight, VLC_FONT_ALIGN_CENTER );
} }
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
char * ControlPlayList::GetFileName( int i ) char * ControlPlayList::GetFileName( int i )
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* text.cpp: Text control * text.cpp: Text control
***************************************************************************** *****************************************************************************
* Copyright (C) 2003 VideoLAN * 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 Teulire <ipkiss@via.ecp.fr> * Authors: Olivier Teulire <ipkiss@via.ecp.fr>
* Emmanuel Puig <karibu@via.ecp.fr> * Emmanuel Puig <karibu@via.ecp.fr>
...@@ -34,6 +34,7 @@ ...@@ -34,6 +34,7 @@
#include "../src/graphics.h" #include "../src/graphics.h"
#include "../os_graphics.h" #include "../os_graphics.h"
#include "../src/font.h" #include "../src/font.h"
#include "../os_font.h"
#include "generic.h" #include "generic.h"
#include "text.h" #include "text.h"
#include "../src/event.h" #include "../src/event.h"
...@@ -210,12 +211,12 @@ void ControlText::SetSize() ...@@ -210,12 +211,12 @@ void ControlText::SetSize()
Height = h; Height = h;
// Set position wether alignment // Set position wether alignment
if( Align == DT_CENTER ) if( Align == VLC_FONT_ALIGN_CENTER )
{ {
Left = InitLeft - Width / 2; Left = InitLeft - Width / 2;
TextLeft = InitLeft - TextWidth / 2; TextLeft = InitLeft - TextWidth / 2;
} }
else if( Align == DT_RIGHT ) else if( Align == VLC_FONT_ALIGN_RIGHT )
{ {
Left = InitLeft - Width; Left = InitLeft - Width;
TextLeft = InitLeft - TextWidth; TextLeft = InitLeft - TextWidth;
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* font.h: Font class * font.h: Font class
***************************************************************************** *****************************************************************************
* Copyright (C) 2003 VideoLAN * 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> * Authors: Olivier Teulière <ipkiss@via.ecp.fr>
* Emmanuel Puig <karibu@via.ecp.fr> * Emmanuel Puig <karibu@via.ecp.fr>
...@@ -31,12 +31,6 @@ ...@@ -31,12 +31,6 @@
#include <string> #include <string>
using namespace std; 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; struct intf_thread_t;
class Graphics; class Graphics;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment