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
260e120d
Commit
260e120d
authored
Oct 08, 2003
by
Clément Stenac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* Fixed slider values (boundaries were wrong, some values were unreachable)
parent
e8fbf16e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
modules/gui/wxwindows/interface.cpp
modules/gui/wxwindows/interface.cpp
+6
-6
No files found.
modules/gui/wxwindows/interface.cpp
View file @
260e120d
...
...
@@ -2,7 +2,7 @@
* interface.cpp : wxWindows plugin for vlc
*****************************************************************************
* Copyright (C) 2000-2001 VideoLAN
* $Id: interface.cpp,v 1.6
3 2003/10/08 10:07:22
zorglub Exp $
* $Id: interface.cpp,v 1.6
4 2003/10/08 12:18:50
zorglub Exp $
*
* Authors: Gildas Bazin <gbazin@netcourrier.com>
*
...
...
@@ -605,10 +605,10 @@ void Interface::CreateOurExtraPanel()
float
f_value
;
f_value
=
config_GetFloat
(
p_intf
,
"saturation"
);
if
(
f_value
>
0
&&
f_value
<
3
)
if
(
f_value
>
0
&&
f_value
<
5
)
saturation_slider
->
SetValue
(
(
int
)(
100
*
f_value
)
);
f_value
=
config_GetFloat
(
p_intf
,
"contrast"
);
if
(
f_value
>
0
&&
f_value
<
2
)
if
(
f_value
>
0
&&
f_value
<
4
)
contrast_slider
->
SetValue
(
(
int
)(
100
*
f_value
)
);
f_value
=
config_GetFloat
(
p_intf
,
"brightness"
);
if
(
f_value
>
0
&&
f_value
<
2
)
...
...
@@ -944,17 +944,17 @@ void Interface::OnHueUpdate( wxScrollEvent& event)
void
Interface
::
OnSaturationUpdate
(
wxScrollEvent
&
event
)
{
config_PutFloat
(
p_intf
,
"saturation"
,
(
float
)
event
.
GetPosition
()
/
3
00
);
config_PutFloat
(
p_intf
,
"saturation"
,
(
float
)
event
.
GetPosition
()
/
1
00
);
}
void
Interface
::
OnBrightnessUpdate
(
wxScrollEvent
&
event
)
{
config_PutFloat
(
p_intf
,
"brightness"
,
(
float
)
event
.
GetPosition
()
/
2
00
);
config_PutFloat
(
p_intf
,
"brightness"
,
(
float
)
event
.
GetPosition
()
/
1
00
);
}
void
Interface
::
OnContrastUpdate
(
wxScrollEvent
&
event
)
{
config_PutFloat
(
p_intf
,
"contrast"
,
(
float
)
event
.
GetPosition
()
/
2
00
);
config_PutFloat
(
p_intf
,
"contrast"
,
(
float
)
event
.
GetPosition
()
/
1
00
);
}
...
...
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