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
d891a8c1
Commit
d891a8c1
authored
Mar 09, 2011
by
Vincent Povirk
Committed by
Alexandre Julliard
Mar 10, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Apply image attributes to bitmaps before resampling them.
parent
870fdaf6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
graphics.c
dlls/gdiplus/graphics.c
+4
-5
No files found.
dlls/gdiplus/graphics.c
View file @
d891a8c1
...
...
@@ -2488,6 +2488,10 @@ GpStatus WINGDIPAPI GdipDrawImagePointsRect(GpGraphics *graphics, GpImage *image
return
OutOfMemory
;
}
apply_image_attributes
(
imageAttributes
,
src_data
,
src_area
.
Width
,
src_area
.
Height
,
src_stride
,
ColorAdjustTypeBitmap
);
/* Transform the bits as needed to the destination. */
GdipTransformMatrixPoints
(
dst_to_src
,
dst_to_src_points
,
3
);
...
...
@@ -2523,11 +2527,6 @@ GpStatus WINGDIPAPI GdipDrawImagePointsRect(GpGraphics *graphics, GpImage *image
GdipFree
(
src_data
);
apply_image_attributes
(
imageAttributes
,
dst_data
,
dst_area
.
right
-
dst_area
.
left
,
dst_area
.
bottom
-
dst_area
.
top
,
dst_stride
,
ColorAdjustTypeBitmap
);
stat
=
alpha_blend_pixels
(
graphics
,
dst_area
.
left
,
dst_area
.
top
,
dst_data
,
dst_area
.
right
-
dst_area
.
left
,
dst_area
.
bottom
-
dst_area
.
top
,
dst_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