Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
a28ddddc
Commit
a28ddddc
authored
Sep 07, 2011
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32: Leave it up to the driver to push the new device on the DC stack in CreateDC.
parent
c331a1a6
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
11 additions
and
13 deletions
+11
-13
dc.c
dlls/gdi32/dc.c
+1
-3
driver.c
dlls/gdi32/driver.c
+1
-1
init.c
dlls/wineps.drv/init.c
+4
-4
init.c
dlls/winex11.drv/init.c
+3
-3
gdi_driver.h
include/wine/gdi_driver.h
+2
-2
No files found.
dlls/gdi32/dc.c
View file @
a28ddddc
...
...
@@ -628,13 +628,11 @@ HDC WINAPI CreateDCW( LPCWSTR driver, LPCWSTR device, LPCWSTR output,
if
(
funcs
->
pCreateDC
)
{
PHYSDEV
physdev
;
if
(
!
funcs
->
pCreateDC
(
hdc
,
&
physdev
,
buf
,
device
,
output
,
initData
))
if
(
!
funcs
->
pCreateDC
(
&
dc
->
physDev
,
buf
,
device
,
output
,
initData
))
{
WARN
(
"creation aborted by device
\n
"
);
goto
error
;
}
push_dc_driver
(
&
dc
->
physDev
,
physdev
,
funcs
);
}
dc
->
vis_rect
.
left
=
0
;
...
...
dlls/gdi32/driver.c
View file @
a28ddddc
...
...
@@ -224,7 +224,7 @@ static BOOL nulldrv_CreateCompatibleDC( PHYSDEV orig, PHYSDEV *pdev )
return
display_driver
->
funcs
->
pCreateCompatibleDC
(
NULL
,
pdev
);
}
static
BOOL
nulldrv_CreateDC
(
HDC
hdc
,
PHYSDEV
*
dev
,
LPCWSTR
driver
,
LPCWSTR
device
,
static
BOOL
nulldrv_CreateDC
(
PHYSDEV
*
dev
,
LPCWSTR
driver
,
LPCWSTR
device
,
LPCWSTR
output
,
const
DEVMODEW
*
devmode
)
{
assert
(
0
);
/* should never be called */
...
...
dlls/wineps.drv/init.c
View file @
a28ddddc
...
...
@@ -323,8 +323,8 @@ static PSDRV_PDEVICE *create_psdrv_physdev( PRINTERINFO *pi )
/**********************************************************************
* PSDRV_CreateDC
*/
static
BOOL
PSDRV_CreateDC
(
HDC
hdc
,
PHYSDEV
*
pdev
,
LPCWSTR
driver
,
LPCWSTR
device
,
LPCWSTR
output
,
const
DEVMODEW
*
initData
)
static
BOOL
PSDRV_CreateDC
(
PHYSDEV
*
pdev
,
LPCWSTR
driver
,
LPCWSTR
device
,
LPCWSTR
output
,
const
DEVMODEW
*
initData
)
{
PSDRV_PDEVICE
*
physDev
;
PRINTERINFO
*
pi
;
...
...
@@ -354,7 +354,6 @@ static BOOL PSDRV_CreateDC( HDC hdc, PHYSDEV *pdev, LPCWSTR driver, LPCWSTR devi
}
if
(
!
(
physDev
=
create_psdrv_physdev
(
pi
)))
return
FALSE
;
*
pdev
=
&
physDev
->
dev
;
if
(
output
&&
*
output
)
{
INT
len
=
WideCharToMultiByte
(
CP_ACP
,
0
,
output
,
-
1
,
NULL
,
0
,
NULL
,
NULL
);
...
...
@@ -369,7 +368,8 @@ static BOOL PSDRV_CreateDC( HDC hdc, PHYSDEV *pdev, LPCWSTR driver, LPCWSTR devi
}
PSDRV_UpdateDevCaps
(
physDev
);
SelectObject
(
hdc
,
PSDRV_DefaultFont
);
SelectObject
(
(
*
pdev
)
->
hdc
,
PSDRV_DefaultFont
);
push_dc_driver
(
pdev
,
&
physDev
->
dev
,
&
psdrv_funcs
);
return
TRUE
;
}
...
...
dlls/winex11.drv/init.c
View file @
a28ddddc
...
...
@@ -144,8 +144,8 @@ static X11DRV_PDEVICE *create_x11_physdev( Drawable drawable )
/**********************************************************************
* X11DRV_CreateDC
*/
static
BOOL
X11DRV_CreateDC
(
HDC
hdc
,
PHYSDEV
*
pdev
,
LPCWSTR
driver
,
LPCWSTR
device
,
LPCWSTR
output
,
const
DEVMODEW
*
initData
)
static
BOOL
X11DRV_CreateDC
(
PHYSDEV
*
pdev
,
LPCWSTR
driver
,
LPCWSTR
device
,
LPCWSTR
output
,
const
DEVMODEW
*
initData
)
{
X11DRV_PDEVICE
*
physDev
=
create_x11_physdev
(
root_window
);
...
...
@@ -156,7 +156,7 @@ static BOOL X11DRV_CreateDC( HDC hdc, PHYSDEV *pdev, LPCWSTR driver, LPCWSTR dev
physDev
->
drawable_rect
=
virtual_screen_rect
;
SetRect
(
&
physDev
->
dc_rect
,
0
,
0
,
virtual_screen_rect
.
right
-
virtual_screen_rect
.
left
,
virtual_screen_rect
.
bottom
-
virtual_screen_rect
.
top
);
*
pdev
=
&
physDev
->
dev
;
push_dc_driver
(
pdev
,
&
physDev
->
dev
,
&
x11drv_funcs
)
;
return
TRUE
;
}
...
...
include/wine/gdi_driver.h
View file @
a28ddddc
...
...
@@ -66,7 +66,7 @@ struct gdi_dc_funcs
BOOL
(
*
pCloseFigure
)(
PHYSDEV
);
BOOL
(
*
pCreateBitmap
)(
PHYSDEV
,
HBITMAP
);
BOOL
(
*
pCreateCompatibleDC
)(
PHYSDEV
,
PHYSDEV
*
);
BOOL
(
*
pCreateDC
)(
HDC
,
PHYSDEV
*
,
LPCWSTR
,
LPCWSTR
,
LPCWSTR
,
const
DEVMODEW
*
);
BOOL
(
*
pCreateDC
)(
PHYSDEV
*
,
LPCWSTR
,
LPCWSTR
,
LPCWSTR
,
const
DEVMODEW
*
);
HBITMAP
(
*
pCreateDIBSection
)(
PHYSDEV
,
HBITMAP
,
BITMAPINFO
*
,
UINT
);
BOOL
(
*
pDeleteBitmap
)(
HBITMAP
);
BOOL
(
*
pDeleteDC
)(
PHYSDEV
);
...
...
@@ -189,7 +189,7 @@ struct gdi_dc_funcs
};
/* increment this when you change the DC function table */
#define WINE_GDI_DRIVER_VERSION 1
2
#define WINE_GDI_DRIVER_VERSION 1
3
static
inline
PHYSDEV
get_physdev_entry_point
(
PHYSDEV
dev
,
size_t
offset
)
{
...
...
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