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
cba84884
Commit
cba84884
authored
Oct 23, 1998
by
Juergen Schmied
Committed by
Alexandre Julliard
Oct 23, 1998
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
New FONT_GetObject32W(), GetObject32W().
parent
8e26b583
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
55 additions
and
9 deletions
+55
-9
font.h
include/font.h
+1
-1
font.c
objects/font.c
+13
-0
gdiobj.c
objects/gdiobj.c
+41
-8
No files found.
include/font.h
View file @
cba84884
...
...
@@ -58,7 +58,7 @@ typedef struct {
extern
BOOL32
FONT_Init
(
UINT16
*
pTextCaps
);
extern
INT16
FONT_GetObject16
(
FONTOBJ
*
font
,
INT16
count
,
LPSTR
buffer
);
extern
INT32
FONT_GetObject32A
(
FONTOBJ
*
font
,
INT32
count
,
LPSTR
buffer
);
extern
INT32
FONT_GetObject32W
(
FONTOBJ
*
font
,
INT32
count
,
LPSTR
buffer
);
extern
void
FONT_LogFont32ATo16
(
const
LOGFONT32A
*
font32
,
LPLOGFONT16
font16
);
extern
void
FONT_LogFont32WTo16
(
const
LOGFONT32W
*
font32
,
LPLOGFONT16
font16
);
extern
void
FONT_LogFont16To32A
(
const
LPLOGFONT16
font16
,
LPLOGFONT32A
font32
);
...
...
objects/font.c
View file @
cba84884
...
...
@@ -343,6 +343,19 @@ INT32 FONT_GetObject32A( FONTOBJ *font, INT32 count, LPSTR buffer )
memcpy
(
buffer
,
&
fnt32
,
count
);
return
count
;
}
/***********************************************************************
* FONT_GetObject32W
*/
INT32
FONT_GetObject32W
(
FONTOBJ
*
font
,
INT32
count
,
LPSTR
buffer
)
{
LOGFONT32W
fnt32
;
FONT_LogFont16To32W
(
&
font
->
logfont
,
&
fnt32
);
if
(
count
>
sizeof
(
fnt32
))
count
=
sizeof
(
fnt32
);
memcpy
(
buffer
,
&
fnt32
,
count
);
return
count
;
}
/***********************************************************************
...
...
objects/gdiobj.c
View file @
cba84884
...
...
@@ -478,6 +478,47 @@ INT32 WINAPI GetObject32A( HANDLE32 handle, INT32 count, LPVOID buffer )
GDI_HEAP_UNLOCK
(
handle
);
return
result
;
}
/***********************************************************************
* GetObject32W (GDI32.206)
*/
INT32
WINAPI
GetObject32W
(
HANDLE32
handle
,
INT32
count
,
LPVOID
buffer
)
{
GDIOBJHDR
*
ptr
=
NULL
;
INT32
result
=
0
;
TRACE
(
gdi
,
"%08x %d %p
\n
"
,
handle
,
count
,
buffer
);
if
(
!
count
)
return
0
;
if
((
handle
>=
FIRST_STOCK_HANDLE
)
&&
(
handle
<=
LAST_STOCK_HANDLE
))
ptr
=
StockObjects
[
handle
-
FIRST_STOCK_HANDLE
];
else
ptr
=
(
GDIOBJHDR
*
)
GDI_HEAP_LOCK
(
handle
);
if
(
!
ptr
)
return
0
;
switch
(
ptr
->
wMagic
)
{
case
PEN_MAGIC
:
result
=
PEN_GetObject32
(
(
PENOBJ
*
)
ptr
,
count
,
buffer
);
break
;
case
BRUSH_MAGIC
:
result
=
BRUSH_GetObject32
(
(
BRUSHOBJ
*
)
ptr
,
count
,
buffer
);
break
;
case
BITMAP_MAGIC
:
result
=
BITMAP_GetObject32
(
(
BITMAPOBJ
*
)
ptr
,
count
,
buffer
);
break
;
case
FONT_MAGIC
:
result
=
FONT_GetObject32W
(
(
FONTOBJ
*
)
ptr
,
count
,
buffer
);
break
;
case
PALETTE_MAGIC
:
result
=
PALETTE_GetObject
(
(
PALETTEOBJ
*
)
ptr
,
count
,
buffer
);
break
;
default:
FIXME
(
gdi
,
"Magic %04x not implemented
\n
"
,
ptr
->
wMagic
);
break
;
}
GDI_HEAP_UNLOCK
(
handle
);
return
result
;
}
/***********************************************************************
* GetObjectType (GDI32.205)
...
...
@@ -537,14 +578,6 @@ DWORD WINAPI GetObjectType( HANDLE32 handle )
}
/***********************************************************************
* GetObject32W (GDI32.206)
*/
INT32
WINAPI
GetObject32W
(
HANDLE32
handle
,
INT32
count
,
LPVOID
buffer
)
{
return
GetObject32A
(
handle
,
count
,
buffer
);
}
/***********************************************************************
* GetCurrentObject (GDI32.166)
*/
HANDLE32
WINAPI
GetCurrentObject
(
HDC32
hdc
,
UINT32
type
)
...
...
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