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
0e977dd3
Commit
0e977dd3
authored
Oct 03, 2004
by
Cyril Deguet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- scaled_bitmap.cpp: fixed an old bug in the bresenham algorithm
(the right side of enlarged images was not scaled properly)
parent
20bab27a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
modules/gui/skins2/src/scaled_bitmap.cpp
modules/gui/skins2/src/scaled_bitmap.cpp
+9
-9
No files found.
modules/gui/skins2/src/scaled_bitmap.cpp
View file @
0e977dd3
...
...
@@ -2,7 +2,7 @@
* scaled_bitmap.cpp
*****************************************************************************
* Copyright (C) 2003 VideoLAN
* $Id
: scaled_bitmap.cpp,v 1.1 2004/01/03 23:31:34 asmax Exp
$
* $Id$
*
* Authors: Cyril Deguet <asmax@via.ecp.fr>
* Olivier Teulire <ipkiss@via.ecp.fr>
...
...
@@ -42,10 +42,10 @@ ScaledBitmap::ScaledBitmap( intf_thread_t *pIntf, const GenericBitmap &rBitmap,
// Algorithm for horizontal enlargement
if
(
width
>
srcWidth
)
{
// Decision variables for Bresenham al
og
rithm
int
incX1
=
2
*
srcWidth
;
int
incX2
=
incX1
-
2
*
width
;
int
dX
=
incX1
-
width
;
// Decision variables for Bresenham al
go
rithm
int
incX1
=
2
*
(
srcWidth
-
1
)
;
int
incX2
=
incX1
-
2
*
(
width
-
1
)
;
int
dX
=
incX1
-
(
width
-
1
)
;
for
(
int
y
=
0
;
y
<
height
;
y
++
)
{
...
...
@@ -71,10 +71,10 @@ ScaledBitmap::ScaledBitmap( intf_thread_t *pIntf, const GenericBitmap &rBitmap,
// Algorithm for horizontal reduction
else
{
// Decision variables for Bresenham al
og
rithm
int
incX1
=
2
*
width
;
int
incX2
=
incX1
-
2
*
srcWidth
;
int
dX
=
incX1
-
srcWidth
;
// Decision variables for Bresenham al
go
rithm
int
incX1
=
2
*
(
width
-
1
)
;
int
incX2
=
incX1
-
2
*
(
srcWidth
-
1
)
;
int
dX
=
incX1
-
(
srcWidth
-
1
)
;
for
(
int
y
=
0
;
y
<
height
;
y
++
)
{
...
...
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