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
73be69c5
Commit
73be69c5
authored
Aug 14, 2007
by
Evan Stade
Committed by
Alexandre Julliard
Aug 15, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Added string format constructor.
parent
62cae5ab
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
55 additions
and
2 deletions
+55
-2
Makefile.in
dlls/gdiplus/Makefile.in
+2
-1
gdiplus.spec
dlls/gdiplus/gdiplus.spec
+1
-1
gdiplus_private.h
dlls/gdiplus/gdiplus_private.h
+5
-0
stringformat.c
dlls/gdiplus/stringformat.c
+45
-0
gdiplusflat.h
include/gdiplusflat.h
+2
-0
No files found.
dlls/gdiplus/Makefile.in
View file @
73be69c5
...
...
@@ -18,7 +18,8 @@ C_SRCS = \
imageattributes.c
\
matrix.c
\
pathiterator.c
\
pen.c
pen.c
\
stringformat.c
@MAKE_DLL_RULES@
...
...
dlls/gdiplus/gdiplus.spec
View file @
73be69c5
...
...
@@ -130,7 +130,7 @@
@ stub GdipCreateRegionRgnData
@ stdcall GdipCreateSolidFill(long ptr)
@ stdcall GdipCreateStreamOnFile(ptr long ptr)
@ st
ub GdipCreateStringFormat
@ st
dcall GdipCreateStringFormat(long long ptr)
@ stub GdipCreateTexture2
@ stub GdipCreateTexture2I
@ stub GdipCreateTexture
...
...
dlls/gdiplus/gdiplus_private.h
View file @
73be69c5
...
...
@@ -174,4 +174,9 @@ struct GpFont{
LOGFONTW
lfw
;
};
struct
GpStringFormat
{
INT
attr
;
LANGID
lang
;
};
#endif
dlls/gdiplus/stringformat.c
0 → 100644
View file @
73be69c5
/*
*
* 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 "winnls.h"
#include "objbase.h"
#include "gdiplus.h"
#include "gdiplus_private.h"
GpStatus
WINGDIPAPI
GdipCreateStringFormat
(
INT
attr
,
LANGID
lang
,
GpStringFormat
**
format
)
{
if
(
!
format
)
return
InvalidParameter
;
*
format
=
GdipAlloc
(
sizeof
(
GpStringFormat
));
if
(
!*
format
)
return
OutOfMemory
;
(
*
format
)
->
attr
=
attr
;
(
*
format
)
->
lang
=
lang
;
return
Ok
;
}
include/gdiplusflat.h
View file @
73be69c5
...
...
@@ -244,6 +244,8 @@ GpStatus WINGDIPAPI GdipCreateFontFromLogfontW(HDC,GDIPCONST LOGFONTW*,GpFont**)
GpStatus
WINGDIPAPI
GdipDeleteFont
(
GpFont
*
);
GpStatus
WINGDIPAPI
GdipGetLogFontW
(
GpFont
*
,
GpGraphics
*
,
LOGFONTW
*
);
GpStatus
WINGDIPAPI
GdipCreateStringFormat
(
INT
,
LANGID
,
GpStringFormat
**
);
#ifdef __cplusplus
}
#endif
...
...
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