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
1fdae2b2
Commit
1fdae2b2
authored
Feb 18, 2008
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32: Reimplemented IsGDIObject16 and moved it to gdi16.c.
parent
125793df
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
33 additions
and
20 deletions
+33
-20
gdi16.c
dlls/gdi32/gdi16.c
+33
-0
gdiobj.c
dlls/gdi32/gdiobj.c
+0
-20
No files found.
dlls/gdi32/gdi16.c
View file @
1fdae2b2
...
...
@@ -2357,6 +2357,39 @@ void WINAPI SetObjectOwner16( HGDIOBJ16 handle, HANDLE16 owner )
/***********************************************************************
* IsGDIObject (GDI.462)
*
* returns type of object if valid (W95 system programming secrets p. 264-5)
*/
BOOL16
WINAPI
IsGDIObject16
(
HGDIOBJ16
handle16
)
{
static
const
BYTE
type_map
[]
=
{
0
,
/* bad */
1
,
/* OBJ_PEN */
2
,
/* OBJ_BRUSH */
7
,
/* OBJ_DC */
9
,
/* OBJ_METADC */
4
,
/* OBJ_PAL */
3
,
/* OBJ_FONT */
5
,
/* OBJ_BITMAP */
6
,
/* OBJ_REGION */
10
,
/* OBJ_METAFILE */
7
,
/* OBJ_MEMDC */
0
,
/* OBJ_EXTPEN */
9
,
/* OBJ_ENHMETADC */
12
,
/* OBJ_ENHMETAFILE */
0
/* OBJ_COLORSPACE */
};
UINT
type
=
GetObjectType
(
HGDIOBJ_32
(
handle16
));
if
(
type
>=
sizeof
(
type_map
)
/
sizeof
(
type_map
[
0
]))
return
0
;
return
type_map
[
type
];
}
/***********************************************************************
* RectVisible (GDI.465)
* RectVisibleOld (GDI.104)
*/
...
...
dlls/gdi32/gdiobj.c
View file @
1fdae2b2
...
...
@@ -1257,26 +1257,6 @@ INT WINAPI EnumObjects( HDC hdc, INT nObjType,
/***********************************************************************
* IsGDIObject (GDI.462)
*
* returns type of object if valid (W95 system programming secrets p. 264-5)
*/
BOOL16
WINAPI
IsGDIObject16
(
HGDIOBJ16
handle16
)
{
UINT16
magic
=
0
;
HGDIOBJ
handle
=
HGDIOBJ_32
(
handle16
);
GDIOBJHDR
*
object
=
GDI_GetObjPtr
(
handle
,
MAGIC_DONTCARE
);
if
(
object
)
{
magic
=
GDIMAGIC
(
object
->
wMagic
)
-
FIRST_MAGIC
+
1
;
GDI_ReleaseObj
(
handle
);
}
return
magic
;
}
/***********************************************************************
* SetObjectOwner (GDI32.@)
*/
void
WINAPI
SetObjectOwner
(
HGDIOBJ
handle
,
HANDLE
owner
)
...
...
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