Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-gpu
Commits
2057de4a
Commit
2057de4a
authored
Apr 17, 2003
by
Emmanuel Puig
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* Ask tooney to know ! (fix minor bug)
parent
d17b6f1c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
14 deletions
+9
-14
modules/gui/skins/controls/playlist.cpp
modules/gui/skins/controls/playlist.cpp
+4
-4
modules/gui/skins/controls/text.cpp
modules/gui/skins/controls/text.cpp
+4
-3
modules/gui/skins/src/font.h
modules/gui/skins/src/font.h
+1
-7
No files found.
modules/gui/skins/controls/playlist.cpp
View file @
2057de4a
...
@@ -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
)
...
...
modules/gui/skins/controls/text.cpp
View file @
2057de4a
...
@@ -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
;
...
...
modules/gui/skins/src/font.h
View file @
2057de4a
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment