Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
b70a9eb7
Commit
b70a9eb7
authored
Jun 09, 2003
by
Cyril Deguet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* x11_api.c: implemented OSAPI_GetNonTransparentColor (needed for fonts !)
parent
4b62a084
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
modules/gui/skins/x11/x11_api.cpp
modules/gui/skins/x11/x11_api.cpp
+2
-2
modules/gui/skins/x11/x11_font.cpp
modules/gui/skins/x11/x11_font.cpp
+2
-2
No files found.
modules/gui/skins/x11/x11_api.cpp
View file @
b70a9eb7
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* x11_api.cpp: Various x11-specific functions
* x11_api.cpp: Various x11-specific functions
*****************************************************************************
*****************************************************************************
* Copyright (C) 2003 VideoLAN
* Copyright (C) 2003 VideoLAN
* $Id: x11_api.cpp,v 1.
8 2003/06/07 00:36:28
asmax Exp $
* $Id: x11_api.cpp,v 1.
9 2003/06/09 22:02:13
asmax Exp $
*
*
* Authors: Cyril Deguet <asmax@videolan.org>
* Authors: Cyril Deguet <asmax@videolan.org>
*
*
...
@@ -91,7 +91,7 @@ void OSAPI_PostMessage( SkinWindow *win, unsigned int message,
...
@@ -91,7 +91,7 @@ void OSAPI_PostMessage( SkinWindow *win, unsigned int message,
//---------------------------------------------------------------------------
//---------------------------------------------------------------------------
int
OSAPI_GetNonTransparentColor
(
int
c
)
int
OSAPI_GetNonTransparentColor
(
int
c
)
{
{
return
0
;
return
(
c
<
10
?
10
:
c
)
;
}
}
//---------------------------------------------------------------------------
//---------------------------------------------------------------------------
...
...
modules/gui/skins/x11/x11_font.cpp
View file @
b70a9eb7
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* x11_font.cpp: X11 implementation of the Font class
* x11_font.cpp: X11 implementation of the Font class
*****************************************************************************
*****************************************************************************
* Copyright (C) 2003 VideoLAN
* Copyright (C) 2003 VideoLAN
* $Id: x11_font.cpp,v 1.
9 2003/06/09 12:33:16
asmax Exp $
* $Id: x11_font.cpp,v 1.
10 2003/06/09 22:02:13
asmax Exp $
*
*
* Authors: Cyril Deguet <asmax@videolan.org>
* Authors: Cyril Deguet <asmax@videolan.org>
*
*
...
@@ -97,7 +97,7 @@ void X11Font::GenericPrint( Graphics *dest, string text, int x, int y,
...
@@ -97,7 +97,7 @@ void X11Font::GenericPrint( Graphics *dest, string text, int x, int y,
XGCValues
gcVal
;
XGCValues
gcVal
;
// Change color to avoid transparency
// Change color to avoid transparency
gcVal
.
foreground
=
(
color
==
0
?
10
:
color
);
gcVal
.
foreground
=
(
color
<
1
0
?
10
:
color
);
gcVal
.
font
=
font
;
gcVal
.
font
=
font
;
XRectangle
rect
;
XRectangle
rect
;
rect
.
x
=
x
;
rect
.
x
=
x
;
...
...
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