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
f83ec675
Commit
f83ec675
authored
May 12, 2023
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
win32u: Don't use floating point types in syscalls.
parent
19eab9c0
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
13 additions
and
11 deletions
+13
-11
dc.c
dlls/gdi32/dc.c
+1
-1
painting.c
dlls/win32u/painting.c
+3
-1
win32u.spec
dlls/win32u/win32u.spec
+2
-2
win32u_private.h
dlls/win32u/win32u_private.h
+2
-2
wrappers.c
dlls/win32u/wrappers.c
+1
-1
ntgdi.h
include/ntgdi.h
+4
-4
No files found.
dlls/gdi32/dc.c
View file @
f83ec675
...
...
@@ -1523,7 +1523,7 @@ BOOL WINAPI AngleArc( HDC hdc, INT x, INT y, DWORD radius, FLOAT start_angle, FL
if
(
dc_attr
->
print
)
print_call_start_page
(
dc_attr
);
if
(
dc_attr
->
emf
&&
!
EMFDC_AngleArc
(
dc_attr
,
x
,
y
,
radius
,
start_angle
,
sweep_angle
))
return
FALSE
;
return
NtGdiAngleArc
(
hdc
,
x
,
y
,
radius
,
start_angle
,
sweep_angle
);
return
NtGdiAngleArc
(
hdc
,
x
,
y
,
radius
,
*
(
DWORD
*
)
&
start_angle
,
*
(
DWORD
*
)
&
sweep_angle
);
}
/***********************************************************************
...
...
dlls/win32u/painting.c
View file @
f83ec675
...
...
@@ -637,8 +637,10 @@ BOOL WINAPI NtGdiExtFloodFill( HDC hdc, INT x, INT y, COLORREF color, UINT fill_
/***********************************************************************
* NtGdiAngleArc (win32u.@)
*/
BOOL
WINAPI
NtGdiAngleArc
(
HDC
hdc
,
INT
x
,
INT
y
,
DWORD
dwRadius
,
FLOAT
eStartAngle
,
FLOAT
eSweepA
ngle
)
BOOL
WINAPI
NtGdiAngleArc
(
HDC
hdc
,
INT
x
,
INT
y
,
DWORD
dwRadius
,
DWORD
start_angle
,
DWORD
sweep_a
ngle
)
{
FLOAT
eStartAngle
=
*
(
FLOAT
*
)
&
start_angle
;
FLOAT
eSweepAngle
=
*
(
FLOAT
*
)
&
sweep_angle
;
PHYSDEV
physdev
;
BOOL
result
;
DC
*
dc
;
...
...
dlls/win32u/win32u.spec
View file @
f83ec675
...
...
@@ -113,7 +113,7 @@
@ stub NtGdiAddRemoteFontToDC
@ stub NtGdiAddRemoteMMInstanceToDC
@ stdcall NtGdiAlphaBlend(long long long long long long long long long long long ptr)
@ stdcall NtGdiAngleArc(long long long long
float float
)
@ stdcall NtGdiAngleArc(long long long long
long long
)
@ stub NtGdiAnyLinkedFonts
@ stdcall NtGdiArcInternal(long long long long long long long long long long)
@ stub NtGdiBRUSHOBJ_DeleteRbrush
...
...
@@ -123,7 +123,7 @@
@ stub NtGdiBRUSHOBJ_ulGetBrushColor
@ stub NtGdiBeginGdiRendering
@ stdcall NtGdiBeginPath(long)
@ stdcall NtGdiBitBlt(long long long long long long long long long long
float
)
@ stdcall NtGdiBitBlt(long long long long long long long long long long
long
)
@ stub NtGdiCLIPOBJ_bEnum
@ stub NtGdiCLIPOBJ_cEnumStart
@ stub NtGdiCLIPOBJ_ppoGetPath
...
...
dlls/win32u/win32u_private.h
View file @
f83ec675
...
...
@@ -40,8 +40,8 @@ struct unix_funcs
BOOL
(
WINAPI
*
pNtGdiAlphaBlend
)(
HDC
hdc_dst
,
int
x_dst
,
int
y_dst
,
int
width_dst
,
int
height_dst
,
HDC
hdc_src
,
int
x_src
,
int
y_src
,
int
width_src
,
int
height_src
,
BLENDFUNCTION
blend_function
,
HANDLE
xform
);
BOOL
(
WINAPI
*
pNtGdiAngleArc
)(
HDC
hdc
,
INT
x
,
INT
y
,
DWORD
radius
,
FLOAT
start_angle
,
FLOAT
sweep_angle
);
BOOL
(
WINAPI
*
pNtGdiAngleArc
)(
HDC
hdc
,
INT
x
,
INT
y
,
DWORD
radius
,
DWORD
start_angle
,
DWORD
sweep_angle
);
BOOL
(
WINAPI
*
pNtGdiArcInternal
)(
UINT
type
,
HDC
hdc
,
INT
left
,
INT
top
,
INT
right
,
INT
bottom
,
INT
xstart
,
INT
ystart
,
INT
xend
,
INT
yend
);
BOOL
(
WINAPI
*
pNtGdiBeginPath
)(
HDC
hdc
);
...
...
dlls/win32u/wrappers.c
View file @
f83ec675
...
...
@@ -45,7 +45,7 @@ BOOL WINAPI NtGdiAlphaBlend( HDC hdc_dst, int x_dst, int y_dst, int width_dst, i
x_src
,
y_src
,
width_src
,
height_src
,
blend_function
,
xform
);
}
BOOL
WINAPI
NtGdiAngleArc
(
HDC
hdc
,
INT
x
,
INT
y
,
DWORD
radius
,
FLOAT
start_angle
,
FLOAT
sweep_angle
)
BOOL
WINAPI
NtGdiAngleArc
(
HDC
hdc
,
INT
x
,
INT
y
,
DWORD
radius
,
DWORD
start_angle
,
DWORD
sweep_angle
)
{
if
(
!
unix_funcs
)
return
FALSE
;
return
unix_funcs
->
pNtGdiAngleArc
(
hdc
,
x
,
y
,
radius
,
start_angle
,
sweep_angle
);
...
...
include/ntgdi.h
View file @
f83ec675
...
...
@@ -251,8 +251,8 @@ INT WINAPI NtGdiAddFontResourceW( const WCHAR *str, ULONG size, ULONG files
BOOL
WINAPI
NtGdiAlphaBlend
(
HDC
hdc_dst
,
int
x_dst
,
int
y_dst
,
int
width_dst
,
int
height_dst
,
HDC
hdc_src
,
int
x_src
,
int
y_src
,
int
width_src
,
int
height_src
,
BLENDFUNCTION
blend_function
,
HANDLE
xform
);
BOOL
WINAPI
NtGdiAngleArc
(
HDC
hdc
,
INT
x
,
INT
y
,
DWORD
radius
,
FLOAT
start_angle
,
FLOAT
sweep_angle
);
BOOL
WINAPI
NtGdiAngleArc
(
HDC
hdc
,
INT
x
,
INT
y
,
DWORD
radius
,
DWORD
start_angle
,
DWORD
sweep_angle
);
BOOL
WINAPI
NtGdiArcInternal
(
UINT
type
,
HDC
hdc
,
INT
left
,
INT
top
,
INT
right
,
INT
bottom
,
INT
xstart
,
INT
ystart
,
INT
xend
,
INT
yend
);
BOOL
WINAPI
NtGdiBeginPath
(
HDC
hdc
);
...
...
@@ -351,7 +351,7 @@ DWORD WINAPI NtGdiGetGlyphOutline( HDC hdc, UINT ch, UINT format, GLYPHMETRIC
DWORD
size
,
void
*
buffer
,
const
MAT2
*
mat2
,
BOOL
ignore_rotation
);
DWORD
WINAPI
NtGdiGetKerningPairs
(
HDC
hdc
,
DWORD
count
,
KERNINGPAIR
*
kern_pair
);
BOOL
WINAPI
NtGdiGetMiterLimit
(
HDC
hdc
,
FLOAT
*
limit
);
BOOL
WINAPI
NtGdiGetMiterLimit
(
HDC
hdc
,
DWORD
*
limit
);
COLORREF
WINAPI
NtGdiGetNearestColor
(
HDC
hdc
,
COLORREF
color
);
UINT
WINAPI
NtGdiGetNearestPaletteIndex
(
HPALETTE
hpalette
,
COLORREF
color
);
UINT
WINAPI
NtGdiGetOutlineTextMetricsInternalW
(
HDC
hdc
,
UINT
cbData
,
...
...
@@ -435,7 +435,7 @@ BOOL WINAPI NtGdiSetDeviceGammaRamp( HDC hdc, void *ptr );
DWORD
WINAPI
NtGdiSetLayout
(
HDC
hdc
,
LONG
wox
,
DWORD
layout
);
BOOL
WINAPI
NtGdiSetMagicColors
(
HDC
hdc
,
DWORD
magic
,
ULONG
index
);
INT
WINAPI
NtGdiSetMetaRgn
(
HDC
hdc
);
BOOL
WINAPI
NtGdiSetMiterLimit
(
HDC
hdc
,
FLOAT
limit
,
FLOAT
*
prev_limit
);
BOOL
WINAPI
NtGdiSetMiterLimit
(
HDC
hdc
,
DWORD
limit
,
DWORD
*
prev_limit
);
COLORREF
WINAPI
NtGdiSetPixel
(
HDC
hdc
,
INT
x
,
INT
y
,
COLORREF
color
);
BOOL
WINAPI
NtGdiSetPixelFormat
(
HDC
hdc
,
INT
format
);
BOOL
WINAPI
NtGdiSetRectRgn
(
HRGN
hrgn
,
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