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
d2d81327
Commit
d2d81327
authored
Sep 10, 2021
by
Jacek Caban
Committed by
Alexandre Julliard
Sep 10, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32: Fix some ntgdi names.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Huw Davies
<
huw@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
33ecaf35
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
25 additions
and
21 deletions
+25
-21
brush.c
dlls/gdi32/brush.c
+2
-2
font.c
dlls/gdi32/font.c
+6
-6
gdi32.spec
dlls/gdi32/gdi32.spec
+1
-1
objects.c
dlls/gdi32/objects.c
+1
-1
text.c
dlls/gdi32/text.c
+6
-6
ntgdi.h
include/ntgdi.h
+9
-5
No files found.
dlls/gdi32/brush.c
View file @
d2d81327
...
...
@@ -207,11 +207,11 @@ HBRUSH create_brush( const LOGBRUSH *brush )
/***********************************************************************
* NtGdiCreateHatchBrush (win32u.@)
* NtGdiCreateHatchBrush
Internal
(win32u.@)
*
* Create a logical brush with a hatched pattern.
*/
HBRUSH
WINAPI
NtGdiCreateHatchBrush
(
INT
style
,
COLORREF
color
,
BOOL
pen
)
HBRUSH
WINAPI
NtGdiCreateHatchBrush
Internal
(
INT
style
,
COLORREF
color
,
BOOL
pen
)
{
LOGBRUSH
logbrush
;
...
...
dlls/gdi32/font.c
View file @
d2d81327
...
...
@@ -5447,11 +5447,11 @@ BOOL WINAPI NtGdiGetCharABCWidthsW( HDC hdc, UINT first, UINT last, WCHAR *chars
/***********************************************************************
* NtGdiGetGlyphOutline
W
(win32u.@)
* NtGdiGetGlyphOutline (win32u.@)
*/
DWORD
WINAPI
NtGdiGetGlyphOutline
W
(
HDC
hdc
,
UINT
ch
,
UINT
format
,
GLYPHMETRICS
*
metrics
,
DWORD
size
,
void
*
buffer
,
const
MAT2
*
mat2
,
BOOL
ignore_rotation
)
DWORD
WINAPI
NtGdiGetGlyphOutline
(
HDC
hdc
,
UINT
ch
,
UINT
format
,
GLYPHMETRICS
*
metrics
,
DWORD
size
,
void
*
buffer
,
const
MAT2
*
mat2
,
BOOL
ignore_rotation
)
{
DC
*
dc
;
DWORD
ret
;
...
...
@@ -5732,9 +5732,9 @@ done:
}
/*************************************************************************
* NtGdiGetKerningPairs
W
(win32u.@)
* NtGdiGetKerningPairs (win32u.@)
*/
DWORD
WINAPI
NtGdiGetKerningPairs
W
(
HDC
hdc
,
DWORD
count
,
KERNINGPAIR
*
kern_pair
)
DWORD
WINAPI
NtGdiGetKerningPairs
(
HDC
hdc
,
DWORD
count
,
KERNINGPAIR
*
kern_pair
)
{
DC
*
dc
;
DWORD
ret
;
...
...
dlls/gdi32/gdi32.spec
View file @
d2d81327
...
...
@@ -309,7 +309,7 @@
@ stdcall GetICMProfileW(long ptr ptr)
@ stdcall GetKerningPairs(long long ptr) GetKerningPairsA
@ stdcall GetKerningPairsA(long long ptr)
@ stdcall GetKerningPairsW(long long ptr) NtGdiGetKerningPairs
W
@ stdcall GetKerningPairsW(long long ptr) NtGdiGetKerningPairs
@ stdcall GetLayout(long)
@ stdcall GetLogColorSpaceA(long ptr long)
@ stdcall GetLogColorSpaceW(long ptr long)
...
...
dlls/gdi32/objects.c
View file @
d2d81327
...
...
@@ -546,7 +546,7 @@ HBRUSH WINAPI CreateSolidBrush( COLORREF color )
*/
HBRUSH
WINAPI
CreateHatchBrush
(
INT
style
,
COLORREF
color
)
{
return
NtGdiCreateHatchBrush
(
style
,
color
,
FALSE
);
return
NtGdiCreateHatchBrush
Internal
(
style
,
color
,
FALSE
);
}
/***********************************************************************
...
...
dlls/gdi32/text.c
View file @
d2d81327
...
...
@@ -1083,7 +1083,7 @@ static int *kern_string( HDC hdc, const WCHAR *str, int len, int *kern_total )
ret
=
HeapAlloc
(
GetProcessHeap
(),
0
,
len
*
sizeof
(
*
ret
)
);
if
(
!
ret
)
return
NULL
;
count
=
NtGdiGetKerningPairs
W
(
hdc
,
0
,
NULL
);
count
=
NtGdiGetKerningPairs
(
hdc
,
0
,
NULL
);
if
(
count
)
{
kern
=
HeapAlloc
(
GetProcessHeap
(),
0
,
count
*
sizeof
(
*
kern
)
);
...
...
@@ -1093,7 +1093,7 @@ static int *kern_string( HDC hdc, const WCHAR *str, int len, int *kern_total )
return
NULL
;
}
NtGdiGetKerningPairs
W
(
hdc
,
count
,
kern
);
NtGdiGetKerningPairs
(
hdc
,
count
,
kern
);
}
for
(
i
=
0
;
i
<
len
-
1
;
i
++
)
...
...
@@ -1818,7 +1818,7 @@ DWORD WINAPI GetGlyphOutlineA( HDC hdc, UINT ch, UINT format, GLYPHMETRICS *metr
DWORD
WINAPI
GetGlyphOutlineW
(
HDC
hdc
,
UINT
ch
,
UINT
format
,
GLYPHMETRICS
*
metrics
,
DWORD
size
,
void
*
buffer
,
const
MAT2
*
mat2
)
{
return
NtGdiGetGlyphOutline
W
(
hdc
,
ch
,
format
,
metrics
,
size
,
buffer
,
mat2
,
FALSE
);
return
NtGdiGetGlyphOutline
(
hdc
,
ch
,
format
,
metrics
,
size
,
buffer
,
mat2
,
FALSE
);
}
/*************************************************************************
...
...
@@ -1849,11 +1849,11 @@ DWORD WINAPI GetKerningPairsA( HDC hdc, DWORD count, KERNINGPAIR *kern_pairA )
return
0
;
}
total_kern_pairs
=
NtGdiGetKerningPairs
W
(
hdc
,
0
,
NULL
);
total_kern_pairs
=
NtGdiGetKerningPairs
(
hdc
,
0
,
NULL
);
if
(
!
total_kern_pairs
)
return
0
;
kern_pairW
=
HeapAlloc
(
GetProcessHeap
(),
0
,
total_kern_pairs
*
sizeof
(
*
kern_pairW
)
);
NtGdiGetKerningPairs
W
(
hdc
,
total_kern_pairs
,
kern_pairW
);
NtGdiGetKerningPairs
(
hdc
,
total_kern_pairs
,
kern_pairW
);
for
(
i
=
0
;
i
<
total_kern_pairs
;
i
++
)
{
...
...
@@ -1922,7 +1922,7 @@ DWORD WINAPI GetFontLanguageInfo( HDC hdc )
if
(
fontsig
.
fsCsb
[
0
]
&
GCP_LIGATE_MASK
)
result
|=
GCP_LIGATE
;
if
(
NtGdiGetKerningPairs
W
(
hdc
,
0
,
NULL
))
if
(
NtGdiGetKerningPairs
(
hdc
,
0
,
NULL
))
result
|=
GCP_USEKERNING
;
/* this might need a test for a HEBREW- or ARABIC_CHARSET as well */
...
...
include/ntgdi.h
View file @
d2d81327
...
...
@@ -255,7 +255,7 @@ HDC WINAPI NtGdiCreateCompatibleDC( HDC hdc );
HBRUSH
WINAPI
NtGdiCreateDIBBrush
(
const
void
*
data
,
UINT
coloruse
,
UINT
size
,
BOOL
is_8x8
,
BOOL
pen
,
const
void
*
client
);
HRGN
WINAPI
NtGdiCreateEllipticRgn
(
INT
left
,
INT
top
,
INT
right
,
INT
bottom
);
HBRUSH
WINAPI
NtGdiCreateHatchBrush
(
INT
style
,
COLORREF
color
,
BOOL
pen
);
HBRUSH
WINAPI
NtGdiCreateHatchBrush
Internal
(
INT
style
,
COLORREF
color
,
BOOL
pen
);
HBRUSH
WINAPI
NtGdiCreatePatternBrushInternal
(
HBITMAP
hbitmap
,
BOOL
pen
,
BOOL
is_8x8
);
HPEN
WINAPI
NtGdiCreatePen
(
INT
style
,
INT
width
,
COLORREF
color
,
HBRUSH
brush
);
HRGN
WINAPI
NtGdiCreateRectRgn
(
INT
left
,
INT
top
,
INT
right
,
INT
bottom
);
...
...
@@ -264,6 +264,8 @@ HRGN WINAPI NtGdiCreateRoundRectRgn( INT left, INT top, INT right, INT botto
HBRUSH
WINAPI
NtGdiCreateSolidBrush
(
COLORREF
color
,
HBRUSH
brush
);
BOOL
WINAPI
NtGdiDeleteClientObj
(
HGDIOBJ
obj
);
BOOL
WINAPI
NtGdiDeleteObjectApp
(
HGDIOBJ
obj
);
INT
WINAPI
NtGdiDescribePixelFormat
(
HDC
hdc
,
INT
format
,
UINT
size
,
PIXELFORMATDESCRIPTOR
*
descr
);
LONG
WINAPI
NtGdiDoPalette
(
HGDIOBJ
handle
,
WORD
start
,
WORD
count
,
void
*
entries
,
DWORD
func
,
BOOL
inbound
);
INT
WINAPI
NtGdiEndPage
(
HDC
hdc
);
...
...
@@ -288,6 +290,7 @@ BOOL WINAPI NtGdiFrameRgn( HDC hdc, HRGN hrgn, HBRUSH brush,
BOOL
WINAPI
NtGdiFillPath
(
HDC
hdc
);
BOOL
WINAPI
NtGdiGetAndSetDCDword
(
HDC
hdc
,
UINT
method
,
DWORD
value
,
DWORD
*
result
);
INT
WINAPI
NtGdiGetAppClipBox
(
HDC
hdc
,
RECT
*
rect
);
LONG
WINAPI
NtGdiGetBitmapBits
(
HBITMAP
bitmap
,
LONG
count
,
void
*
bits
);
BOOL
WINAPI
NtGdiGetBitmapDimension
(
HBITMAP
bitmap
,
SIZE
*
size
);
UINT
WINAPI
NtGdiGetBoundsRect
(
HDC
hdc
,
RECT
*
rect
,
UINT
flags
);
BOOL
WINAPI
NtGdiGetCharABCWidthsW
(
HDC
hdc
,
UINT
first
,
UINT
last
,
WCHAR
*
chars
,
...
...
@@ -312,10 +315,10 @@ BOOL WINAPI NtGdiGetFontFileInfo( DWORD instance_id, DWORD file_index, struc
DWORD
WINAPI
NtGdiGetFontUnicodeRanges
(
HDC
hdc
,
GLYPHSET
*
lpgs
);
DWORD
WINAPI
NtGdiGetGlyphIndicesW
(
HDC
hdc
,
const
WCHAR
*
str
,
INT
count
,
WORD
*
indices
,
DWORD
flags
);
DWORD
WINAPI
NtGdiGetGlyphOutline
W
(
HDC
hdc
,
UINT
ch
,
UINT
format
,
GLYPHMETRICS
*
metrics
,
DWORD
size
,
void
*
buffer
,
const
MAT2
*
mat2
,
BOOL
ignore_rotation
);
DWORD
WINAPI
NtGdiGetKerningPairs
W
(
HDC
hdc
,
DWORD
count
,
KERNINGPAIR
*
kern_pair
);
DWORD
WINAPI
NtGdiGetGlyphOutline
(
HDC
hdc
,
UINT
ch
,
UINT
format
,
GLYPHMETRICS
*
metrics
,
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
);
COLORREF
WINAPI
NtGdiGetNearestColor
(
HDC
hdc
,
COLORREF
color
);
UINT
WINAPI
NtGdiGetNearestPaletteIndex
(
HPALETTE
hpalette
,
COLORREF
color
);
...
...
@@ -417,6 +420,7 @@ INT WINAPI NtGdiStretchDIBitsInternal( HDC hdc, INT x_dst, INT y_dst, INT w
HANDLE
xform
);
BOOL
WINAPI
NtGdiStrokePath
(
HDC
hdc
);
BOOL
WINAPI
NtGdiStrokeAndFillPath
(
HDC
hdc
);
BOOL
WINAPI
NtGdiSwapBuffers
(
HDC
hdc
);
BOOL
WINAPI
NtGdiTransparentBlt
(
HDC
hdc
,
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
,
UINT
color
);
...
...
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