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
f28262b4
Commit
f28262b4
authored
Jul 11, 2007
by
Evan Stade
Committed by
Alexandre Julliard
Jul 12, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Added basic matrix implementation.
parent
6f4ab528
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
70 additions
and
2 deletions
+70
-2
Makefile.in
dlls/gdiplus/Makefile.in
+1
-0
gdiplus.spec
dlls/gdiplus/gdiplus.spec
+2
-2
gdiplus_private.h
dlls/gdiplus/gdiplus_private.h
+4
-0
matrix.c
dlls/gdiplus/matrix.c
+58
-0
gdiplusflat.h
include/gdiplusflat.h
+3
-0
gdiplusgpstubs.h
include/gdiplusgpstubs.h
+2
-0
No files found.
dlls/gdiplus/Makefile.in
View file @
f28262b4
...
...
@@ -11,6 +11,7 @@ C_SRCS = \
gdiplus.c
\
graphics.c
\
graphicspath.c
\
matrix.c
\
pen.c
@MAKE_DLL_RULES@
...
...
dlls/gdiplus/gdiplus.spec
View file @
f28262b4
...
...
@@ -95,7 +95,7 @@
@ stub GdipCreateLineBrushFromRectWithAngle
@ stub GdipCreateLineBrushFromRectWithAngleI
@ stub GdipCreateLineBrushI
@ st
ub GdipCreateMatrix2
@ st
dcall GdipCreateMatrix2(long long long long long long ptr)
@ stub GdipCreateMatrix3
@ stub GdipCreateMatrix3I
@ stub GdipCreateMatrix
...
...
@@ -133,7 +133,7 @@
@ stub GdipDeleteFont
@ stub GdipDeleteFontFamily
@ stdcall GdipDeleteGraphics(ptr)
@ st
ub GdipDeleteMatrix
@ st
dcall GdipDeleteMatrix(ptr)
@ stdcall GdipDeletePath(ptr)
@ stub GdipDeletePathIter
@ stdcall GdipDeletePen(ptr)
...
...
dlls/gdiplus/gdiplus_private.h
View file @
f28262b4
...
...
@@ -71,4 +71,8 @@ struct GpPath{
INT
datalen
;
/* size of the arrays in pathdata */
};
struct
GpMatrix
{
REAL
matrix
[
6
];
};
#endif
dlls/gdiplus/matrix.c
0 → 100644
View file @
f28262b4
/*
* Copyright (C) 2007 Google (Evan Stade)
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#include <stdarg.h>
#include "windef.h"
#include "winbase.h"
#include "wingdi.h"
#include "gdiplus.h"
#include "gdiplus_private.h"
GpStatus
WINGDIPAPI
GdipCreateMatrix2
(
REAL
m11
,
REAL
m12
,
REAL
m21
,
REAL
m22
,
REAL
dx
,
REAL
dy
,
GpMatrix
**
matrix
)
{
if
(
!
matrix
)
return
InvalidParameter
;
*
matrix
=
GdipAlloc
(
sizeof
(
GpMatrix
));
if
(
!*
matrix
)
return
OutOfMemory
;
/* first row */
(
*
matrix
)
->
matrix
[
0
]
=
m11
;
(
*
matrix
)
->
matrix
[
1
]
=
m12
;
/* second row */
(
*
matrix
)
->
matrix
[
2
]
=
m21
;
(
*
matrix
)
->
matrix
[
3
]
=
m22
;
/* third row */
(
*
matrix
)
->
matrix
[
4
]
=
dx
;
(
*
matrix
)
->
matrix
[
5
]
=
dy
;
return
Ok
;
}
GpStatus
WINGDIPAPI
GdipDeleteMatrix
(
GpMatrix
*
matrix
)
{
if
(
!
matrix
)
return
InvalidParameter
;
GdipFree
(
matrix
);
return
Ok
;
}
include/gdiplusflat.h
View file @
f28262b4
...
...
@@ -60,6 +60,9 @@ GpStatus WINGDIPAPI GdipGetPathTypes(GpPath*,BYTE*,INT);
GpStatus
WINGDIPAPI
GdipGetPointCount
(
GpPath
*
,
INT
*
);
GpStatus
WINGDIPAPI
GdipStartPathFigure
(
GpPath
*
);
GpStatus
WINGDIPAPI
GdipCreateMatrix2
(
REAL
,
REAL
,
REAL
,
REAL
,
REAL
,
REAL
,
GpMatrix
**
);
GpStatus
WINGDIPAPI
GdipDeleteMatrix
(
GpMatrix
*
);
#ifdef __cplusplus
}
#endif
...
...
include/gdiplusgpstubs.h
View file @
f28262b4
...
...
@@ -26,6 +26,7 @@ class GpGraphics {};
class
GpBrush
{};
class
GpSolidFill
{};
class
GpPath
{};
class
GpMatrix
{};
#else
/* end of c++ declarations */
...
...
@@ -34,6 +35,7 @@ typedef struct GpPen GpPen;
typedef
struct
GpBrush
GpBrush
;
typedef
struct
GpSolidFill
GpSolidFill
;
typedef
struct
GpPath
GpPath
;
typedef
struct
GpMatrix
GpMatrix
;
#endif
/* end of c declarations */
...
...
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