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
2c14f598
Commit
2c14f598
authored
Oct 26, 2010
by
Rafaël Carré
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ncurses: remove color switching
--no-color / --color is a fine enough control
parent
849824af
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
13 deletions
+0
-13
modules/gui/ncurses.c
modules/gui/ncurses.c
+0
-13
No files found.
modules/gui/ncurses.c
View file @
2c14f598
...
...
@@ -174,7 +174,6 @@ struct intf_sys_t
input_thread_t
*
p_input
;
bool
b_color
;
bool
b_color_started
;
WINDOW
*
w
;
...
...
@@ -500,11 +499,6 @@ static void FindIndex(intf_sys_t *p_sys, playlist_t *p_playlist, bool locked)
static
void
start_color_and_pairs
(
intf_thread_t
*
p_intf
)
{
if
(
p_intf
->
p_sys
->
b_color_started
)
return
;
p_intf
->
p_sys
->
b_color_started
=
true
;
if
(
!
has_colors
())
{
p_intf
->
p_sys
->
b_color
=
false
;
...
...
@@ -519,8 +513,6 @@ static void start_color_and_pairs(intf_thread_t *p_intf)
/* untested, in all my terminals, !can_change_color() --funman */
if
(
can_change_color
())
init_color
(
COLOR_YELLOW
,
960
,
500
,
0
);
/* YELLOW -> ORANGE */
p_intf
->
p_sys
->
b_color_started
=
true
;
}
static
void
DrawBox
(
WINDOW
*
win
,
int
y
,
int
x
,
int
h
,
int
w
,
const
char
*
title
,
bool
b_color
)
...
...
@@ -850,7 +842,6 @@ static void Redraw(intf_thread_t *p_intf, time_t *t_last_refresh)
MainBoxWrite
(
p_intf
,
l
++
,
1
,
_
(
" B Show/Hide filebrowser"
));
MainBoxWrite
(
p_intf
,
l
++
,
1
,
_
(
" x Show/Hide objects box"
));
MainBoxWrite
(
p_intf
,
l
++
,
1
,
_
(
" S Show/Hide statistics box"
));
MainBoxWrite
(
p_intf
,
l
++
,
1
,
_
(
" c Switch color on/off"
));
MainBoxWrite
(
p_intf
,
l
++
,
1
,
_
(
" Esc Close Add/Search entry"
));
MainBoxWrite
(
p_intf
,
l
++
,
1
,
""
);
...
...
@@ -1894,10 +1885,6 @@ static int HandleKey(intf_thread_t *p_intf)
case
'S'
:
BoxSwitch
(
p_sys
,
BOX_STATS
);
break
;
case
'c'
:
if
((
p_sys
->
b_color
=
!
p_sys
->
b_color
))
start_color_and_pairs
(
p_intf
);
break
;
case
'h'
:
case
'H'
:
BoxSwitch
(
p_sys
,
BOX_HELP
);
...
...
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