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
ac16a947
Commit
ac16a947
authored
Aug 15, 2006
by
Cyril Deguet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* scaled_bitmap.cpp: better fix than [16273] ...
parent
357973f8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
modules/gui/skins2/src/scaled_bitmap.cpp
modules/gui/skins2/src/scaled_bitmap.cpp
+5
-3
No files found.
modules/gui/skins2/src/scaled_bitmap.cpp
View file @
ac16a947
...
...
@@ -81,9 +81,11 @@ ScaledBitmap::ScaledBitmap( intf_thread_t *pIntf, const GenericBitmap &rBitmap,
uint32_t
yOffset
=
((
y
*
srcHeight
)
/
height
)
*
srcWidth
;
pSrcData
=
((
uint32_t
*
)
rBitmap
.
getData
())
+
yOffset
;
*
(
pDestData
++
)
=
*
(
pSrcData
++
);
// Don't start with x=0 to avoid an infinite loop if width==1
for
(
int
x
=
1
;
x
<
width
;
x
++
)
if
(
width
==
1
)
{
*
(
pDestData
++
)
=
*
pSrcData
;
}
else
for
(
int
x
=
0
;
x
<
width
;
x
++
)
{
*
(
pDestData
++
)
=
*
(
pSrcData
++
);
...
...
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