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
83decd25
Commit
83decd25
authored
Mar 04, 2004
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changed the CreateDC driver entry point to use an HDC instead of a DC
pointer.
parent
37fda71e
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
17 additions
and
23 deletions
+17
-23
gdi_private.h
dlls/gdi/gdi_private.h
+1
-1
dc.c
dlls/ttydrv/dc.c
+4
-6
ttydrv.spec
dlls/ttydrv/ttydrv.spec
+1
-1
init.c
dlls/wineps/init.c
+4
-6
psdrv.h
dlls/wineps/psdrv.h
+0
-1
wineps.spec
dlls/wineps/wineps.spec
+1
-1
init.c
dlls/x11drv/init.c
+3
-4
x11drv.spec
dlls/x11drv/x11drv.spec
+1
-1
dc.c
objects/dc.c
+2
-2
No files found.
dlls/gdi/gdi_private.h
View file @
83decd25
...
...
@@ -59,7 +59,7 @@ typedef struct tagDC_FUNCS
BOOL
(
*
pChord
)(
PHYSDEV
,
INT
,
INT
,
INT
,
INT
,
INT
,
INT
,
INT
,
INT
);
BOOL
(
*
pCloseFigure
)(
PHYSDEV
);
BOOL
(
*
pCreateBitmap
)(
PHYSDEV
,
HBITMAP
);
BOOL
(
*
pCreateDC
)(
DC
*
,
PHYSDEV
*
,
LPCWSTR
,
LPCWSTR
,
LPCWSTR
,
const
DEVMODEW
*
);
BOOL
(
*
pCreateDC
)(
HDC
,
PHYSDEV
*
,
LPCWSTR
,
LPCWSTR
,
LPCWSTR
,
const
DEVMODEW
*
);
HBITMAP
(
*
pCreateDIBSection
)(
PHYSDEV
,
BITMAPINFO
*
,
UINT
,
LPVOID
*
,
HANDLE
,
DWORD
,
DWORD
);
BOOL
(
*
pDeleteBitmap
)(
HBITMAP
);
BOOL
(
*
pDeleteDC
)(
PHYSDEV
);
...
...
dlls/ttydrv/dc.c
View file @
83decd25
...
...
@@ -20,7 +20,6 @@
#include "config.h"
#include "gdi.h"
#include "ttydrv.h"
#include "winbase.h"
#include "wine/debug.h"
...
...
@@ -39,14 +38,13 @@ BOOL TTYDRV_GDI_Initialize(void)
/***********************************************************************
* TTYDRV_DC_CreateDC
*/
BOOL
TTYDRV_DC_CreateDC
(
DC
*
dc
,
TTYDRV_PDEVICE
**
pdev
,
LPCWSTR
driver
,
LPCWSTR
device
,
BOOL
TTYDRV_DC_CreateDC
(
HDC
h
dc
,
TTYDRV_PDEVICE
**
pdev
,
LPCWSTR
driver
,
LPCWSTR
device
,
LPCWSTR
output
,
const
DEVMODEW
*
initData
)
{
TTYDRV_PDEVICE
*
physDev
;
TRACE
(
"(%p, %s, %s, %s, %p)
\n
"
,
dc
,
debugstr_w
(
driver
),
debugstr_w
(
device
),
debugstr_w
(
output
),
initData
);
hdc
,
debugstr_w
(
driver
),
debugstr_w
(
device
),
debugstr_w
(
output
),
initData
);
physDev
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
TTYDRV_PDEVICE
));
if
(
!
physDev
)
{
...
...
@@ -54,10 +52,10 @@ BOOL TTYDRV_DC_CreateDC(DC *dc, TTYDRV_PDEVICE **pdev, LPCWSTR driver, LPCWSTR d
return
FALSE
;
}
*
pdev
=
physDev
;
physDev
->
hdc
=
dc
->
hSelf
;
physDev
->
hdc
=
hdc
;
physDev
->
org
.
x
=
physDev
->
org
.
y
=
0
;
if
(
GetObjectType
(
dc
->
hSelf
)
==
OBJ_MEMDC
)
{
if
(
GetObjectType
(
hdc
)
==
OBJ_MEMDC
)
{
physDev
->
window
=
NULL
;
physDev
->
cellWidth
=
1
;
physDev
->
cellHeight
=
1
;
...
...
dlls/ttydrv/ttydrv.spec
View file @
83decd25
...
...
@@ -3,7 +3,7 @@
@ cdecl Arc(ptr long long long long long long long long) TTYDRV_DC_Arc
@ cdecl BitBlt(ptr long long long long ptr long long long) TTYDRV_DC_BitBlt
@ cdecl Chord(ptr long long long long long long long long) TTYDRV_DC_Chord
@ cdecl CreateDC(
ptr
ptr wstr wstr wstr ptr) TTYDRV_DC_CreateDC
@ cdecl CreateDC(
long
ptr wstr wstr wstr ptr) TTYDRV_DC_CreateDC
@ cdecl DeleteDC(ptr) TTYDRV_DC_DeleteDC
@ cdecl Ellipse(ptr long long long long) TTYDRV_DC_Ellipse
@ cdecl ExtFloodFill(ptr long long long long) TTYDRV_DC_ExtFloodFill
...
...
dlls/wineps/init.c
View file @
83decd25
...
...
@@ -29,7 +29,6 @@
#define NONAMELESSUNION
#define NONAMELESSSTRUCT
#include "gdi.h"
#include "psdrv.h"
#include "wine/debug.h"
#include "winreg.h"
...
...
@@ -104,7 +103,7 @@ static PSDRV_DEVMODEA DefaultDevmode =
HANDLE
PSDRV_Heap
=
0
;
static
H
ANDLE
PSDRV_DefaultFont
=
0
;
static
H
FONT
PSDRV_DefaultFont
=
0
;
static
LOGFONTA
DefaultLogFont
=
{
100
,
0
,
0
,
0
,
FW_NORMAL
,
FALSE
,
FALSE
,
FALSE
,
ANSI_CHARSET
,
0
,
0
,
DEFAULT_QUALITY
,
FIXED_PITCH
|
FF_MODERN
,
""
...
...
@@ -294,7 +293,7 @@ static LPDEVMODEA DEVMODEdupWtoA(HANDLE heap, const DEVMODEW *dmW)
/**********************************************************************
* PSDRV_CreateDC
*/
BOOL
PSDRV_CreateDC
(
DC
*
dc
,
PSDRV_PDEVICE
**
pdev
,
LPCWSTR
driver
,
LPCWSTR
device
,
BOOL
PSDRV_CreateDC
(
HDC
h
dc
,
PSDRV_PDEVICE
**
pdev
,
LPCWSTR
driver
,
LPCWSTR
device
,
LPCWSTR
output
,
const
DEVMODEW
*
initData
)
{
PSDRV_PDEVICE
*
physDev
;
...
...
@@ -327,8 +326,7 @@ BOOL PSDRV_CreateDC( DC *dc, PSDRV_PDEVICE **pdev, LPCWSTR driver, LPCWSTR devic
sizeof
(
*
physDev
)
);
if
(
!
physDev
)
return
FALSE
;
*
pdev
=
physDev
;
physDev
->
hdc
=
dc
->
hSelf
;
physDev
->
dc
=
dc
;
physDev
->
hdc
=
hdc
;
physDev
->
pi
=
pi
;
...
...
@@ -357,7 +355,7 @@ BOOL PSDRV_CreateDC( DC *dc, PSDRV_PDEVICE **pdev, LPCWSTR driver, LPCWSTR devic
}
PSDRV_UpdateDevCaps
(
physDev
);
dc
->
hFont
=
PSDRV_DefaultFont
;
SelectObject
(
hdc
,
PSDRV_DefaultFont
)
;
return
TRUE
;
}
...
...
dlls/wineps/psdrv.h
View file @
83decd25
...
...
@@ -327,7 +327,6 @@ typedef struct {
typedef
struct
{
HDC
hdc
;
struct
tagDC
*
dc
;
PSFONT
font
;
/* Current PS font */
DOWNLOAD
*
downloaded_fonts
;
PSPEN
pen
;
...
...
dlls/wineps/wineps.spec
View file @
83decd25
...
...
@@ -2,7 +2,7 @@
@ cdecl Arc(ptr long long long long long long long long) PSDRV_Arc
@ cdecl Chord(ptr long long long long long long long long) PSDRV_Chord
@ cdecl CreateDC(
ptr
ptr wstr wstr wstr ptr) PSDRV_CreateDC
@ cdecl CreateDC(
long
ptr wstr wstr wstr ptr) PSDRV_CreateDC
@ cdecl DeleteDC(ptr) PSDRV_DeleteDC
@ cdecl DeviceCapabilities(ptr ptr ptr long ptr ptr) PSDRV_DeviceCapabilities
@ cdecl Ellipse(ptr long long long long) PSDRV_Ellipse
...
...
dlls/x11drv/init.c
View file @
83decd25
...
...
@@ -27,7 +27,6 @@
#include "winbase.h"
#include "x11drv.h"
#include "x11font.h"
#include "gdi.h"
#include "ddrawi.h"
#include "wine/debug.h"
...
...
@@ -85,7 +84,7 @@ void X11DRV_GDI_Finalize(void)
/**********************************************************************
* X11DRV_CreateDC
*/
BOOL
X11DRV_CreateDC
(
DC
*
dc
,
X11DRV_PDEVICE
**
pdev
,
LPCWSTR
driver
,
LPCWSTR
device
,
BOOL
X11DRV_CreateDC
(
HDC
h
dc
,
X11DRV_PDEVICE
**
pdev
,
LPCWSTR
driver
,
LPCWSTR
device
,
LPCWSTR
output
,
const
DEVMODEW
*
initData
)
{
X11DRV_PDEVICE
*
physDev
;
...
...
@@ -94,9 +93,9 @@ BOOL X11DRV_CreateDC( DC *dc, X11DRV_PDEVICE **pdev, LPCWSTR driver, LPCWSTR dev
if
(
!
physDev
)
return
FALSE
;
*
pdev
=
physDev
;
physDev
->
hdc
=
dc
->
hSelf
;
physDev
->
hdc
=
hdc
;
if
(
GetObjectType
(
dc
->
hSelf
)
==
OBJ_MEMDC
)
if
(
GetObjectType
(
hdc
)
==
OBJ_MEMDC
)
{
physDev
->
drawable
=
BITMAP_stock_pixmap
;
physDev
->
depth
=
1
;
...
...
dlls/x11drv/x11drv.spec
View file @
83decd25
...
...
@@ -5,7 +5,7 @@
@ cdecl ChoosePixelFormat(ptr ptr) X11DRV_ChoosePixelFormat
@ cdecl Chord(ptr long long long long long long long long) X11DRV_Chord
@ cdecl CreateBitmap(ptr long) X11DRV_CreateBitmap
@ cdecl CreateDC(
ptr
ptr wstr wstr wstr ptr) X11DRV_CreateDC
@ cdecl CreateDC(
long
ptr wstr wstr wstr ptr) X11DRV_CreateDC
@ cdecl CreateDIBSection(ptr ptr long ptr long long long) X11DRV_DIB_CreateDIBSection
@ cdecl DeleteBitmap(long) X11DRV_DeleteBitmap
@ cdecl DeleteDC(ptr) X11DRV_DeleteDC
...
...
objects/dc.c
View file @
83decd25
...
...
@@ -603,7 +603,7 @@ HDC WINAPI CreateDCW( LPCWSTR driver, LPCWSTR device, LPCWSTR output,
debugstr_w
(
driver
),
debugstr_w
(
device
),
debugstr_w
(
output
),
dc
->
hSelf
);
if
(
dc
->
funcs
->
pCreateDC
&&
!
dc
->
funcs
->
pCreateDC
(
dc
,
&
dc
->
physDev
,
buf
,
device
,
output
,
initData
))
!
dc
->
funcs
->
pCreateDC
(
h
dc
,
&
dc
->
physDev
,
buf
,
device
,
output
,
initData
))
{
WARN
(
"creation aborted by device
\n
"
);
GDI_FreeObject
(
dc
->
hSelf
,
dc
);
...
...
@@ -717,7 +717,7 @@ HDC WINAPI CreateCompatibleDC( HDC hdc )
dc
->
physDev
=
physDev
;
if
(
dc
->
funcs
->
pCreateDC
&&
!
dc
->
funcs
->
pCreateDC
(
dc
,
&
dc
->
physDev
,
NULL
,
NULL
,
NULL
,
NULL
))
!
dc
->
funcs
->
pCreateDC
(
dc
->
hSelf
,
&
dc
->
physDev
,
NULL
,
NULL
,
NULL
,
NULL
))
{
WARN
(
"creation aborted by device
\n
"
);
GDI_FreeObject
(
dc
->
hSelf
,
dc
);
...
...
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