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
456891b3
Commit
456891b3
authored
Nov 17, 2006
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32: Stop exporting GDI_GetObjPtr and GDI_ReleaseObj.
parent
5e7afb8c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
37 additions
and
49 deletions
+37
-49
gdi32.spec
dlls/gdi32/gdi32.spec
+0
-6
gdi_private.h
dlls/gdi32/gdi_private.h
+37
-0
gdi.h
include/gdi.h
+0
-43
No files found.
dlls/gdi32/gdi32.spec
View file @
456891b3
...
...
@@ -528,9 +528,3 @@
# GDI objects
@ cdecl __wine_make_gdi_object_system(long long)
################################################################
# Wine dll separation hacks, these will go away, don't use them
#
@ cdecl GDI_GetObjPtr(long long)
@ cdecl GDI_ReleaseObj(long)
dlls/gdi32/gdi_private.h
View file @
456891b3
...
...
@@ -39,6 +39,33 @@ typedef struct {
/* extra stock object: default 1x1 bitmap for memory DCs */
#define DEFAULT_BITMAP (STOCK_LAST+1)
/* GDI objects magic numbers */
#define FIRST_MAGIC 0x4f47
#define PEN_MAGIC 0x4f47
#define BRUSH_MAGIC 0x4f48
#define FONT_MAGIC 0x4f49
#define PALETTE_MAGIC 0x4f4a
#define BITMAP_MAGIC 0x4f4b
#define REGION_MAGIC 0x4f4c
#define DC_MAGIC 0x4f4d
#define DISABLED_DC_MAGIC 0x4f4e
#define META_DC_MAGIC 0x4f4f
#define METAFILE_MAGIC 0x4f50
#define METAFILE_DC_MAGIC 0x4f51
#define ENHMETAFILE_MAGIC 0x4f52
#define ENHMETAFILE_DC_MAGIC 0x4f53
#define MEMORY_DC_MAGIC 0x4f54
#define EXT_PEN_MAGIC 0x4f55
#define LAST_MAGIC 0x4f55
#define MAGIC_DONTCARE 0xffff
/* GDI constants for making objects private/system (naming undoc. !) */
#define OBJECT_PRIVATE 0x2000
#define OBJECT_NOSYSTEM 0x8000
#define GDIMAGIC(magic) ((magic) & ~(OBJECT_PRIVATE|OBJECT_NOSYSTEM))
struct
gdi_obj_funcs
{
HGDIOBJ
(
*
pSelectObject
)(
HGDIOBJ
handle
,
void
*
obj
,
HDC
hdc
);
...
...
@@ -55,6 +82,14 @@ struct hdc_list
struct
hdc_list
*
next
;
};
typedef
struct
tagGDIOBJHDR
{
WORD
wMagic
;
DWORD
dwCount
;
const
struct
gdi_obj_funcs
*
funcs
;
struct
hdc_list
*
hdcs
;
}
GDIOBJHDR
;
/* Device functions for the Wine driver interface */
typedef
struct
{
int
opaque
;
}
*
PHYSDEV
;
/* PHYSDEV is an opaque pointer */
...
...
@@ -406,6 +441,8 @@ extern BOOL GDI_Init(void);
extern
void
*
GDI_AllocObject
(
WORD
,
WORD
,
HGDIOBJ
*
,
const
struct
gdi_obj_funcs
*
funcs
);
extern
void
*
GDI_ReallocObject
(
WORD
,
HGDIOBJ
,
void
*
obj
);
extern
BOOL
GDI_FreeObject
(
HGDIOBJ
,
void
*
obj
);
extern
void
*
GDI_GetObjPtr
(
HGDIOBJ
,
WORD
);
extern
void
GDI_ReleaseObj
(
HGDIOBJ
);
extern
void
GDI_CheckNotLock
(
void
);
extern
BOOL
GDI_hdc_using_object
(
HGDIOBJ
obj
,
HDC
hdc
);
extern
BOOL
GDI_hdc_not_using_object
(
HGDIOBJ
obj
,
HDC
hdc
);
...
...
include/gdi.h
View file @
456891b3
...
...
@@ -28,51 +28,8 @@
#include <wine/wingdi16.h>
#include <math.h>
/* GDI objects magic numbers */
#define FIRST_MAGIC 0x4f47
#define PEN_MAGIC 0x4f47
#define BRUSH_MAGIC 0x4f48
#define FONT_MAGIC 0x4f49
#define PALETTE_MAGIC 0x4f4a
#define BITMAP_MAGIC 0x4f4b
#define REGION_MAGIC 0x4f4c
#define DC_MAGIC 0x4f4d
#define DISABLED_DC_MAGIC 0x4f4e
#define META_DC_MAGIC 0x4f4f
#define METAFILE_MAGIC 0x4f50
#define METAFILE_DC_MAGIC 0x4f51
#define ENHMETAFILE_MAGIC 0x4f52
#define ENHMETAFILE_DC_MAGIC 0x4f53
#define MEMORY_DC_MAGIC 0x4f54
#define EXT_PEN_MAGIC 0x4f55
#define LAST_MAGIC 0x4f55
#define MAGIC_DONTCARE 0xffff
/* GDI constants for making objects private/system (naming undoc. !) */
#define OBJECT_PRIVATE 0x2000
#define OBJECT_NOSYSTEM 0x8000
#define GDIMAGIC(magic) ((magic) & ~(OBJECT_PRIVATE|OBJECT_NOSYSTEM))
struct
gdi_obj_funcs
;
struct
hdc_list
;
typedef
struct
tagGDIOBJHDR
{
WORD
wMagic
;
DWORD
dwCount
;
const
struct
gdi_obj_funcs
*
funcs
;
struct
hdc_list
*
hdcs
;
}
GDIOBJHDR
;
#define NB_RESERVED_COLORS 20
/* number of fixed colors in system palette */
/* GDI local heap */
extern
void
*
GDI_GetObjPtr
(
HGDIOBJ
,
WORD
);
extern
void
GDI_ReleaseObj
(
HGDIOBJ
);
/* GetGlyphOutline */
#define WINE_GGO_GRAY16_BITMAP 0x7f
...
...
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