Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
e3908397
Commit
e3908397
authored
May 29, 2010
by
Vincent Povirk
Committed by
Alexandre Julliard
May 31, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
windowscodecs: Fix the tile coordinate translation in the TIFF decoder.
parent
39ea772a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
tiffformat.c
dlls/windowscodecs/tiffformat.c
+8
-4
No files found.
dlls/windowscodecs/tiffformat.c
View file @
e3908397
...
...
@@ -756,16 +756,20 @@ static HRESULT WINAPI TiffFrameDecode_CopyPixels(IWICBitmapFrameDecode *iface,
if
(
prc
->
X
+
prc
->
Width
>
(
tile_x
+
1
)
*
This
->
decode_info
.
tile_width
)
rc
.
Width
=
This
->
decode_info
.
tile_width
-
rc
.
X
;
else
if
(
prc
->
X
<
tile_x
*
This
->
decode_info
.
tile_width
)
rc
.
Width
=
prc
->
Width
+
prc
->
X
-
tile_x
*
This
->
decode_info
.
tile_width
;
else
rc
.
Width
=
prc
->
Width
+
rc
.
X
-
prc
->
X
;
rc
.
Width
=
prc
->
Width
;
if
(
prc
->
Y
+
prc
->
Height
>
(
tile_y
+
1
)
*
This
->
decode_info
.
tile_height
)
rc
.
Height
=
This
->
decode_info
.
tile_height
-
rc
.
Y
;
else
if
(
prc
->
Y
<
tile_y
*
This
->
decode_info
.
tile_height
)
rc
.
Height
=
prc
->
Height
+
prc
->
Y
-
tile_y
*
This
->
decode_info
.
tile_height
;
else
rc
.
Height
=
prc
->
Height
+
rc
.
Y
-
prc
->
Y
;
rc
.
Height
=
prc
->
Height
;
dst_tilepos
=
pbBuffer
+
(
cbStride
*
(
rc
.
Y
-
prc
->
Y
))
+
((
This
->
decode_info
.
bpp
*
(
rc
.
X
-
prc
->
X
)
+
7
)
/
8
);
dst_tilepos
=
pbBuffer
+
(
cbStride
*
(
(
rc
.
Y
+
tile_y
*
This
->
decode_info
.
tile_height
)
-
prc
->
Y
))
+
((
This
->
decode_info
.
bpp
*
(
(
rc
.
X
+
tile_x
*
This
->
decode_info
.
tile_width
)
-
prc
->
X
)
+
7
)
/
8
);
hr
=
copy_pixels
(
This
->
decode_info
.
bpp
,
This
->
cached_tile
,
This
->
decode_info
.
tile_width
,
This
->
decode_info
.
tile_height
,
This
->
decode_info
.
tile_stride
,
...
...
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