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
db7965b7
Commit
db7965b7
authored
Aug 06, 2006
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
Changes
1
Hide 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,
...
@@ -1027,6 +1027,21 @@ const Position Builder::makePosition( const string &rLeftTop,
refRightBottom
=
Position
::
kRightBottom
;
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
,
return
Position
(
left
,
top
,
right
,
bottom
,
rBox
,
refLeftTop
,
refRightBottom
,
xKeepRatio
,
yKeepRatio
);
refRightBottom
,
xKeepRatio
,
yKeepRatio
);
}
}
...
...
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