Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
f4a16def
Commit
f4a16def
authored
Jul 03, 2012
by
Felix Paul Kühne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
macosx: fixed time slider alignment issue
Pointed by Damien (cherry picked from commit
20484554
)
parent
198838bc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
3 deletions
+10
-3
modules/gui/macosx/misc.h
modules/gui/macosx/misc.h
+1
-0
modules/gui/macosx/misc.m
modules/gui/macosx/misc.m
+9
-3
No files found.
modules/gui/macosx/misc.h
View file @
f4a16def
...
@@ -118,6 +118,7 @@
...
@@ -118,6 +118,7 @@
{
{
NSImage
*
o_knob_img
;
NSImage
*
o_knob_img
;
NSRect
img_rect
;
NSRect
img_rect
;
BOOL
b_dark
;
}
}
-
(
CGFloat
)
knobPosition
;
-
(
CGFloat
)
knobPosition
;
...
...
modules/gui/macosx/misc.m
View file @
f4a16def
...
@@ -513,10 +513,13 @@ void _drawFrameInRect(NSRect frameRect)
...
@@ -513,10 +513,13 @@ void _drawFrameInRect(NSRect frameRect)
-
(
void
)
awakeFromNib
-
(
void
)
awakeFromNib
{
{
if
(
config_GetInt
(
VLCIntf
,
"macosx-interfacestyle"
))
if
(
config_GetInt
(
VLCIntf
,
"macosx-interfacestyle"
))
{
o_knob_img
=
[
NSImage
imageNamed
:
@"progression-knob_dark"
];
o_knob_img
=
[
NSImage
imageNamed
:
@"progression-knob_dark"
];
else
b_dark
=
YES
;
}
else
{
o_knob_img
=
[
NSImage
imageNamed
:
@"progression-knob"
];
o_knob_img
=
[
NSImage
imageNamed
:
@"progression-knob"
];
b_dark
=
NO
;
}
img_rect
.
size
=
[
o_knob_img
size
];
img_rect
.
size
=
[
o_knob_img
size
];
img_rect
.
origin
.
x
=
img_rect
.
origin
.
y
=
0
;
img_rect
.
origin
.
x
=
img_rect
.
origin
.
y
=
0
;
}
}
...
@@ -554,7 +557,10 @@ void _drawFrameInRect(NSRect frameRect)
...
@@ -554,7 +557,10 @@ void _drawFrameInRect(NSRect frameRect)
[[
NSGraphicsContext
currentContext
]
restoreGraphicsState
];
[[
NSGraphicsContext
currentContext
]
restoreGraphicsState
];
NSRect
knobRect
=
[[
self
cell
]
knobRectFlipped
:
NO
];
NSRect
knobRect
=
[[
self
cell
]
knobRectFlipped
:
NO
];
knobRect
.
origin
.
y
+=
1
;
if
(
b_dark
)
knobRect
.
origin
.
y
+=
2
;
else
knobRect
.
origin
.
y
+=
1
;
[
self
drawKnobInRect
:
knobRect
];
[
self
drawKnobInRect
:
knobRect
];
}
}
...
...
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