Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
db7965b7
Commit
db7965b7
authored
18 years ago
by
Olivier Teulière
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* skins2: fixed the xkeepratio/ykeepratio attributes for controls not tied to
the top left corner of the layout
parent
9a707e07
master
2.0.6-vaapi-bugfix
2.0.7-gpu
2.0.6-vaapi
2.0.6-gpu
2.0.6-gpu-glx
1.3.0-git
1.2.0-pre1
1.1.0-pre1
1.1.0-ff
1.0.0-rc1
1.0.0-pre2
1.0.0-pre1
0.9.0
0.9.0-test3
0.9.0-test2
0.9.0-test1
0.9.0-test0
svn-trunk
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
modules/gui/skins2/parser/builder.cpp
modules/gui/skins2/parser/builder.cpp
+15
-0
No files found.
modules/gui/skins2/parser/builder.cpp
View file @
db7965b7
...
...
@@ -1027,6 +1027,21 @@ const Position Builder::makePosition( const string &rLeftTop,
refRightBottom
=
Position
::
kRightBottom
;
}
// In "keep ratio" mode, overwrite the previously computed values with the
// actual ones
// XXX: this coupling between makePosition and the Position class should
// be reduced...
if
(
xKeepRatio
)
{
left
=
xPos
;
right
=
xPos
+
width
;
}
if
(
yKeepRatio
)
{
top
=
yPos
;
bottom
=
yPos
+
height
;
}
return
Position
(
left
,
top
,
right
,
bottom
,
rBox
,
refLeftTop
,
refRightBottom
,
xKeepRatio
,
yKeepRatio
);
}
...
...
This diff is collapsed.
Click to expand it.
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