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
d3534c39
Commit
d3534c39
authored
Nov 05, 2000
by
Patrik Stridvall
Committed by
Alexandre Julliard
Nov 05, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Optimized {,p}MoveTo{,Ex}{,16}.
parent
56b17436
Show whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
18 additions
and
37 deletions
+18
-37
dc.c
dlls/ttydrv/dc.c
+1
-1
init.c
dlls/wineps/init.c
+1
-1
graphics.c
graphics/enhmetafiledrv/graphics.c
+2
-2
init.c
graphics/enhmetafiledrv/init.c
+1
-1
graphics.c
graphics/metafiledrv/graphics.c
+2
-2
init.c
graphics/metafiledrv/init.c
+1
-1
metafiledrv.h
graphics/metafiledrv/metafiledrv.h
+1
-1
painting.c
graphics/painting.c
+4
-6
graphics.c
graphics/win16drv/graphics.c
+1
-17
init.c
graphics/win16drv/init.c
+1
-1
init.c
graphics/x11drv/init.c
+1
-1
enhmetafiledrv.h
include/enhmetafiledrv.h
+1
-1
gdi.h
include/gdi.h
+1
-1
win16drv.h
include/win16drv.h
+0
-1
No files found.
dlls/ttydrv/dc.c
View file @
d3534c39
...
@@ -61,7 +61,7 @@ static const DC_FUNCTIONS TTYDRV_DC_Driver =
...
@@ -61,7 +61,7 @@ static const DC_FUNCTIONS TTYDRV_DC_Driver =
NULL
,
/* pIntersectClipRect */
NULL
,
/* pIntersectClipRect */
NULL
,
/* pIntersectVisRect */
NULL
,
/* pIntersectVisRect */
TTYDRV_DC_LineTo
,
/* pLineTo */
TTYDRV_DC_LineTo
,
/* pLineTo */
NULL
,
/* pMoveTo
Ex
*/
NULL
,
/* pMoveTo */
NULL
,
/* pOffsetClipRgn */
NULL
,
/* pOffsetClipRgn */
NULL
,
/* pOffsetViewportOrg (optional) */
NULL
,
/* pOffsetViewportOrg (optional) */
NULL
,
/* pOffsetWindowOrg (optional) */
NULL
,
/* pOffsetWindowOrg (optional) */
...
...
dlls/wineps/init.c
View file @
d3534c39
...
@@ -65,7 +65,7 @@ static const DC_FUNCTIONS PSDRV_Funcs =
...
@@ -65,7 +65,7 @@ static const DC_FUNCTIONS PSDRV_Funcs =
NULL
,
/* pIntersectClipRect */
NULL
,
/* pIntersectClipRect */
NULL
,
/* pInvertRgn */
NULL
,
/* pInvertRgn */
PSDRV_LineTo
,
/* pLineTo */
PSDRV_LineTo
,
/* pLineTo */
NULL
,
/* pMoveTo
Ex
*/
NULL
,
/* pMoveTo */
NULL
,
/* pOffsetClipRgn */
NULL
,
/* pOffsetClipRgn */
NULL
,
/* pOffsetViewportOrg (optional) */
NULL
,
/* pOffsetViewportOrg (optional) */
NULL
,
/* pOffsetWindowOrg (optional) */
NULL
,
/* pOffsetWindowOrg (optional) */
...
...
graphics/enhmetafiledrv/graphics.c
View file @
d3534c39
...
@@ -15,10 +15,10 @@
...
@@ -15,10 +15,10 @@
DEFAULT_DEBUG_CHANNEL
(
enhmetafile
);
DEFAULT_DEBUG_CHANNEL
(
enhmetafile
);
/**********************************************************************
/**********************************************************************
* EMFDRV_MoveTo
Ex
* EMFDRV_MoveTo
*/
*/
BOOL
BOOL
EMFDRV_MoveTo
Ex
(
DC
*
dc
,
INT
x
,
INT
y
,
LPPOINT
pt
)
EMFDRV_MoveTo
(
DC
*
dc
,
INT
x
,
INT
y
)
{
{
EMRMOVETOEX
emr
;
EMRMOVETOEX
emr
;
...
...
graphics/enhmetafiledrv/init.c
View file @
d3534c39
...
@@ -62,7 +62,7 @@ static const DC_FUNCTIONS EMFDRV_Funcs =
...
@@ -62,7 +62,7 @@ static const DC_FUNCTIONS EMFDRV_Funcs =
EMFDRV_IntersectClipRect
,
/* pIntersectClipRect */
EMFDRV_IntersectClipRect
,
/* pIntersectClipRect */
EMFDRV_InvertRgn
,
/* pInvertRgn */
EMFDRV_InvertRgn
,
/* pInvertRgn */
EMFDRV_LineTo
,
/* pLineTo */
EMFDRV_LineTo
,
/* pLineTo */
EMFDRV_MoveTo
Ex
,
/* pMoveToEx
*/
EMFDRV_MoveTo
,
/* pMoveTo
*/
EMFDRV_OffsetClipRgn
,
/* pOffsetClipRgn */
EMFDRV_OffsetClipRgn
,
/* pOffsetClipRgn */
NULL
,
/* pOffsetViewportOrg */
NULL
,
/* pOffsetViewportOrg */
NULL
,
/* pOffsetWindowOrg */
NULL
,
/* pOffsetWindowOrg */
...
...
graphics/metafiledrv/graphics.c
View file @
d3534c39
...
@@ -16,10 +16,10 @@
...
@@ -16,10 +16,10 @@
DEFAULT_DEBUG_CHANNEL
(
metafile
);
DEFAULT_DEBUG_CHANNEL
(
metafile
);
/**********************************************************************
/**********************************************************************
* MFDRV_MoveTo
Ex
* MFDRV_MoveTo
*/
*/
BOOL
BOOL
MFDRV_MoveTo
Ex
(
DC
*
dc
,
INT
x
,
INT
y
,
LPPOINT
pt
)
MFDRV_MoveTo
(
DC
*
dc
,
INT
x
,
INT
y
)
{
{
return
MFDRV_MetaParam2
(
dc
,
META_MOVETO
,
x
,
y
);
return
MFDRV_MetaParam2
(
dc
,
META_MOVETO
,
x
,
y
);
}
}
...
...
graphics/metafiledrv/init.c
View file @
d3534c39
...
@@ -61,7 +61,7 @@ static const DC_FUNCTIONS MFDRV_Funcs =
...
@@ -61,7 +61,7 @@ static const DC_FUNCTIONS MFDRV_Funcs =
MFDRV_IntersectClipRect
,
/* pIntersectClipRect */
MFDRV_IntersectClipRect
,
/* pIntersectClipRect */
MFDRV_InvertRgn
,
/* pInvertRgn */
MFDRV_InvertRgn
,
/* pInvertRgn */
MFDRV_LineTo
,
/* pLineTo */
MFDRV_LineTo
,
/* pLineTo */
MFDRV_MoveTo
Ex
,
/* pMoveToEx
*/
MFDRV_MoveTo
,
/* pMoveTo
*/
MFDRV_OffsetClipRgn
,
/* pOffsetClipRgn */
MFDRV_OffsetClipRgn
,
/* pOffsetClipRgn */
MFDRV_OffsetViewportOrg
,
/* pOffsetViewportOrg */
MFDRV_OffsetViewportOrg
,
/* pOffsetViewportOrg */
MFDRV_OffsetWindowOrg
,
/* pOffsetWindowOrg */
MFDRV_OffsetWindowOrg
,
/* pOffsetWindowOrg */
...
...
graphics/metafiledrv/metafiledrv.h
View file @
d3534c39
...
@@ -65,7 +65,7 @@ extern INT MFDRV_IntersectClipRect( DC *dc, INT left, INT top, INT right, INT
...
@@ -65,7 +65,7 @@ extern INT MFDRV_IntersectClipRect( DC *dc, INT left, INT top, INT right, INT
bottom
);
bottom
);
extern
BOOL
MFDRV_InvertRgn
(
DC
*
dc
,
HRGN
hrgn
);
extern
BOOL
MFDRV_InvertRgn
(
DC
*
dc
,
HRGN
hrgn
);
extern
BOOL
MFDRV_LineTo
(
DC
*
dc
,
INT
x
,
INT
y
);
extern
BOOL
MFDRV_LineTo
(
DC
*
dc
,
INT
x
,
INT
y
);
extern
BOOL
MFDRV_MoveTo
Ex
(
DC
*
dc
,
INT
x
,
INT
y
,
LPPOINT
pt
);
extern
BOOL
MFDRV_MoveTo
(
DC
*
dc
,
INT
x
,
INT
y
);
extern
INT
MFDRV_OffsetClipRgn
(
DC
*
dc
,
INT
x
,
INT
y
);
extern
INT
MFDRV_OffsetClipRgn
(
DC
*
dc
,
INT
x
,
INT
y
);
extern
BOOL
MFDRV_OffsetViewportOrg
(
DC
*
dc
,
INT
x
,
INT
y
);
extern
BOOL
MFDRV_OffsetViewportOrg
(
DC
*
dc
,
INT
x
,
INT
y
);
extern
BOOL
MFDRV_OffsetWindowOrg
(
DC
*
dc
,
INT
x
,
INT
y
);
extern
BOOL
MFDRV_OffsetWindowOrg
(
DC
*
dc
,
INT
x
,
INT
y
);
...
...
graphics/painting.c
View file @
d3534c39
...
@@ -59,10 +59,9 @@ BOOL WINAPI LineTo( HDC hdc, INT x, INT y )
...
@@ -59,10 +59,9 @@ BOOL WINAPI LineTo( HDC hdc, INT x, INT y )
*/
*/
DWORD
WINAPI
MoveTo16
(
HDC16
hdc
,
INT16
x
,
INT16
y
)
DWORD
WINAPI
MoveTo16
(
HDC16
hdc
,
INT16
x
,
INT16
y
)
{
{
POINT
16
pt
;
POINT
pt
;
if
(
!
MoveToEx16
(
hdc
,
x
,
y
,
&
pt
))
if
(
!
MoveToEx
(
(
HDC
)
hdc
,
x
,
y
,
&
pt
))
return
0
;
return
0
;
return
MAKELONG
(
pt
.
x
,
pt
.
y
);
return
MAKELONG
(
pt
.
x
,
pt
.
y
);
}
}
...
@@ -77,7 +76,6 @@ BOOL16 WINAPI MoveToEx16( HDC16 hdc, INT16 x, INT16 y, LPPOINT16 pt )
...
@@ -77,7 +76,6 @@ BOOL16 WINAPI MoveToEx16( HDC16 hdc, INT16 x, INT16 y, LPPOINT16 pt )
if
(
!
MoveToEx
(
(
HDC
)
hdc
,
(
INT
)
x
,
(
INT
)
y
,
&
pt32
))
return
FALSE
;
if
(
!
MoveToEx
(
(
HDC
)
hdc
,
(
INT
)
x
,
(
INT
)
y
,
&
pt32
))
return
FALSE
;
if
(
pt
)
CONV_POINT32TO16
(
&
pt32
,
pt
);
if
(
pt
)
CONV_POINT32TO16
(
&
pt32
,
pt
);
return
TRUE
;
return
TRUE
;
}
}
...
@@ -87,7 +85,7 @@ BOOL16 WINAPI MoveToEx16( HDC16 hdc, INT16 x, INT16 y, LPPOINT16 pt )
...
@@ -87,7 +85,7 @@ BOOL16 WINAPI MoveToEx16( HDC16 hdc, INT16 x, INT16 y, LPPOINT16 pt )
BOOL
WINAPI
MoveToEx
(
HDC
hdc
,
INT
x
,
INT
y
,
LPPOINT
pt
)
BOOL
WINAPI
MoveToEx
(
HDC
hdc
,
INT
x
,
INT
y
,
LPPOINT
pt
)
{
{
BOOL
ret
=
TRUE
;
BOOL
ret
=
TRUE
;
DC
*
dc
=
DC_GetDC
Update
(
hdc
);
DC
*
dc
=
DC_GetDC
Ptr
(
hdc
);
if
(
!
dc
)
return
FALSE
;
if
(
!
dc
)
return
FALSE
;
...
@@ -99,7 +97,7 @@ BOOL WINAPI MoveToEx( HDC hdc, INT x, INT y, LPPOINT pt )
...
@@ -99,7 +97,7 @@ BOOL WINAPI MoveToEx( HDC hdc, INT x, INT y, LPPOINT pt )
dc
->
CursPosY
=
y
;
dc
->
CursPosY
=
y
;
if
(
PATH_IsPathOpen
(
dc
->
path
))
ret
=
PATH_MoveTo
(
dc
);
if
(
PATH_IsPathOpen
(
dc
->
path
))
ret
=
PATH_MoveTo
(
dc
);
else
if
(
dc
->
funcs
->
pMoveTo
Ex
)
ret
=
dc
->
funcs
->
pMoveToEx
(
dc
,
x
,
y
,
pt
);
else
if
(
dc
->
funcs
->
pMoveTo
)
ret
=
dc
->
funcs
->
pMoveTo
(
dc
,
x
,
y
);
GDI_ReleaseObj
(
hdc
);
GDI_ReleaseObj
(
hdc
);
return
ret
;
return
ret
;
}
}
...
...
graphics/win16drv/graphics.c
View file @
d3534c39
...
@@ -9,23 +9,7 @@
...
@@ -9,23 +9,7 @@
#include "win16drv.h"
#include "win16drv.h"
#include "debugtools.h"
#include "debugtools.h"
DEFAULT_DEBUG_CHANNEL
(
win16drv
)
DEFAULT_DEBUG_CHANNEL
(
win16drv
);
/**********************************************************************
* WIN16DRV_MoveToEx
*/
BOOL
WIN16DRV_MoveToEx
(
DC
*
dc
,
INT
x
,
INT
y
,
LPPOINT
pt
)
{
if
(
pt
)
{
pt
->
x
=
dc
->
CursPosX
;
pt
->
y
=
dc
->
CursPosY
;
}
dc
->
CursPosX
=
x
;
dc
->
CursPosY
=
y
;
return
TRUE
;
}
/***********************************************************************
/***********************************************************************
* WIN16DRV_LineTo
* WIN16DRV_LineTo
...
...
graphics/win16drv/init.c
View file @
d3534c39
...
@@ -86,7 +86,7 @@ static const DC_FUNCTIONS WIN16DRV_Funcs =
...
@@ -86,7 +86,7 @@ static const DC_FUNCTIONS WIN16DRV_Funcs =
NULL
,
/* pIntersectClipRect */
NULL
,
/* pIntersectClipRect */
NULL
,
/* pInvertRgn */
NULL
,
/* pInvertRgn */
WIN16DRV_LineTo
,
/* pLineTo */
WIN16DRV_LineTo
,
/* pLineTo */
WIN16DRV_MoveToEx
,
/* pMoveToEx
*/
NULL
,
/* pMoveTo
*/
NULL
,
/* pOffsetClipRgn */
NULL
,
/* pOffsetClipRgn */
NULL
,
/* pOffsetViewportOrgEx */
NULL
,
/* pOffsetViewportOrgEx */
NULL
,
/* pOffsetWindowOrgEx */
NULL
,
/* pOffsetWindowOrgEx */
...
...
graphics/x11drv/init.c
View file @
d3534c39
...
@@ -71,7 +71,7 @@ const DC_FUNCTIONS X11DRV_DC_Funcs =
...
@@ -71,7 +71,7 @@ const DC_FUNCTIONS X11DRV_DC_Funcs =
NULL
,
/* pIntersectClipRect */
NULL
,
/* pIntersectClipRect */
NULL
,
/* pInvertRgn */
NULL
,
/* pInvertRgn */
X11DRV_LineTo
,
/* pLineTo */
X11DRV_LineTo
,
/* pLineTo */
NULL
,
/* pMoveTo
Ex
*/
NULL
,
/* pMoveTo */
NULL
,
/* pOffsetClipRgn */
NULL
,
/* pOffsetClipRgn */
NULL
,
/* pOffsetViewportOrg (optional) */
NULL
,
/* pOffsetViewportOrg (optional) */
NULL
,
/* pOffsetWindowOrg (optional) */
NULL
,
/* pOffsetWindowOrg (optional) */
...
...
include/enhmetafiledrv.h
View file @
d3534c39
...
@@ -56,7 +56,7 @@ extern INT EMFDRV_IntersectClipRect( DC *dc, INT left, INT top, INT right,
...
@@ -56,7 +56,7 @@ extern INT EMFDRV_IntersectClipRect( DC *dc, INT left, INT top, INT right,
INT
bottom
);
INT
bottom
);
extern
BOOL
EMFDRV_InvertRgn
(
DC
*
dc
,
HRGN
hrgn
);
extern
BOOL
EMFDRV_InvertRgn
(
DC
*
dc
,
HRGN
hrgn
);
extern
BOOL
EMFDRV_LineTo
(
DC
*
dc
,
INT
x
,
INT
y
);
extern
BOOL
EMFDRV_LineTo
(
DC
*
dc
,
INT
x
,
INT
y
);
extern
BOOL
EMFDRV_MoveTo
Ex
(
DC
*
dc
,
INT
x
,
INT
y
,
LPPOINT
pt
);
extern
BOOL
EMFDRV_MoveTo
(
DC
*
dc
,
INT
x
,
INT
y
);
extern
INT
EMFDRV_OffsetClipRgn
(
DC
*
dc
,
INT
x
,
INT
y
);
extern
INT
EMFDRV_OffsetClipRgn
(
DC
*
dc
,
INT
x
,
INT
y
);
extern
BOOL
EMFDRV_OffsetViewportOrg
(
DC
*
dc
,
INT
x
,
INT
y
);
extern
BOOL
EMFDRV_OffsetViewportOrg
(
DC
*
dc
,
INT
x
,
INT
y
);
extern
BOOL
EMFDRV_OffsetWindowOrg
(
DC
*
dc
,
INT
x
,
INT
y
);
extern
BOOL
EMFDRV_OffsetWindowOrg
(
DC
*
dc
,
INT
x
,
INT
y
);
...
...
include/gdi.h
View file @
d3534c39
...
@@ -207,7 +207,7 @@ typedef struct tagDC_FUNCS
...
@@ -207,7 +207,7 @@ typedef struct tagDC_FUNCS
INT
(
*
pIntersectClipRect
)(
DC
*
,
INT
,
INT
,
INT
,
INT
);
INT
(
*
pIntersectClipRect
)(
DC
*
,
INT
,
INT
,
INT
,
INT
);
BOOL
(
*
pInvertRgn
)(
DC
*
,
HRGN
);
BOOL
(
*
pInvertRgn
)(
DC
*
,
HRGN
);
BOOL
(
*
pLineTo
)(
DC
*
,
INT
,
INT
);
BOOL
(
*
pLineTo
)(
DC
*
,
INT
,
INT
);
BOOL
(
*
pMoveTo
Ex
)(
DC
*
,
INT
,
INT
,
LPPO
INT
);
BOOL
(
*
pMoveTo
)(
DC
*
,
INT
,
INT
);
INT
(
*
pOffsetClipRgn
)(
DC
*
,
INT
,
INT
);
INT
(
*
pOffsetClipRgn
)(
DC
*
,
INT
,
INT
);
BOOL
(
*
pOffsetViewportOrg
)(
DC
*
,
INT
,
INT
);
BOOL
(
*
pOffsetViewportOrg
)(
DC
*
,
INT
,
INT
);
BOOL
(
*
pOffsetWindowOrg
)(
DC
*
,
INT
,
INT
);
BOOL
(
*
pOffsetWindowOrg
)(
DC
*
,
INT
,
INT
);
...
...
include/win16drv.h
View file @
d3534c39
...
@@ -217,7 +217,6 @@ extern BOOL WIN16DRV_ExtTextOut( DC *dc, INT x, INT y, UINT flags,
...
@@ -217,7 +217,6 @@ extern BOOL WIN16DRV_ExtTextOut( DC *dc, INT x, INT y, UINT flags,
const
RECT
*
lprect
,
LPCWSTR
str
,
UINT
count
,
const
RECT
*
lprect
,
LPCWSTR
str
,
UINT
count
,
const
INT
*
lpDx
);
const
INT
*
lpDx
);
extern
BOOL
WIN16DRV_LineTo
(
DC
*
dc
,
INT
x
,
INT
y
);
extern
BOOL
WIN16DRV_LineTo
(
DC
*
dc
,
INT
x
,
INT
y
);
extern
BOOL
WIN16DRV_MoveToEx
(
DC
*
dc
,
INT
x
,
INT
y
,
LPPOINT
pt
);
extern
BOOL
WIN16DRV_Polygon
(
DC
*
dc
,
const
POINT
*
pt
,
INT
count
);
extern
BOOL
WIN16DRV_Polygon
(
DC
*
dc
,
const
POINT
*
pt
,
INT
count
);
extern
BOOL
WIN16DRV_Polyline
(
DC
*
dc
,
const
POINT
*
pt
,
INT
count
);
extern
BOOL
WIN16DRV_Polyline
(
DC
*
dc
,
const
POINT
*
pt
,
INT
count
);
extern
BOOL
WIN16DRV_Rectangle
(
DC
*
dc
,
INT
left
,
INT
top
,
INT
right
,
INT
bottom
);
extern
BOOL
WIN16DRV_Rectangle
(
DC
*
dc
,
INT
left
,
INT
top
,
INT
right
,
INT
bottom
);
...
...
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