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
67157729
Commit
67157729
authored
Apr 06, 2002
by
Huw D M Davies
Committed by
Alexandre Julliard
Apr 06, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added support for ResetDC.
parent
18036cb5
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
16 additions
and
6 deletions
+16
-6
driver.c
dlls/gdi/driver.c
+1
-0
init.c
dlls/gdi/enhmfdrv/init.c
+1
-0
init.c
dlls/gdi/mfdrv/init.c
+1
-0
init.c
dlls/gdi/win16drv/init.c
+1
-0
gdi.h
include/gdi.h
+1
-0
dc.c
objects/dc.c
+11
-6
No files found.
dlls/gdi/driver.c
View file @
67157729
...
...
@@ -124,6 +124,7 @@ static struct graphics_driver *create_driver( HMODULE module )
GET_FUNC
(
PolylineTo
);
GET_FUNC
(
RealizePalette
);
GET_FUNC
(
Rectangle
);
GET_FUNC
(
ResetDC
);
GET_FUNC
(
RestoreDC
);
GET_FUNC
(
RoundRect
);
GET_FUNC
(
SaveDC
);
...
...
dlls/gdi/enhmfdrv/init.c
View file @
67157729
...
...
@@ -92,6 +92,7 @@ static const DC_FUNCTIONS EMFDRV_Funcs =
NULL
,
/* pPolylineTo */
NULL
,
/* pRealizePalette */
EMFDRV_Rectangle
,
/* pRectangle */
NULL
,
/* pResetDC */
EMFDRV_RestoreDC
,
/* pRestoreDC */
EMFDRV_RoundRect
,
/* pRoundRect */
EMFDRV_SaveDC
,
/* pSaveDC */
...
...
dlls/gdi/mfdrv/init.c
View file @
67157729
...
...
@@ -93,6 +93,7 @@ static const DC_FUNCTIONS MFDRV_Funcs =
NULL
,
/* pPolylineTo */
NULL
,
/* pRealizePalette */
MFDRV_Rectangle
,
/* pRectangle */
NULL
,
/* pResetDC */
MFDRV_RestoreDC
,
/* pRestoreDC */
MFDRV_RoundRect
,
/* pRoundRect */
MFDRV_SaveDC
,
/* pSaveDC */
...
...
dlls/gdi/win16drv/init.c
View file @
67157729
...
...
@@ -120,6 +120,7 @@ static const DC_FUNCTIONS WIN16DRV_Funcs =
NULL
,
/* pPolylineTo */
NULL
,
/* pRealizePalette */
WIN16DRV_Rectangle
,
/* pRectangle */
NULL
,
/* pResetDC */
NULL
,
/* pRestoreDC */
NULL
,
/* pRoundRect */
NULL
,
/* pSaveDC */
...
...
include/gdi.h
View file @
67157729
...
...
@@ -202,6 +202,7 @@ typedef struct tagDC_FUNCS
BOOL
(
*
pPolylineTo
)(
PHYSDEV
,
const
POINT
*
,
INT
);
UINT
(
*
pRealizePalette
)(
PHYSDEV
);
BOOL
(
*
pRectangle
)(
PHYSDEV
,
INT
,
INT
,
INT
,
INT
);
HDC
(
*
pResetDC
)(
PHYSDEV
,
const
DEVMODEA
*
);
BOOL
(
*
pRestoreDC
)(
PHYSDEV
,
INT
);
BOOL
(
*
pRoundRect
)(
PHYSDEV
,
INT
,
INT
,
INT
,
INT
,
INT
,
INT
);
INT
(
*
pSaveDC
)(
PHYSDEV
);
...
...
objects/dc.c
View file @
67157729
...
...
@@ -803,8 +803,7 @@ BOOL WINAPI DeleteDC( HDC hdc )
*/
HDC16
WINAPI
ResetDC16
(
HDC16
hdc
,
const
DEVMODEA
*
devmode
)
{
FIXME
(
"stub
\n
"
);
return
hdc
;
return
ResetDCA
(
hdc
,
devmode
);
}
...
...
@@ -813,8 +812,15 @@ HDC16 WINAPI ResetDC16( HDC16 hdc, const DEVMODEA *devmode )
*/
HDC
WINAPI
ResetDCA
(
HDC
hdc
,
const
DEVMODEA
*
devmode
)
{
FIXME
(
"stub
\n
"
);
return
hdc
;
DC
*
dc
;
HDC
ret
=
hdc
;
if
((
dc
=
DC_GetDCPtr
(
hdc
)))
{
if
(
dc
->
funcs
->
pResetDC
)
ret
=
dc
->
funcs
->
pResetDC
(
dc
->
physDev
,
devmode
);
GDI_ReleaseObj
(
hdc
);
}
return
ret
;
}
...
...
@@ -823,8 +829,7 @@ HDC WINAPI ResetDCA( HDC hdc, const DEVMODEA *devmode )
*/
HDC
WINAPI
ResetDCW
(
HDC
hdc
,
const
DEVMODEW
*
devmode
)
{
FIXME
(
"stub
\n
"
);
return
hdc
;
return
ResetDCA
(
hdc
,
(
const
DEVMODEA
*
)
devmode
);
/* FIXME */
}
...
...
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