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
28642d22
Commit
28642d22
authored
Aug 01, 2022
by
Jacek Caban
Committed by
Alexandre Julliard
May 26, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
win32u: Use syscall interface for more clipping functions.
parent
1ac5a2e0
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
122 additions
and
90 deletions
+122
-90
gdiobj.c
dlls/win32u/gdiobj.c
+0
-10
syscall.c
dlls/win32u/syscall.c
+10
-0
win32u.spec
dlls/win32u/win32u.spec
+10
-10
win32u_private.h
dlls/win32u/win32u_private.h
+0
-10
wrappers.c
dlls/win32u/wrappers.c
+0
-60
gdi.c
dlls/wow64win/gdi.c
+92
-0
syscall.h
dlls/wow64win/syscall.h
+10
-0
No files found.
dlls/win32u/gdiobj.c
View file @
28642d22
...
@@ -1031,23 +1031,13 @@ BOOL WINAPI NtGdiSetColorAdjustment( HDC hdc, const COLORADJUSTMENT *ca )
...
@@ -1031,23 +1031,13 @@ BOOL WINAPI NtGdiSetColorAdjustment( HDC hdc, const COLORADJUSTMENT *ca )
static
struct
unix_funcs
unix_funcs
=
static
struct
unix_funcs
unix_funcs
=
{
{
NtGdiDoPalette
,
NtGdiDoPalette
,
NtGdiExcludeClipRect
,
NtGdiExtEscape
,
NtGdiExtEscape
,
NtGdiExtSelectClipRgn
,
NtGdiGetAndSetDCDword
,
NtGdiGetAndSetDCDword
,
NtGdiGetAppClipBox
,
NtGdiGetBoundsRect
,
NtGdiGetDeviceCaps
,
NtGdiGetDeviceCaps
,
NtGdiGetDeviceGammaRamp
,
NtGdiGetDeviceGammaRamp
,
NtGdiGetNearestColor
,
NtGdiGetNearestColor
,
NtGdiGetRandomRgn
,
NtGdiGetRasterizerCaps
,
NtGdiGetRasterizerCaps
,
NtGdiIntersectClipRect
,
NtGdiOffsetClipRgn
,
NtGdiPtVisible
,
NtGdiRectVisible
,
NtGdiResizePalette
,
NtGdiResizePalette
,
NtGdiSetBoundsRect
,
NtGdiSetDeviceGammaRamp
,
NtGdiSetDeviceGammaRamp
,
NtGdiSetLayout
,
NtGdiSetLayout
,
NtGdiSetSystemPaletteUse
,
NtGdiSetSystemPaletteUse
,
...
...
dlls/win32u/syscall.c
View file @
28642d22
...
@@ -89,10 +89,12 @@ static void * const syscalls[] =
...
@@ -89,10 +89,12 @@ static void * const syscalls[] =
NtGdiEndPath
,
NtGdiEndPath
,
NtGdiEnumFonts
,
NtGdiEnumFonts
,
NtGdiEqualRgn
,
NtGdiEqualRgn
,
NtGdiExcludeClipRect
,
NtGdiExtCreatePen
,
NtGdiExtCreatePen
,
NtGdiExtCreateRegion
,
NtGdiExtCreateRegion
,
NtGdiExtFloodFill
,
NtGdiExtFloodFill
,
NtGdiExtGetObjectW
,
NtGdiExtGetObjectW
,
NtGdiExtSelectClipRgn
,
NtGdiExtTextOutW
,
NtGdiExtTextOutW
,
NtGdiFillPath
,
NtGdiFillPath
,
NtGdiFillRgn
,
NtGdiFillRgn
,
...
@@ -100,8 +102,10 @@ static void * const syscalls[] =
...
@@ -100,8 +102,10 @@ static void * const syscalls[] =
NtGdiFlush
,
NtGdiFlush
,
NtGdiFontIsLinked
,
NtGdiFontIsLinked
,
NtGdiFrameRgn
,
NtGdiFrameRgn
,
NtGdiGetAppClipBox
,
NtGdiGetBitmapBits
,
NtGdiGetBitmapBits
,
NtGdiGetBitmapDimension
,
NtGdiGetBitmapDimension
,
NtGdiGetBoundsRect
,
NtGdiGetCharABCWidthsW
,
NtGdiGetCharABCWidthsW
,
NtGdiGetCharWidthInfo
,
NtGdiGetCharWidthInfo
,
NtGdiGetCharWidthW
,
NtGdiGetCharWidthW
,
...
@@ -121,6 +125,7 @@ static void * const syscalls[] =
...
@@ -121,6 +125,7 @@ static void * const syscalls[] =
NtGdiGetOutlineTextMetricsInternalW
,
NtGdiGetOutlineTextMetricsInternalW
,
NtGdiGetPath
,
NtGdiGetPath
,
NtGdiGetPixel
,
NtGdiGetPixel
,
NtGdiGetRandomRgn
,
NtGdiGetRealizationInfo
,
NtGdiGetRealizationInfo
,
NtGdiGetRegionData
,
NtGdiGetRegionData
,
NtGdiGetRgnBox
,
NtGdiGetRgnBox
,
...
@@ -134,11 +139,13 @@ static void * const syscalls[] =
...
@@ -134,11 +139,13 @@ static void * const syscalls[] =
NtGdiGradientFill
,
NtGdiGradientFill
,
NtGdiHfontCreate
,
NtGdiHfontCreate
,
NtGdiInitSpool
,
NtGdiInitSpool
,
NtGdiIntersectClipRect
,
NtGdiInvertRgn
,
NtGdiInvertRgn
,
NtGdiLineTo
,
NtGdiLineTo
,
NtGdiMaskBlt
,
NtGdiMaskBlt
,
NtGdiModifyWorldTransform
,
NtGdiModifyWorldTransform
,
NtGdiMoveTo
,
NtGdiMoveTo
,
NtGdiOffsetClipRgn
,
NtGdiOffsetRgn
,
NtGdiOffsetRgn
,
NtGdiOpenDCW
,
NtGdiOpenDCW
,
NtGdiPatBlt
,
NtGdiPatBlt
,
...
@@ -147,7 +154,9 @@ static void * const syscalls[] =
...
@@ -147,7 +154,9 @@ static void * const syscalls[] =
NtGdiPolyDraw
,
NtGdiPolyDraw
,
NtGdiPolyPolyDraw
,
NtGdiPolyPolyDraw
,
NtGdiPtInRegion
,
NtGdiPtInRegion
,
NtGdiPtVisible
,
NtGdiRectInRegion
,
NtGdiRectInRegion
,
NtGdiRectVisible
,
NtGdiRectangle
,
NtGdiRectangle
,
NtGdiRemoveFontMemResourceEx
,
NtGdiRemoveFontMemResourceEx
,
NtGdiRemoveFontResourceW
,
NtGdiRemoveFontResourceW
,
...
@@ -164,6 +173,7 @@ static void * const syscalls[] =
...
@@ -164,6 +173,7 @@ static void * const syscalls[] =
NtGdiSelectPen
,
NtGdiSelectPen
,
NtGdiSetBitmapBits
,
NtGdiSetBitmapBits
,
NtGdiSetBitmapDimension
,
NtGdiSetBitmapDimension
,
NtGdiSetBoundsRect
,
NtGdiSetBrushOrg
,
NtGdiSetBrushOrg
,
NtGdiSetColorAdjustment
,
NtGdiSetColorAdjustment
,
NtGdiSetDIBitsToDeviceInternal
,
NtGdiSetDIBitsToDeviceInternal
,
...
...
dlls/win32u/win32u.spec
View file @
28642d22
...
@@ -417,13 +417,13 @@
...
@@ -417,13 +417,13 @@
@ stub NtGdiEnumObjects
@ stub NtGdiEnumObjects
@ stdcall -syscall NtGdiEqualRgn(long long)
@ stdcall -syscall NtGdiEqualRgn(long long)
@ stub NtGdiEudcLoadUnloadLink
@ stub NtGdiEudcLoadUnloadLink
@ stdcall NtGdiExcludeClipRect(long long long long long)
@ stdcall
-syscall
NtGdiExcludeClipRect(long long long long long)
@ stdcall -syscall NtGdiExtCreatePen(long long long long long long long ptr long long long)
@ stdcall -syscall NtGdiExtCreatePen(long long long long long long long ptr long long long)
@ stdcall -syscall NtGdiExtCreateRegion(ptr long ptr)
@ stdcall -syscall NtGdiExtCreateRegion(ptr long ptr)
@ stdcall NtGdiExtEscape(long wstr long long long ptr long ptr)
@ stdcall NtGdiExtEscape(long wstr long long long ptr long ptr)
@ stdcall -syscall NtGdiExtFloodFill(long long long long long)
@ stdcall -syscall NtGdiExtFloodFill(long long long long long)
@ stdcall -syscall NtGdiExtGetObjectW(long long ptr)
@ stdcall -syscall NtGdiExtGetObjectW(long long ptr)
@ stdcall NtGdiExtSelectClipRgn(long long long)
@ stdcall
-syscall
NtGdiExtSelectClipRgn(long long long)
@ stdcall -syscall NtGdiExtTextOutW(long long long long ptr ptr long ptr long)
@ stdcall -syscall NtGdiExtTextOutW(long long long long ptr ptr long ptr long)
@ stub NtGdiFONTOBJ_cGetAllGlyphHandles
@ stub NtGdiFONTOBJ_cGetAllGlyphHandles
@ stub NtGdiFONTOBJ_cGetGlyphs
@ stub NtGdiFONTOBJ_cGetGlyphs
...
@@ -442,12 +442,12 @@
...
@@ -442,12 +442,12 @@
@ stdcall -syscall NtGdiFrameRgn(long long long long long)
@ stdcall -syscall NtGdiFrameRgn(long long long long long)
@ stub NtGdiFullscreenControl
@ stub NtGdiFullscreenControl
@ stdcall NtGdiGetAndSetDCDword(long long long ptr)
@ stdcall NtGdiGetAndSetDCDword(long long long ptr)
@ stdcall NtGdiGetAppClipBox(long ptr)
@ stdcall
-syscall
NtGdiGetAppClipBox(long ptr)
@ stub NtGdiGetAppliedDeviceGammaRamp
@ stub NtGdiGetAppliedDeviceGammaRamp
@ stdcall -syscall NtGdiGetBitmapBits(long long ptr)
@ stdcall -syscall NtGdiGetBitmapBits(long long ptr)
@ stdcall -syscall NtGdiGetBitmapDimension(long ptr)
@ stdcall -syscall NtGdiGetBitmapDimension(long ptr)
@ stub NtGdiGetBitmapDpiScaleValue
@ stub NtGdiGetBitmapDpiScaleValue
@ stdcall NtGdiGetBoundsRect(long ptr long)
@ stdcall
-syscall
NtGdiGetBoundsRect(long ptr long)
@ stub NtGdiGetCOPPCompatibleOPMInformation
@ stub NtGdiGetCOPPCompatibleOPMInformation
@ stub NtGdiGetCertificate
@ stub NtGdiGetCertificate
@ stub NtGdiGetCertificateByHandle
@ stub NtGdiGetCertificateByHandle
...
@@ -504,7 +504,7 @@
...
@@ -504,7 +504,7 @@
@ stdcall -syscall NtGdiGetPixel(long long long)
@ stdcall -syscall NtGdiGetPixel(long long long)
@ stub NtGdiGetProcessSessionFonts
@ stub NtGdiGetProcessSessionFonts
@ stub NtGdiGetPublicFontTableChangeCookie
@ stub NtGdiGetPublicFontTableChangeCookie
@ stdcall NtGdiGetRandomRgn(long long long)
@ stdcall
-syscall
NtGdiGetRandomRgn(long long long)
@ stdcall NtGdiGetRasterizerCaps(ptr long)
@ stdcall NtGdiGetRasterizerCaps(ptr long)
@ stdcall -syscall NtGdiGetRealizationInfo(long ptr)
@ stdcall -syscall NtGdiGetRealizationInfo(long ptr)
@ stdcall -syscall NtGdiGetRegionData(long long ptr)
@ stdcall -syscall NtGdiGetRegionData(long long ptr)
...
@@ -533,7 +533,7 @@
...
@@ -533,7 +533,7 @@
@ stub NtGdiIcmBrushInfo
@ stub NtGdiIcmBrushInfo
@ stub NtGdiInit
@ stub NtGdiInit
@ stdcall -syscall NtGdiInitSpool()
@ stdcall -syscall NtGdiInitSpool()
@ stdcall NtGdiIntersectClipRect(long long long long long)
@ stdcall
-syscall
NtGdiIntersectClipRect(long long long long long)
@ stdcall -syscall NtGdiInvertRgn(long long)
@ stdcall -syscall NtGdiInvertRgn(long long)
@ stdcall -syscall NtGdiLineTo(long long long)
@ stdcall -syscall NtGdiLineTo(long long long)
@ stub NtGdiMakeFontDir
@ stub NtGdiMakeFontDir
...
@@ -545,7 +545,7 @@
...
@@ -545,7 +545,7 @@
@ stdcall -syscall NtGdiModifyWorldTransform(long ptr long)
@ stdcall -syscall NtGdiModifyWorldTransform(long ptr long)
@ stub NtGdiMonoBitmap
@ stub NtGdiMonoBitmap
@ stdcall -syscall NtGdiMoveTo(long long long ptr)
@ stdcall -syscall NtGdiMoveTo(long long long ptr)
@ stdcall NtGdiOffsetClipRgn(long long long)
@ stdcall
-syscall
NtGdiOffsetClipRgn(long long long)
@ stdcall -syscall NtGdiOffsetRgn(long long long)
@ stdcall -syscall NtGdiOffsetRgn(long long long)
@ stdcall -syscall NtGdiOpenDCW(ptr ptr ptr long long ptr ptr ptr)
@ stdcall -syscall NtGdiOpenDCW(ptr ptr ptr long long ptr ptr ptr)
@ stub NtGdiPATHOBJ_bEnum
@ stub NtGdiPATHOBJ_bEnum
...
@@ -561,11 +561,11 @@
...
@@ -561,11 +561,11 @@
@ stdcall -syscall NtGdiPolyPolyDraw(long ptr ptr long long)
@ stdcall -syscall NtGdiPolyPolyDraw(long ptr ptr long long)
@ stub NtGdiPolyTextOutW
@ stub NtGdiPolyTextOutW
@ stdcall -syscall NtGdiPtInRegion(long long long)
@ stdcall -syscall NtGdiPtInRegion(long long long)
@ stdcall NtGdiPtVisible(long long long)
@ stdcall
-syscall
NtGdiPtVisible(long long long)
@ stub NtGdiQueryFontAssocInfo
@ stub NtGdiQueryFontAssocInfo
@ stub NtGdiQueryFonts
@ stub NtGdiQueryFonts
@ stdcall -syscall NtGdiRectInRegion(long ptr)
@ stdcall -syscall NtGdiRectInRegion(long ptr)
@ stdcall NtGdiRectVisible(long ptr)
@ stdcall
-syscall
NtGdiRectVisible(long ptr)
@ stdcall -syscall NtGdiRectangle(long long long long long)
@ stdcall -syscall NtGdiRectangle(long long long long long)
@ stdcall -syscall NtGdiRemoveFontMemResourceEx(long)
@ stdcall -syscall NtGdiRemoveFontMemResourceEx(long)
@ stdcall -syscall NtGdiRemoveFontResourceW(wstr long long long long ptr)
@ stdcall -syscall NtGdiRemoveFontResourceW(wstr long long long long ptr)
...
@@ -592,7 +592,7 @@
...
@@ -592,7 +592,7 @@
@ stub NtGdiSetBitmapAttributes
@ stub NtGdiSetBitmapAttributes
@ stdcall -syscall NtGdiSetBitmapBits(long long ptr)
@ stdcall -syscall NtGdiSetBitmapBits(long long ptr)
@ stdcall -syscall NtGdiSetBitmapDimension(long long long ptr)
@ stdcall -syscall NtGdiSetBitmapDimension(long long long ptr)
@ stdcall NtGdiSetBoundsRect(long ptr long)
@ stdcall
-syscall
NtGdiSetBoundsRect(long ptr long)
@ stub NtGdiSetBrushAttributes
@ stub NtGdiSetBrushAttributes
@ stdcall -syscall NtGdiSetBrushOrg(long long long ptr)
@ stdcall -syscall NtGdiSetBrushOrg(long long long ptr)
@ stdcall -syscall NtGdiSetColorAdjustment(long ptr)
@ stdcall -syscall NtGdiSetColorAdjustment(long ptr)
...
...
dlls/win32u/win32u_private.h
View file @
28642d22
...
@@ -37,24 +37,14 @@ struct unix_funcs
...
@@ -37,24 +37,14 @@ struct unix_funcs
/* win32u functions */
/* win32u functions */
LONG
(
WINAPI
*
pNtGdiDoPalette
)(
HGDIOBJ
handle
,
WORD
start
,
WORD
count
,
void
*
entries
,
LONG
(
WINAPI
*
pNtGdiDoPalette
)(
HGDIOBJ
handle
,
WORD
start
,
WORD
count
,
void
*
entries
,
DWORD
func
,
BOOL
inbound
);
DWORD
func
,
BOOL
inbound
);
INT
(
WINAPI
*
pNtGdiExcludeClipRect
)(
HDC
hdc
,
INT
left
,
INT
top
,
INT
right
,
INT
bottom
);
INT
(
WINAPI
*
pNtGdiExtEscape
)(
HDC
hdc
,
WCHAR
*
driver
,
INT
driver_id
,
INT
escape
,
INT
input_size
,
INT
(
WINAPI
*
pNtGdiExtEscape
)(
HDC
hdc
,
WCHAR
*
driver
,
INT
driver_id
,
INT
escape
,
INT
input_size
,
const
char
*
input
,
INT
output_size
,
char
*
output
);
const
char
*
input
,
INT
output_size
,
char
*
output
);
INT
(
WINAPI
*
pNtGdiExtSelectClipRgn
)(
HDC
hdc
,
HRGN
region
,
INT
mode
);
BOOL
(
WINAPI
*
pNtGdiGetAndSetDCDword
)(
HDC
hdc
,
UINT
method
,
DWORD
value
,
DWORD
*
result
);
BOOL
(
WINAPI
*
pNtGdiGetAndSetDCDword
)(
HDC
hdc
,
UINT
method
,
DWORD
value
,
DWORD
*
result
);
INT
(
WINAPI
*
pNtGdiGetAppClipBox
)(
HDC
hdc
,
RECT
*
rect
);
UINT
(
WINAPI
*
pNtGdiGetBoundsRect
)(
HDC
hdc
,
RECT
*
rect
,
UINT
flags
);
INT
(
WINAPI
*
pNtGdiGetDeviceCaps
)(
HDC
hdc
,
INT
cap
);
INT
(
WINAPI
*
pNtGdiGetDeviceCaps
)(
HDC
hdc
,
INT
cap
);
BOOL
(
WINAPI
*
pNtGdiGetDeviceGammaRamp
)(
HDC
hdc
,
void
*
ptr
);
BOOL
(
WINAPI
*
pNtGdiGetDeviceGammaRamp
)(
HDC
hdc
,
void
*
ptr
);
COLORREF
(
WINAPI
*
pNtGdiGetNearestColor
)(
HDC
hdc
,
COLORREF
color
);
COLORREF
(
WINAPI
*
pNtGdiGetNearestColor
)(
HDC
hdc
,
COLORREF
color
);
INT
(
WINAPI
*
pNtGdiGetRandomRgn
)(
HDC
hdc
,
HRGN
region
,
INT
code
);
BOOL
(
WINAPI
*
pNtGdiGetRasterizerCaps
)(
RASTERIZER_STATUS
*
status
,
UINT
size
);
BOOL
(
WINAPI
*
pNtGdiGetRasterizerCaps
)(
RASTERIZER_STATUS
*
status
,
UINT
size
);
INT
(
WINAPI
*
pNtGdiIntersectClipRect
)(
HDC
hdc
,
INT
left
,
INT
top
,
INT
right
,
INT
bottom
);
INT
(
WINAPI
*
pNtGdiOffsetClipRgn
)(
HDC
hdc
,
INT
x
,
INT
y
);
BOOL
(
WINAPI
*
pNtGdiPtVisible
)(
HDC
hdc
,
INT
x
,
INT
y
);
BOOL
(
WINAPI
*
pNtGdiRectVisible
)(
HDC
hdc
,
const
RECT
*
rect
);
BOOL
(
WINAPI
*
pNtGdiResizePalette
)(
HPALETTE
palette
,
UINT
count
);
BOOL
(
WINAPI
*
pNtGdiResizePalette
)(
HPALETTE
palette
,
UINT
count
);
UINT
(
WINAPI
*
pNtGdiSetBoundsRect
)(
HDC
hdc
,
const
RECT
*
rect
,
UINT
flags
);
BOOL
(
WINAPI
*
pNtGdiSetDeviceGammaRamp
)(
HDC
hdc
,
void
*
ptr
);
BOOL
(
WINAPI
*
pNtGdiSetDeviceGammaRamp
)(
HDC
hdc
,
void
*
ptr
);
DWORD
(
WINAPI
*
pNtGdiSetLayout
)(
HDC
hdc
,
LONG
wox
,
DWORD
layout
);
DWORD
(
WINAPI
*
pNtGdiSetLayout
)(
HDC
hdc
,
LONG
wox
,
DWORD
layout
);
UINT
(
WINAPI
*
pNtGdiSetSystemPaletteUse
)(
HDC
hdc
,
UINT
use
);
UINT
(
WINAPI
*
pNtGdiSetSystemPaletteUse
)(
HDC
hdc
,
UINT
use
);
...
...
dlls/win32u/wrappers.c
View file @
28642d22
...
@@ -37,12 +37,6 @@ BOOL WINAPI NtUserEndPaint( HWND hwnd, const PAINTSTRUCT *ps )
...
@@ -37,12 +37,6 @@ BOOL WINAPI NtUserEndPaint( HWND hwnd, const PAINTSTRUCT *ps )
return
unix_funcs
->
pNtUserEndPaint
(
hwnd
,
ps
);
return
unix_funcs
->
pNtUserEndPaint
(
hwnd
,
ps
);
}
}
INT
WINAPI
NtGdiExcludeClipRect
(
HDC
hdc
,
INT
left
,
INT
top
,
INT
right
,
INT
bottom
)
{
if
(
!
unix_funcs
)
return
ERROR
;
return
unix_funcs
->
pNtGdiExcludeClipRect
(
hdc
,
left
,
top
,
right
,
bottom
);
}
INT
WINAPI
NtGdiExtEscape
(
HDC
hdc
,
WCHAR
*
driver
,
INT
driver_id
,
INT
escape
,
INT
input_size
,
INT
WINAPI
NtGdiExtEscape
(
HDC
hdc
,
WCHAR
*
driver
,
INT
driver_id
,
INT
escape
,
INT
input_size
,
const
char
*
input
,
INT
output_size
,
char
*
output
)
const
char
*
input
,
INT
output_size
,
char
*
output
)
{
{
...
@@ -51,30 +45,12 @@ INT WINAPI NtGdiExtEscape( HDC hdc, WCHAR *driver, INT driver_id, INT escape, IN
...
@@ -51,30 +45,12 @@ INT WINAPI NtGdiExtEscape( HDC hdc, WCHAR *driver, INT driver_id, INT escape, IN
output_size
,
output
);
output_size
,
output
);
}
}
INT
WINAPI
NtGdiExtSelectClipRgn
(
HDC
hdc
,
HRGN
region
,
INT
mode
)
{
if
(
!
unix_funcs
)
return
ERROR
;
return
unix_funcs
->
pNtGdiExtSelectClipRgn
(
hdc
,
region
,
mode
);
}
BOOL
WINAPI
NtGdiGetAndSetDCDword
(
HDC
hdc
,
UINT
method
,
DWORD
value
,
DWORD
*
result
)
BOOL
WINAPI
NtGdiGetAndSetDCDword
(
HDC
hdc
,
UINT
method
,
DWORD
value
,
DWORD
*
result
)
{
{
if
(
!
unix_funcs
)
return
FALSE
;
if
(
!
unix_funcs
)
return
FALSE
;
return
unix_funcs
->
pNtGdiGetAndSetDCDword
(
hdc
,
method
,
value
,
result
);
return
unix_funcs
->
pNtGdiGetAndSetDCDword
(
hdc
,
method
,
value
,
result
);
}
}
INT
WINAPI
NtGdiGetAppClipBox
(
HDC
hdc
,
RECT
*
rect
)
{
if
(
!
unix_funcs
)
return
ERROR
;
return
unix_funcs
->
pNtGdiGetAppClipBox
(
hdc
,
rect
);
}
UINT
WINAPI
NtGdiGetBoundsRect
(
HDC
hdc
,
RECT
*
rect
,
UINT
flags
)
{
if
(
!
unix_funcs
)
return
0
;
return
unix_funcs
->
pNtGdiGetBoundsRect
(
hdc
,
rect
,
flags
);
}
INT
WINAPI
NtGdiGetDeviceCaps
(
HDC
hdc
,
INT
cap
)
INT
WINAPI
NtGdiGetDeviceCaps
(
HDC
hdc
,
INT
cap
)
{
{
if
(
!
unix_funcs
)
return
0
;
if
(
!
unix_funcs
)
return
0
;
...
@@ -93,54 +69,18 @@ COLORREF WINAPI NtGdiGetNearestColor( HDC hdc, COLORREF color )
...
@@ -93,54 +69,18 @@ COLORREF WINAPI NtGdiGetNearestColor( HDC hdc, COLORREF color )
return
unix_funcs
->
pNtGdiGetNearestColor
(
hdc
,
color
);
return
unix_funcs
->
pNtGdiGetNearestColor
(
hdc
,
color
);
}
}
INT
WINAPI
NtGdiGetRandomRgn
(
HDC
hdc
,
HRGN
region
,
INT
code
)
{
if
(
!
unix_funcs
)
return
-
1
;
return
unix_funcs
->
pNtGdiGetRandomRgn
(
hdc
,
region
,
code
);
}
BOOL
WINAPI
NtGdiGetRasterizerCaps
(
RASTERIZER_STATUS
*
status
,
UINT
size
)
BOOL
WINAPI
NtGdiGetRasterizerCaps
(
RASTERIZER_STATUS
*
status
,
UINT
size
)
{
{
if
(
!
unix_funcs
)
return
FALSE
;
if
(
!
unix_funcs
)
return
FALSE
;
return
unix_funcs
->
pNtGdiGetRasterizerCaps
(
status
,
size
);
return
unix_funcs
->
pNtGdiGetRasterizerCaps
(
status
,
size
);
}
}
INT
WINAPI
NtGdiIntersectClipRect
(
HDC
hdc
,
INT
left
,
INT
top
,
INT
right
,
INT
bottom
)
{
if
(
!
unix_funcs
)
return
ERROR
;
return
unix_funcs
->
pNtGdiIntersectClipRect
(
hdc
,
left
,
top
,
right
,
bottom
);
}
INT
WINAPI
NtGdiOffsetClipRgn
(
HDC
hdc
,
INT
x
,
INT
y
)
{
if
(
!
unix_funcs
)
return
ERROR
;
return
unix_funcs
->
pNtGdiOffsetClipRgn
(
hdc
,
x
,
y
);
}
BOOL
WINAPI
NtGdiPtVisible
(
HDC
hdc
,
INT
x
,
INT
y
)
{
if
(
!
unix_funcs
)
return
FALSE
;
return
unix_funcs
->
pNtGdiPtVisible
(
hdc
,
x
,
y
);
}
BOOL
WINAPI
NtGdiRectVisible
(
HDC
hdc
,
const
RECT
*
rect
)
{
if
(
!
unix_funcs
)
return
FALSE
;
return
unix_funcs
->
pNtGdiRectVisible
(
hdc
,
rect
);
}
BOOL
WINAPI
NtGdiResizePalette
(
HPALETTE
palette
,
UINT
count
)
BOOL
WINAPI
NtGdiResizePalette
(
HPALETTE
palette
,
UINT
count
)
{
{
if
(
!
unix_funcs
)
return
FALSE
;
if
(
!
unix_funcs
)
return
FALSE
;
return
unix_funcs
->
pNtGdiResizePalette
(
palette
,
count
);
return
unix_funcs
->
pNtGdiResizePalette
(
palette
,
count
);
}
}
UINT
WINAPI
NtGdiSetBoundsRect
(
HDC
hdc
,
const
RECT
*
rect
,
UINT
flags
)
{
if
(
!
unix_funcs
)
return
0
;
return
unix_funcs
->
pNtGdiSetBoundsRect
(
hdc
,
rect
,
flags
);
}
BOOL
WINAPI
NtGdiSetDeviceGammaRamp
(
HDC
hdc
,
void
*
ptr
)
BOOL
WINAPI
NtGdiSetDeviceGammaRamp
(
HDC
hdc
,
void
*
ptr
)
{
{
if
(
!
unix_funcs
)
return
FALSE
;
if
(
!
unix_funcs
)
return
FALSE
;
...
...
dlls/wow64win/gdi.c
View file @
28642d22
...
@@ -730,6 +730,17 @@ NTSTATUS WINAPI wow64_NtGdiEnumFonts( UINT *args )
...
@@ -730,6 +730,17 @@ NTSTATUS WINAPI wow64_NtGdiEnumFonts( UINT *args )
return
NtGdiEnumFonts
(
hdc
,
type
,
win32_compat
,
face_name_len
,
face_name
,
charset
,
count
,
buf
);
return
NtGdiEnumFonts
(
hdc
,
type
,
win32_compat
,
face_name_len
,
face_name
,
charset
,
count
,
buf
);
}
}
NTSTATUS
WINAPI
wow64_NtGdiExcludeClipRect
(
UINT
*
args
)
{
HDC
hdc
=
get_handle
(
&
args
);
INT
left
=
get_ulong
(
&
args
);
INT
top
=
get_ulong
(
&
args
);
INT
right
=
get_ulong
(
&
args
);
INT
bottom
=
get_ulong
(
&
args
);
return
NtGdiExcludeClipRect
(
hdc
,
left
,
top
,
right
,
bottom
);
}
NTSTATUS
WINAPI
wow64_NtGdiEqualRgn
(
UINT
*
args
)
NTSTATUS
WINAPI
wow64_NtGdiEqualRgn
(
UINT
*
args
)
{
{
HRGN
hrgn1
=
get_handle
(
&
args
);
HRGN
hrgn1
=
get_handle
(
&
args
);
...
@@ -870,6 +881,15 @@ NTSTATUS WINAPI wow64_NtGdiExtGetObjectW( UINT *args )
...
@@ -870,6 +881,15 @@ NTSTATUS WINAPI wow64_NtGdiExtGetObjectW( UINT *args )
}
}
}
}
NTSTATUS
WINAPI
wow64_NtGdiExtSelectClipRgn
(
UINT
*
args
)
{
HDC
hdc
=
get_handle
(
&
args
);
HRGN
region
=
get_handle
(
&
args
);
INT
mode
=
get_ulong
(
&
args
);
return
NtGdiExtSelectClipRgn
(
hdc
,
region
,
mode
);
}
NTSTATUS
WINAPI
wow64_NtGdiExtTextOutW
(
UINT
*
args
)
NTSTATUS
WINAPI
wow64_NtGdiExtTextOutW
(
UINT
*
args
)
{
{
HDC
hdc
=
get_handle
(
&
args
);
HDC
hdc
=
get_handle
(
&
args
);
...
@@ -931,6 +951,14 @@ NTSTATUS WINAPI wow64_NtGdiFrameRgn( UINT *args )
...
@@ -931,6 +951,14 @@ NTSTATUS WINAPI wow64_NtGdiFrameRgn( UINT *args )
return
NtGdiFrameRgn
(
hdc
,
hrgn
,
brush
,
width
,
height
);
return
NtGdiFrameRgn
(
hdc
,
hrgn
,
brush
,
width
,
height
);
}
}
NTSTATUS
WINAPI
wow64_NtGdiGetAppClipBox
(
UINT
*
args
)
{
HDC
hdc
=
get_handle
(
&
args
);
RECT
*
rect
=
get_ptr
(
&
args
);
return
NtGdiGetAppClipBox
(
hdc
,
rect
);
}
NTSTATUS
WINAPI
wow64_NtGdiGetBitmapBits
(
UINT
*
args
)
NTSTATUS
WINAPI
wow64_NtGdiGetBitmapBits
(
UINT
*
args
)
{
{
HBITMAP
bitmap
=
get_handle
(
&
args
);
HBITMAP
bitmap
=
get_handle
(
&
args
);
...
@@ -948,6 +976,15 @@ NTSTATUS WINAPI wow64_NtGdiGetBitmapDimension( UINT *args )
...
@@ -948,6 +976,15 @@ NTSTATUS WINAPI wow64_NtGdiGetBitmapDimension( UINT *args )
return
NtGdiGetBitmapDimension
(
bitmap
,
size
);
return
NtGdiGetBitmapDimension
(
bitmap
,
size
);
}
}
NTSTATUS
WINAPI
wow64_NtGdiGetBoundsRect
(
UINT
*
args
)
{
HDC
hdc
=
get_handle
(
&
args
);
RECT
*
rect
=
get_ptr
(
&
args
);
UINT
flags
=
get_ulong
(
&
args
);
return
NtGdiGetBoundsRect
(
hdc
,
rect
,
flags
);
}
NTSTATUS
WINAPI
wow64_NtGdiGetCharABCWidthsW
(
UINT
*
args
)
NTSTATUS
WINAPI
wow64_NtGdiGetCharABCWidthsW
(
UINT
*
args
)
{
{
HDC
hdc
=
get_handle
(
&
args
);
HDC
hdc
=
get_handle
(
&
args
);
...
@@ -1192,6 +1229,15 @@ NTSTATUS WINAPI wow64_NtGdiGetPixel( UINT *args )
...
@@ -1192,6 +1229,15 @@ NTSTATUS WINAPI wow64_NtGdiGetPixel( UINT *args )
return
NtGdiGetPixel
(
hdc
,
x
,
y
);
return
NtGdiGetPixel
(
hdc
,
x
,
y
);
}
}
NTSTATUS
WINAPI
wow64_NtGdiGetRandomRgn
(
UINT
*
args
)
{
HDC
hdc
=
get_handle
(
&
args
);
HRGN
region
=
get_handle
(
&
args
);
INT
code
=
get_ulong
(
&
args
);
return
NtGdiGetRandomRgn
(
hdc
,
region
,
code
);
}
NTSTATUS
WINAPI
wow64_NtGdiGetRealizationInfo
(
UINT
*
args
)
NTSTATUS
WINAPI
wow64_NtGdiGetRealizationInfo
(
UINT
*
args
)
{
{
HDC
hdc
=
get_handle
(
&
args
);
HDC
hdc
=
get_handle
(
&
args
);
...
@@ -1433,6 +1479,26 @@ NTSTATUS WINAPI wow64_NtGdiInitSpool( UINT *args )
...
@@ -1433,6 +1479,26 @@ NTSTATUS WINAPI wow64_NtGdiInitSpool( UINT *args )
return
NtGdiInitSpool
();
return
NtGdiInitSpool
();
}
}
NTSTATUS
WINAPI
wow64_NtGdiIntersectClipRect
(
UINT
*
args
)
{
HDC
hdc
=
get_handle
(
&
args
);
INT
left
=
get_ulong
(
&
args
);
INT
top
=
get_ulong
(
&
args
);
INT
right
=
get_ulong
(
&
args
);
INT
bottom
=
get_ulong
(
&
args
);
return
NtGdiIntersectClipRect
(
hdc
,
left
,
top
,
right
,
bottom
);
}
NTSTATUS
WINAPI
wow64_NtGdiOffsetClipRgn
(
UINT
*
args
)
{
HDC
hdc
=
get_handle
(
&
args
);
INT
x
=
get_ulong
(
&
args
);
INT
y
=
get_ulong
(
&
args
);
return
NtGdiOffsetClipRgn
(
hdc
,
x
,
y
);
}
NTSTATUS
WINAPI
wow64_NtGdiOffsetRgn
(
UINT
*
args
)
NTSTATUS
WINAPI
wow64_NtGdiOffsetRgn
(
UINT
*
args
)
{
{
HRGN
hrgn
=
get_handle
(
&
args
);
HRGN
hrgn
=
get_handle
(
&
args
);
...
@@ -1506,6 +1572,15 @@ NTSTATUS WINAPI wow64_NtGdiPtInRegion( UINT *args )
...
@@ -1506,6 +1572,15 @@ NTSTATUS WINAPI wow64_NtGdiPtInRegion( UINT *args )
return
NtGdiPtInRegion
(
hrgn
,
x
,
y
);
return
NtGdiPtInRegion
(
hrgn
,
x
,
y
);
}
}
NTSTATUS
WINAPI
wow64_NtGdiPtVisible
(
UINT
*
args
)
{
HDC
hdc
=
get_handle
(
&
args
);
INT
x
=
get_ulong
(
&
args
);
INT
y
=
get_ulong
(
&
args
);
return
NtGdiPtVisible
(
hdc
,
x
,
y
);
}
NTSTATUS
WINAPI
wow64_NtGdiRectInRegion
(
UINT
*
args
)
NTSTATUS
WINAPI
wow64_NtGdiRectInRegion
(
UINT
*
args
)
{
{
HRGN
hrgn
=
get_handle
(
&
args
);
HRGN
hrgn
=
get_handle
(
&
args
);
...
@@ -1514,6 +1589,14 @@ NTSTATUS WINAPI wow64_NtGdiRectInRegion( UINT *args )
...
@@ -1514,6 +1589,14 @@ NTSTATUS WINAPI wow64_NtGdiRectInRegion( UINT *args )
return
NtGdiRectInRegion
(
hrgn
,
rect
);
return
NtGdiRectInRegion
(
hrgn
,
rect
);
}
}
NTSTATUS
WINAPI
wow64_NtGdiRectVisible
(
UINT
*
args
)
{
HDC
hdc
=
get_handle
(
&
args
);
const
RECT
*
rect
=
get_ptr
(
&
args
);
return
NtGdiRectVisible
(
hdc
,
rect
);
}
NTSTATUS
WINAPI
wow64_NtGdiRemoveFontMemResourceEx
(
UINT
*
args
)
NTSTATUS
WINAPI
wow64_NtGdiRemoveFontMemResourceEx
(
UINT
*
args
)
{
{
HANDLE
handle
=
get_handle
(
&
args
);
HANDLE
handle
=
get_handle
(
&
args
);
...
@@ -1623,6 +1706,15 @@ NTSTATUS WINAPI wow64_NtGdiSetBitmapDimension( UINT *args )
...
@@ -1623,6 +1706,15 @@ NTSTATUS WINAPI wow64_NtGdiSetBitmapDimension( UINT *args )
return
NtGdiSetBitmapDimension
(
hbitmap
,
x
,
y
,
prev_size
);
return
NtGdiSetBitmapDimension
(
hbitmap
,
x
,
y
,
prev_size
);
}
}
NTSTATUS
WINAPI
wow64_NtGdiSetBoundsRect
(
UINT
*
args
)
{
HDC
hdc
=
get_handle
(
&
args
);
const
RECT
*
rect
=
get_ptr
(
&
args
);
UINT
flags
=
get_ulong
(
&
args
);
return
NtGdiSetBoundsRect
(
hdc
,
rect
,
flags
);
}
NTSTATUS
WINAPI
wow64_NtGdiSetBrushOrg
(
UINT
*
args
)
NTSTATUS
WINAPI
wow64_NtGdiSetBrushOrg
(
UINT
*
args
)
{
{
HDC
hdc
=
get_handle
(
&
args
);
HDC
hdc
=
get_handle
(
&
args
);
...
...
dlls/wow64win/syscall.h
View file @
28642d22
...
@@ -75,10 +75,12 @@
...
@@ -75,10 +75,12 @@
SYSCALL_ENTRY( NtGdiEndPath ) \
SYSCALL_ENTRY( NtGdiEndPath ) \
SYSCALL_ENTRY( NtGdiEnumFonts ) \
SYSCALL_ENTRY( NtGdiEnumFonts ) \
SYSCALL_ENTRY( NtGdiEqualRgn ) \
SYSCALL_ENTRY( NtGdiEqualRgn ) \
SYSCALL_ENTRY( NtGdiExcludeClipRect ) \
SYSCALL_ENTRY( NtGdiExtCreatePen ) \
SYSCALL_ENTRY( NtGdiExtCreatePen ) \
SYSCALL_ENTRY( NtGdiExtCreateRegion ) \
SYSCALL_ENTRY( NtGdiExtCreateRegion ) \
SYSCALL_ENTRY( NtGdiExtFloodFill ) \
SYSCALL_ENTRY( NtGdiExtFloodFill ) \
SYSCALL_ENTRY( NtGdiExtGetObjectW ) \
SYSCALL_ENTRY( NtGdiExtGetObjectW ) \
SYSCALL_ENTRY( NtGdiExtSelectClipRgn ) \
SYSCALL_ENTRY( NtGdiExtTextOutW ) \
SYSCALL_ENTRY( NtGdiExtTextOutW ) \
SYSCALL_ENTRY( NtGdiFillPath ) \
SYSCALL_ENTRY( NtGdiFillPath ) \
SYSCALL_ENTRY( NtGdiFillRgn ) \
SYSCALL_ENTRY( NtGdiFillRgn ) \
...
@@ -86,8 +88,10 @@
...
@@ -86,8 +88,10 @@
SYSCALL_ENTRY( NtGdiFlush ) \
SYSCALL_ENTRY( NtGdiFlush ) \
SYSCALL_ENTRY( NtGdiFontIsLinked ) \
SYSCALL_ENTRY( NtGdiFontIsLinked ) \
SYSCALL_ENTRY( NtGdiFrameRgn ) \
SYSCALL_ENTRY( NtGdiFrameRgn ) \
SYSCALL_ENTRY( NtGdiGetAppClipBox ) \
SYSCALL_ENTRY( NtGdiGetBitmapBits ) \
SYSCALL_ENTRY( NtGdiGetBitmapBits ) \
SYSCALL_ENTRY( NtGdiGetBitmapDimension ) \
SYSCALL_ENTRY( NtGdiGetBitmapDimension ) \
SYSCALL_ENTRY( NtGdiGetBoundsRect ) \
SYSCALL_ENTRY( NtGdiGetCharABCWidthsW ) \
SYSCALL_ENTRY( NtGdiGetCharABCWidthsW ) \
SYSCALL_ENTRY( NtGdiGetCharWidthInfo ) \
SYSCALL_ENTRY( NtGdiGetCharWidthInfo ) \
SYSCALL_ENTRY( NtGdiGetCharWidthW ) \
SYSCALL_ENTRY( NtGdiGetCharWidthW ) \
...
@@ -107,6 +111,7 @@
...
@@ -107,6 +111,7 @@
SYSCALL_ENTRY( NtGdiGetOutlineTextMetricsInternalW ) \
SYSCALL_ENTRY( NtGdiGetOutlineTextMetricsInternalW ) \
SYSCALL_ENTRY( NtGdiGetPath ) \
SYSCALL_ENTRY( NtGdiGetPath ) \
SYSCALL_ENTRY( NtGdiGetPixel ) \
SYSCALL_ENTRY( NtGdiGetPixel ) \
SYSCALL_ENTRY( NtGdiGetRandomRgn ) \
SYSCALL_ENTRY( NtGdiGetRealizationInfo ) \
SYSCALL_ENTRY( NtGdiGetRealizationInfo ) \
SYSCALL_ENTRY( NtGdiGetRegionData ) \
SYSCALL_ENTRY( NtGdiGetRegionData ) \
SYSCALL_ENTRY( NtGdiGetRgnBox ) \
SYSCALL_ENTRY( NtGdiGetRgnBox ) \
...
@@ -120,11 +125,13 @@
...
@@ -120,11 +125,13 @@
SYSCALL_ENTRY( NtGdiGradientFill ) \
SYSCALL_ENTRY( NtGdiGradientFill ) \
SYSCALL_ENTRY( NtGdiHfontCreate ) \
SYSCALL_ENTRY( NtGdiHfontCreate ) \
SYSCALL_ENTRY( NtGdiInitSpool ) \
SYSCALL_ENTRY( NtGdiInitSpool ) \
SYSCALL_ENTRY( NtGdiIntersectClipRect ) \
SYSCALL_ENTRY( NtGdiInvertRgn ) \
SYSCALL_ENTRY( NtGdiInvertRgn ) \
SYSCALL_ENTRY( NtGdiLineTo ) \
SYSCALL_ENTRY( NtGdiLineTo ) \
SYSCALL_ENTRY( NtGdiMaskBlt ) \
SYSCALL_ENTRY( NtGdiMaskBlt ) \
SYSCALL_ENTRY( NtGdiModifyWorldTransform ) \
SYSCALL_ENTRY( NtGdiModifyWorldTransform ) \
SYSCALL_ENTRY( NtGdiMoveTo ) \
SYSCALL_ENTRY( NtGdiMoveTo ) \
SYSCALL_ENTRY( NtGdiOffsetClipRgn ) \
SYSCALL_ENTRY( NtGdiOffsetRgn ) \
SYSCALL_ENTRY( NtGdiOffsetRgn ) \
SYSCALL_ENTRY( NtGdiOpenDCW ) \
SYSCALL_ENTRY( NtGdiOpenDCW ) \
SYSCALL_ENTRY( NtGdiPatBlt ) \
SYSCALL_ENTRY( NtGdiPatBlt ) \
...
@@ -133,7 +140,9 @@
...
@@ -133,7 +140,9 @@
SYSCALL_ENTRY( NtGdiPolyDraw ) \
SYSCALL_ENTRY( NtGdiPolyDraw ) \
SYSCALL_ENTRY( NtGdiPolyPolyDraw ) \
SYSCALL_ENTRY( NtGdiPolyPolyDraw ) \
SYSCALL_ENTRY( NtGdiPtInRegion ) \
SYSCALL_ENTRY( NtGdiPtInRegion ) \
SYSCALL_ENTRY( NtGdiPtVisible ) \
SYSCALL_ENTRY( NtGdiRectInRegion ) \
SYSCALL_ENTRY( NtGdiRectInRegion ) \
SYSCALL_ENTRY( NtGdiRectVisible ) \
SYSCALL_ENTRY( NtGdiRectangle ) \
SYSCALL_ENTRY( NtGdiRectangle ) \
SYSCALL_ENTRY( NtGdiRemoveFontMemResourceEx ) \
SYSCALL_ENTRY( NtGdiRemoveFontMemResourceEx ) \
SYSCALL_ENTRY( NtGdiRemoveFontResourceW ) \
SYSCALL_ENTRY( NtGdiRemoveFontResourceW ) \
...
@@ -150,6 +159,7 @@
...
@@ -150,6 +159,7 @@
SYSCALL_ENTRY( NtGdiSelectPen ) \
SYSCALL_ENTRY( NtGdiSelectPen ) \
SYSCALL_ENTRY( NtGdiSetBitmapBits ) \
SYSCALL_ENTRY( NtGdiSetBitmapBits ) \
SYSCALL_ENTRY( NtGdiSetBitmapDimension ) \
SYSCALL_ENTRY( NtGdiSetBitmapDimension ) \
SYSCALL_ENTRY( NtGdiSetBoundsRect ) \
SYSCALL_ENTRY( NtGdiSetBrushOrg ) \
SYSCALL_ENTRY( NtGdiSetBrushOrg ) \
SYSCALL_ENTRY( NtGdiSetColorAdjustment ) \
SYSCALL_ENTRY( NtGdiSetColorAdjustment ) \
SYSCALL_ENTRY( NtGdiSetDIBitsToDeviceInternal ) \
SYSCALL_ENTRY( NtGdiSetDIBitsToDeviceInternal ) \
...
...
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