Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
af7b8efc
Commit
af7b8efc
authored
Mar 28, 2010
by
Vincent Povirk
Committed by
Alexandre Julliard
Mar 29, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Store a reference to the image in image graphics contexts.
parent
ffc93976
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
1 deletion
+8
-1
gdiplus_private.h
dlls/gdiplus/gdiplus_private.h
+1
-0
image.c
dlls/gdiplus/image.c
+7
-1
No files found.
dlls/gdiplus/gdiplus_private.h
View file @
af7b8efc
...
...
@@ -112,6 +112,7 @@ struct GpGraphics{
HDC
hdc
;
HWND
hwnd
;
BOOL
owndc
;
GpImage
*
image
;
SmoothingMode
smoothing
;
CompositingQuality
compqual
;
InterpolationMode
interpolation
;
...
...
dlls/gdiplus/image.c
View file @
af7b8efc
...
...
@@ -1946,6 +1946,7 @@ GpStatus WINGDIPAPI GdipGetImageGraphicsContext(GpImage *image,
GpGraphics
**
graphics
)
{
HDC
hdc
;
GpStatus
stat
;
TRACE
(
"%p %p
\n
"
,
image
,
graphics
);
...
...
@@ -1965,7 +1966,12 @@ GpStatus WINGDIPAPI GdipGetImageGraphicsContext(GpImage *image,
((
GpBitmap
*
)
image
)
->
hdc
=
hdc
;
}
return
GdipCreateFromHDC
(
hdc
,
graphics
);
stat
=
GdipCreateFromHDC
(
hdc
,
graphics
);
if
(
stat
==
Ok
)
(
*
graphics
)
->
image
=
image
;
return
stat
;
}
GpStatus
WINGDIPAPI
GdipGetImageHeight
(
GpImage
*
image
,
UINT
*
height
)
...
...
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