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
5f5c7020
Commit
5f5c7020
authored
Mar 08, 2011
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32: Add a common header to the physdev structure.
parent
76645c5e
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
19 additions
and
2 deletions
+19
-2
dc.c
dlls/gdi32/dc.c
+4
-0
enhmetafiledrv.h
dlls/gdi32/enhmfdrv/enhmetafiledrv.h
+1
-0
init.c
dlls/gdi32/enhmfdrv/init.c
+2
-0
gdi_private.h
dlls/gdi32/gdi_private.h
+5
-1
init.c
dlls/gdi32/mfdrv/init.c
+2
-0
metafiledrv.h
dlls/gdi32/mfdrv/metafiledrv.h
+1
-0
psdrv.h
dlls/wineps.drv/psdrv.h
+3
-1
x11drv.h
dlls/winex11.drv/x11drv.h
+1
-0
No files found.
dlls/gdi32/dc.c
View file @
5f5c7020
...
...
@@ -667,6 +667,8 @@ HDC WINAPI CreateDCW( LPCWSTR driver, LPCWSTR device, LPCWSTR output,
goto
error
;
}
dc
->
physDev
->
funcs
=
funcs
;
dc
->
physDev
->
hdc
=
hdc
;
dc
->
vis_rect
.
left
=
0
;
dc
->
vis_rect
.
top
=
0
;
dc
->
vis_rect
.
right
=
GetDeviceCaps
(
hdc
,
DESKTOPHORZRES
);
...
...
@@ -791,6 +793,8 @@ HDC WINAPI CreateCompatibleDC( HDC hdc )
goto
error
;
}
dc
->
physDev
->
funcs
=
funcs
;
dc
->
physDev
->
hdc
=
hdc
;
DC_InitDC
(
dc
);
release_dc_ptr
(
dc
);
return
ret
;
...
...
dlls/gdi32/enhmfdrv/enhmetafiledrv.h
View file @
5f5c7020
...
...
@@ -32,6 +32,7 @@
typedef
struct
{
struct
gdi_physdev
dev
;
HDC
hdc
;
ENHMETAHEADER
*
emh
;
/* Pointer to enhanced metafile header */
UINT
handles_size
,
cur_handles
;
...
...
dlls/gdi32/enhmfdrv/init.c
View file @
5f5c7020
...
...
@@ -320,6 +320,8 @@ HDC WINAPI CreateEnhMetaFileW(
return
0
;
}
dc
->
physDev
=
(
PHYSDEV
)
physDev
;
physDev
->
dev
.
funcs
=
&
EMFDRV_Funcs
;
physDev
->
dev
.
hdc
=
dc
->
hSelf
;
physDev
->
hdc
=
dc
->
hSelf
;
if
(
description
)
{
/* App name\0Title\0\0 */
...
...
dlls/gdi32/gdi_private.h
View file @
5f5c7020
...
...
@@ -72,7 +72,11 @@ typedef struct tagGDIOBJHDR
/* Device functions for the Wine driver interface */
typedef
struct
{
int
opaque
;
}
*
PHYSDEV
;
/* PHYSDEV is an opaque pointer */
typedef
struct
gdi_physdev
{
const
struct
tagDC_FUNCS
*
funcs
;
HDC
hdc
;
}
*
PHYSDEV
;
typedef
struct
tagDC_FUNCS
{
...
...
dlls/gdi32/mfdrv/init.c
View file @
5f5c7020
...
...
@@ -172,6 +172,8 @@ static DC *MFDRV_AllocMetaFile(void)
return
NULL
;
}
dc
->
physDev
=
(
PHYSDEV
)
physDev
;
physDev
->
dev
.
funcs
=
&
MFDRV_Funcs
;
physDev
->
dev
.
hdc
=
dc
->
hSelf
;
physDev
->
hdc
=
dc
->
hSelf
;
if
(
!
(
physDev
->
mh
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
*
physDev
->
mh
)
)))
...
...
dlls/gdi32/mfdrv/metafiledrv.h
View file @
5f5c7020
...
...
@@ -32,6 +32,7 @@
typedef
struct
{
struct
gdi_physdev
dev
;
HDC
hdc
;
METAHEADER
*
mh
;
/* Pointer to metafile header */
UINT
handles_size
,
cur_handles
;
...
...
dlls/wineps.drv/psdrv.h
View file @
5f5c7020
...
...
@@ -351,7 +351,9 @@ typedef struct {
BOOL
had_passthrough_rect
;
/* See the comment in PSDRV_Rectangle */
}
JOB
;
typedef
struct
{
typedef
struct
{
void
*
reserved
[
2
];
/* reserved for gdi */
HDC
hdc
;
PSFONT
font
;
/* Current PS font */
DOWNLOAD
*
downloaded_fonts
;
...
...
dlls/winex11.drv/x11drv.h
View file @
5f5c7020
...
...
@@ -144,6 +144,7 @@ struct xrender_info;
/* X physical device */
typedef
struct
{
void
*
reserved
[
2
];
/* reserved for gdi */
HDC
hdc
;
GC
gc
;
/* X Window GC */
Drawable
drawable
;
...
...
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