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
d5af0175
Commit
d5af0175
authored
Nov 22, 1998
by
Gael de Chalendar
Committed by
Alexandre Julliard
Nov 22, 1998
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Partially complete GetTextCharsetInfo and corrects return values for
this family of functions.
parent
1509b2d0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
16 deletions
+27
-16
windows.h
include/windows.h
+3
-3
text.c
objects/text.c
+24
-13
No files found.
include/windows.h
View file @
d5af0175
...
...
@@ -6883,7 +6883,7 @@ BOOL32 WINAPI GetStringTypeEx32W(LCID,DWORD,LPCWSTR,INT32,LPWORD);
VOID
WINAPI
GetSystemInfo
(
LPSYSTEM_INFO
);
BOOL32
WINAPI
GetSystemPowerStatus
(
LPSYSTEM_POWER_STATUS
);
VOID
WINAPI
GetSystemTime
(
LPSYSTEMTIME
);
INT32
WINAPI
GetTextCharsetInfo
(
HDC32
,
LPCHARSETINFO
,
DWORD
);
UINT32
WINAPI
GetTextCharsetInfo
(
HDC32
,
LPFONTSIGNATURE
,
DWORD
);
BOOL32
WINAPI
GetTextExtentExPoint32A
(
HDC32
,
LPCSTR
,
INT32
,
INT32
,
LPINT32
,
LPINT32
,
LPSIZE32
);
BOOL32
WINAPI
GetTextExtentExPoint32W
(
HDC32
,
LPCWSTR
,
INT32
,
INT32
,
...
...
@@ -8314,8 +8314,8 @@ UINT32 WINAPI GetTextAlign32(HDC32);
INT16
WINAPI
GetTextCharacterExtra16
(
HDC16
);
INT32
WINAPI
GetTextCharacterExtra32
(
HDC32
);
#define GetTextCharacterExtra WINELIB_NAME(GetTextCharacterExtra)
INT16
WINAPI
GetTextCharset16
(
HDC16
);
INT32
WINAPI
GetTextCharset32
(
HDC32
);
UINT16
WINAPI
GetTextCharset16
(
HDC16
);
UINT32
WINAPI
GetTextCharset32
(
HDC32
);
#define GetTextCharset WINELIB_NAME(GetTextCharset)
COLORREF
WINAPI
GetTextColor16
(
HDC16
);
COLORREF
WINAPI
GetTextColor32
(
HDC32
);
...
...
objects/text.c
View file @
d5af0175
...
...
@@ -721,12 +721,13 @@ DWORD WINAPI GetTabbedTextExtent32W( HDC32 hdc, LPCWSTR lpstr, INT32 count,
*
* NOTES
* Should it return a UINT32 instead of an INT32?
* => YES, as GetTextCharsetInfo returns UINT32
*
* RETURNS
* Success: Character set identifier
* Failure: DEFAULT_CHARSET
*/
INT32
WINAPI
GetTextCharset32
(
U
INT32
WINAPI
GetTextCharset32
(
HDC32
hdc
)
/* [in] Handle to device context */
{
/* MSDN docs say this is equivalent */
...
...
@@ -736,9 +737,9 @@ INT32 WINAPI GetTextCharset32(
/***********************************************************************
* GetTextCharset16 [GDI.612]
*/
INT16
WINAPI
GetTextCharset16
(
HDC16
hdc
)
U
INT16
WINAPI
GetTextCharset16
(
HDC16
hdc
)
{
return
GetTextCharset32
(
hdc
);
return
(
UINT16
)
GetTextCharset32
(
hdc
);
}
/***********************************************************************
...
...
@@ -747,21 +748,31 @@ INT16 WINAPI GetTextCharset16(HDC16 hdc)
* NOTES
* Should csi be an LPFONTSIGNATURE instead of an LPCHARSETINFO?
* Should it return a UINT32 instead of an INT32?
* => YES and YES, from win32.hlp from Borland
*
* RETURNS
* Success: Character set identifier
* Failure: DEFAULT_CHARSET
*/
INT32
WINAPI
GetTextCharsetInfo
(
HDC32
hdc
,
/* [in] Handle to device context */
LP
CHARSETINFO
csi
,
/* [out] Pointer to struct to receive data */
DWORD
flags
)
/* [in] Reserved - must be 0 */
U
INT32
WINAPI
GetTextCharsetInfo
(
HDC32
hdc
,
/* [in] Handle to device context */
LP
FONTSIGNATURE
fs
,
/* [out] Pointer to struct to receive data */
DWORD
flags
)
/* [in] Reserved - must be 0 */
{
FIXME
(
text
,
"(0x%x,%p,%08lx): stub
\n
"
,
hdc
,
csi
,
flags
);
if
(
csi
)
{
csi
->
ciCharset
=
DEFAULT_CHARSET
;
csi
->
ciACP
=
GetACP
();
HGDIOBJ32
hFont
;
UINT32
charSet
=
DEFAULT_CHARSET
;
LOGFONT32W
lf
;
if
(
fs
!=
NULL
)
FIXME
(
text
,
"(0x%x,%p,%08lx): stub
\n
"
,
hdc
,
fs
,
flags
);
hFont
=
GetCurrentObject
(
hdc
,
OBJ_FONT
);
if
(
hFont
==
0
)
return
(
DEFAULT_CHARSET
);
if
(
GetObject32W
(
hFont
,
sizeof
(
LOGFONT32W
),
&
lf
)
!=
0
)
charSet
=
lf
.
lfCharSet
;
if
(
fs
!=
NULL
)
{
/* ... fill fontstruct too ... still to do*/
}
/* ... fill fontstruct too ... */
return
DEFAULT_CHARSET
;
return
charSet
;
}
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