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
2c1ec7fc
Commit
2c1ec7fc
authored
Oct 26, 2011
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32: Implement the MoveTo entry point in the path driver.
parent
8a7bf0a2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
26 deletions
+12
-26
gdi_private.h
dlls/gdi32/gdi_private.h
+0
-1
painting.c
dlls/gdi32/painting.c
+4
-7
path.c
dlls/gdi32/path.c
+8
-18
No files found.
dlls/gdi32/gdi_private.h
View file @
2c1ec7fc
...
...
@@ -325,7 +325,6 @@ extern void PATH_DestroyGdiPath(GdiPath *pPath) DECLSPEC_HIDDEN;
extern
BOOL
PATH_SavePath
(
DC
*
dst
,
DC
*
src
)
DECLSPEC_HIDDEN
;
extern
BOOL
PATH_RestorePath
(
DC
*
dst
,
DC
*
src
)
DECLSPEC_HIDDEN
;
extern
BOOL
PATH_MoveTo
(
DC
*
dc
)
DECLSPEC_HIDDEN
;
extern
BOOL
PATH_LineTo
(
DC
*
dc
,
INT
x
,
INT
y
)
DECLSPEC_HIDDEN
;
extern
BOOL
PATH_Rectangle
(
DC
*
dc
,
INT
x1
,
INT
y1
,
INT
x2
,
INT
y2
)
DECLSPEC_HIDDEN
;
extern
BOOL
PATH_ExtTextOut
(
DC
*
dc
,
INT
x
,
INT
y
,
UINT
flags
,
const
RECT
*
lprc
,
...
...
dlls/gdi32/painting.c
View file @
2c1ec7fc
...
...
@@ -258,7 +258,8 @@ BOOL WINAPI LineTo( HDC hdc, INT x, INT y )
*/
BOOL
WINAPI
MoveToEx
(
HDC
hdc
,
INT
x
,
INT
y
,
LPPOINT
pt
)
{
BOOL
ret
=
TRUE
;
BOOL
ret
;
PHYSDEV
physdev
;
DC
*
dc
=
get_dc_ptr
(
hdc
);
if
(
!
dc
)
return
FALSE
;
...
...
@@ -270,12 +271,8 @@ BOOL WINAPI MoveToEx( HDC hdc, INT x, INT y, LPPOINT pt )
dc
->
CursPosX
=
x
;
dc
->
CursPosY
=
y
;
if
(
PATH_IsPathOpen
(
dc
->
path
))
ret
=
PATH_MoveTo
(
dc
);
else
{
PHYSDEV
physdev
=
GET_DC_PHYSDEV
(
dc
,
pMoveTo
);
ret
=
physdev
->
funcs
->
pMoveTo
(
physdev
,
x
,
y
);
}
physdev
=
GET_DC_PHYSDEV
(
dc
,
pMoveTo
);
ret
=
physdev
->
funcs
->
pMoveTo
(
physdev
,
x
,
y
);
release_dc_ptr
(
dc
);
return
ret
;
}
...
...
dlls/gdi32/path.c
View file @
2c1ec7fc
...
...
@@ -884,25 +884,15 @@ BOOL PATH_RestorePath( DC *dst, DC *src )
return
ret
;
}
/* PATH_MoveTo
*
* Should be called when a MoveTo is performed on a DC that has an
* open path. This starts a new stroke. Returns TRUE if successful, else
* FALSE.
/*************************************************************
* pathdrv_MoveTo
*/
BOOL
PATH_MoveTo
(
DC
*
dc
)
static
BOOL
pathdrv_MoveTo
(
PHYSDEV
dev
,
INT
x
,
INT
y
)
{
GdiPath
*
pPath
=
&
dc
->
path
;
/* Check that path is open */
if
(
pPath
->
state
!=
PATH_Open
)
/* FIXME: Do we have to call SetLastError? */
return
FALSE
;
/* Start a new stroke */
pPath
->
newStroke
=
TRUE
;
return
TRUE
;
struct
path_physdev
*
physdev
=
get_path_physdev
(
dev
);
physdev
->
path
->
newStroke
=
TRUE
;
return
TRUE
;
}
/* PATH_LineTo
...
...
@@ -2372,7 +2362,7 @@ const struct gdi_dc_funcs path_driver =
NULL
,
/* pInvertRgn */
NULL
,
/* pLineTo */
NULL
,
/* pModifyWorldTransform */
NULL
,
/* pMoveTo */
pathdrv_MoveTo
,
/* pMoveTo */
NULL
,
/* pOffsetClipRgn */
NULL
,
/* pOffsetViewportOrg */
NULL
,
/* pOffsetWindowOrg */
...
...
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