Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
d5ee8553
Commit
d5ee8553
authored
Jan 11, 2003
by
Eric Petit
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* Needed update because variables names changed in the 'adjust' module.
parent
1dbae73c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
13 deletions
+13
-13
modules/gui/beos/PreferencesWindow.cpp
modules/gui/beos/PreferencesWindow.cpp
+13
-13
No files found.
modules/gui/beos/PreferencesWindow.cpp
View file @
d5ee8553
...
...
@@ -2,7 +2,7 @@
* PreferencesWindow.cpp: beos interface
*****************************************************************************
* Copyright (C) 1999, 2000, 2001 VideoLAN
* $Id: PreferencesWindow.cpp,v 1.
4 2003/01/08 02:32:50
titer Exp $
* $Id: PreferencesWindow.cpp,v 1.
5 2003/01/11 20:42:47
titer Exp $
*
* Authors: Eric Petit <titer@videolan.org>
*
...
...
@@ -93,25 +93,25 @@ PreferencesWindow::PreferencesWindow( BRect frame, const char* name,
new
BMessage
(
SLIDER_UPDATE
),
0
,
200
,
B_TRIANGLE_THUMB
,
B_FOLLOW_LEFT
,
B_WILL_DRAW
);
fBrightnessSlider
->
SetValue
(
100
*
config_GetFloat
(
p_intf
,
"
B
rightness"
)
);
fBrightnessSlider
->
SetValue
(
100
*
config_GetFloat
(
p_intf
,
"
b
rightness"
)
);
rect
.
OffsetBy
(
0
,
40
);
fContrastSlider
=
new
BSlider
(
rect
,
"contrast"
,
"Contrast"
,
new
BMessage
(
SLIDER_UPDATE
),
0
,
200
,
B_TRIANGLE_THUMB
,
B_FOLLOW_LEFT
,
B_WILL_DRAW
);
fContrastSlider
->
SetValue
(
100
*
config_GetFloat
(
p_intf
,
"
C
ontrast"
)
);
fContrastSlider
->
SetValue
(
100
*
config_GetFloat
(
p_intf
,
"
c
ontrast"
)
);
rect
.
OffsetBy
(
0
,
40
);
fHueSlider
=
new
BSlider
(
rect
,
"hue"
,
"Hue"
,
new
BMessage
(
SLIDER_UPDATE
),
0
,
360
,
B_TRIANGLE_THUMB
,
B_FOLLOW_LEFT
,
B_WILL_DRAW
);
fHueSlider
->
SetValue
(
config_GetInt
(
p_intf
,
"
H
ue"
)
);
fHueSlider
->
SetValue
(
config_GetInt
(
p_intf
,
"
h
ue"
)
);
rect
.
OffsetBy
(
0
,
40
);
fSaturationSlider
=
new
BSlider
(
rect
,
"saturation"
,
"Saturation"
,
new
BMessage
(
SLIDER_UPDATE
),
0
,
200
,
B_TRIANGLE_THUMB
,
B_FOLLOW_LEFT
,
B_WILL_DRAW
);
fSaturationSlider
->
SetValue
(
100
*
config_GetFloat
(
p_intf
,
"
S
aturation"
)
);
fSaturationSlider
->
SetValue
(
100
*
config_GetFloat
(
p_intf
,
"
s
aturation"
)
);
fAdjustView
->
AddChild
(
fBrightnessSlider
);
fAdjustView
->
AddChild
(
fContrastSlider
);
fAdjustView
->
AddChild
(
fHueSlider
);
...
...
@@ -211,18 +211,18 @@ void PreferencesWindow::SetDefaults()
void
PreferencesWindow
::
ApplyChanges
()
{
config_PutInt
(
p_intf
,
"ffmpeg-pp-q"
,
fPpSlider
->
Value
()
);
config_PutFloat
(
p_intf
,
"
B
rightness"
,
config_PutFloat
(
p_intf
,
"
b
rightness"
,
(
float
)
fBrightnessSlider
->
Value
()
/
100
);
config_PutFloat
(
p_intf
,
"
C
ontrast"
,
config_PutFloat
(
p_intf
,
"
c
ontrast"
,
(
float
)
fContrastSlider
->
Value
()
/
100
);
config_PutInt
(
p_intf
,
"
H
ue"
,
fHueSlider
->
Value
()
);
config_PutFloat
(
p_intf
,
"
S
aturation"
,
config_PutInt
(
p_intf
,
"
h
ue"
,
fHueSlider
->
Value
()
);
config_PutFloat
(
p_intf
,
"
s
aturation"
,
(
float
)
fSaturationSlider
->
Value
()
/
100
);
if
(
config_GetFloat
(
p_intf
,
"
B
rightness"
)
!=
1
||
config_GetFloat
(
p_intf
,
"
C
ontrast"
)
!=
1
||
config_GetInt
(
p_intf
,
"
H
ue"
)
!=
0
||
config_GetFloat
(
p_intf
,
"
S
aturation"
)
!=
1
)
if
(
config_GetFloat
(
p_intf
,
"
b
rightness"
)
!=
1
||
config_GetFloat
(
p_intf
,
"
c
ontrast"
)
!=
1
||
config_GetInt
(
p_intf
,
"
h
ue"
)
!=
0
||
config_GetFloat
(
p_intf
,
"
s
aturation"
)
!=
1
)
{
config_PutPsz
(
p_intf
,
"filter"
,
"adjust"
);
}
...
...
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