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
f30732fd
Commit
f30732fd
authored
Jul 24, 2007
by
Evan Stade
Committed by
Alexandre Julliard
Jul 25, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Added GdipSetWorldTransform/GdipGetWorldTransform.
parent
eab427ee
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
31 additions
and
2 deletions
+31
-2
gdiplus.spec
dlls/gdiplus/gdiplus.spec
+2
-2
gdiplus_private.h
dlls/gdiplus/gdiplus_private.h
+1
-0
graphics.c
dlls/gdiplus/graphics.c
+26
-0
gdiplusflat.h
include/gdiplusflat.h
+2
-0
No files found.
dlls/gdiplus/gdiplus.spec
View file @
f30732fd
...
...
@@ -386,7 +386,7 @@
@ stub GdipGetTextureWrapMode
@ stub GdipGetVisibleClipBounds
@ stub GdipGetVisibleClipBoundsI
@ st
ub GdipGetWorldTransform
@ st
dcall GdipGetWorldTransform(ptr ptr)
@ stub GdipGraphicsClear
@ stub GdipImageForceValidation
@ stub GdipImageGetFrameCount
...
...
@@ -576,7 +576,7 @@
@ stub GdipSetTextRenderingHint
@ stub GdipSetTextureTransform
@ stub GdipSetTextureWrapMode
@ st
ub GdipSetWorldTransform
@ st
dcall GdipSetWorldTransform(ptr ptr)
@ stub GdipShearMatrix
@ stdcall GdipStartPathFigure(ptr)
@ stub GdipStringFormatGetGenericDefault
...
...
dlls/gdiplus/gdiplus_private.h
View file @
f30732fd
...
...
@@ -67,6 +67,7 @@ struct GpGraphics{
PixelOffsetMode
pixeloffset
;
GpUnit
unit
;
/* page unit */
REAL
scale
;
/* page scale */
GpMatrix
*
worldtrans
;
/* world transform */
};
struct
GpBrush
{
...
...
dlls/gdiplus/graphics.c
View file @
f30732fd
...
...
@@ -734,6 +734,8 @@ end:
GpStatus
WINGDIPAPI
GdipCreateFromHDC
(
HDC
hdc
,
GpGraphics
**
graphics
)
{
GpStatus
retval
;
if
(
hdc
==
NULL
)
return
OutOfMemory
;
...
...
@@ -743,6 +745,11 @@ GpStatus WINGDIPAPI GdipCreateFromHDC(HDC hdc, GpGraphics **graphics)
*
graphics
=
GdipAlloc
(
sizeof
(
GpGraphics
));
if
(
!*
graphics
)
return
OutOfMemory
;
if
((
retval
=
GdipCreateMatrix
(
&
(
*
graphics
)
->
worldtrans
))
!=
Ok
){
GdipFree
(
*
graphics
);
return
retval
;
}
(
*
graphics
)
->
hdc
=
hdc
;
(
*
graphics
)
->
hwnd
=
NULL
;
(
*
graphics
)
->
smoothing
=
SmoothingModeDefault
;
...
...
@@ -773,6 +780,7 @@ GpStatus WINGDIPAPI GdipDeleteGraphics(GpGraphics *graphics)
if
(
graphics
->
hwnd
)
ReleaseDC
(
graphics
->
hwnd
,
graphics
->
hdc
);
GdipDeleteMatrix
(
graphics
->
worldtrans
);
HeapFree
(
GetProcessHeap
(),
0
,
graphics
);
return
Ok
;
...
...
@@ -1133,6 +1141,15 @@ GpStatus WINGDIPAPI GdipGetSmoothingMode(GpGraphics *graphics, SmoothingMode *mo
return
Ok
;
}
GpStatus
WINGDIPAPI
GdipGetWorldTransform
(
GpGraphics
*
graphics
,
GpMatrix
*
matrix
)
{
if
(
!
graphics
||
!
matrix
)
return
InvalidParameter
;
memcpy
(
matrix
,
graphics
->
worldtrans
,
sizeof
(
GpMatrix
));
return
Ok
;
}
GpStatus
WINGDIPAPI
GdipRestoreGraphics
(
GpGraphics
*
graphics
,
GraphicsState
state
)
{
if
(
!
graphics
)
...
...
@@ -1215,3 +1232,12 @@ GpStatus WINGDIPAPI GdipSetSmoothingMode(GpGraphics *graphics, SmoothingMode mod
return
Ok
;
}
GpStatus
WINGDIPAPI
GdipSetWorldTransform
(
GpGraphics
*
graphics
,
GpMatrix
*
matrix
)
{
if
(
!
graphics
||
!
matrix
)
return
InvalidParameter
;
GdipDeleteMatrix
(
graphics
->
worldtrans
);
return
GdipCloneMatrix
(
matrix
,
&
graphics
->
worldtrans
);
}
include/gdiplusflat.h
View file @
f30732fd
...
...
@@ -66,6 +66,7 @@ GpStatus WINGDIPAPI GdipGetPageScale(GpGraphics*,REAL*);
GpStatus
WINGDIPAPI
GdipGetPageUnit
(
GpGraphics
*
,
GpUnit
*
);
GpStatus
WINGDIPAPI
GdipGetPixelOffsetMode
(
GpGraphics
*
,
PixelOffsetMode
*
);
GpStatus
WINGDIPAPI
GdipGetSmoothingMode
(
GpGraphics
*
,
SmoothingMode
*
);
GpStatus
WINGDIPAPI
GdipGetWorldTransform
(
GpGraphics
*
,
GpMatrix
*
);
GpStatus
WINGDIPAPI
GdipRestoreGraphics
(
GpGraphics
*
,
GraphicsState
);
GpStatus
WINGDIPAPI
GdipSaveGraphics
(
GpGraphics
*
,
GraphicsState
*
);
GpStatus
WINGDIPAPI
GdipSetCompositingQuality
(
GpGraphics
*
,
CompositingQuality
);
...
...
@@ -74,6 +75,7 @@ GpStatus WINGDIPAPI GdipSetPageScale(GpGraphics*,REAL);
GpStatus
WINGDIPAPI
GdipSetPageUnit
(
GpGraphics
*
,
GpUnit
);
GpStatus
WINGDIPAPI
GdipSetPixelOffsetMode
(
GpGraphics
*
,
PixelOffsetMode
);
GpStatus
WINGDIPAPI
GdipSetSmoothingMode
(
GpGraphics
*
,
SmoothingMode
);
GpStatus
WINGDIPAPI
GdipSetWorldTransform
(
GpGraphics
*
,
GpMatrix
*
);
GpStatus
WINGDIPAPI
GdipCloneBrush
(
GpBrush
*
,
GpBrush
**
);
GpStatus
WINGDIPAPI
GdipCreateSolidFill
(
ARGB
,
GpSolidFill
**
);
...
...
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