Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Steve Lhomme
VLC
Commits
ac16a947
Commit
ac16a947
authored
Aug 15, 2006
by
Cyril Deguet
Browse files
* scaled_bitmap.cpp: better fix than [16273] ...
parent
357973f8
Changes
1
Hide whitespace changes
Inline
Side-by-side
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
Supports
Markdown
0%
Try again
or
attach a new 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