Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
d534a6e1
Commit
d534a6e1
authored
Jul 01, 2016
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Jul 04, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
include: Add inline variants of InflateRect and OffsetRect too.
Signed-off-by:
Michael Stefaniuc
<
mstefani@redhat.de
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
a9a6948b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
2 deletions
+22
-2
winuser.h
include/winuser.h
+22
-2
No files found.
include/winuser.h
View file @
d534a6e1
...
@@ -3734,7 +3734,6 @@ WINUSERAPI BOOL WINAPI GrayStringW(HDC,HBRUSH,GRAYSTRINGPROC,LPARAM,INT,I
...
@@ -3734,7 +3734,6 @@ WINUSERAPI BOOL WINAPI GrayStringW(HDC,HBRUSH,GRAYSTRINGPROC,LPARAM,INT,I
#define GrayString WINELIB_NAME_AW(GrayString)
#define GrayString WINELIB_NAME_AW(GrayString)
WINUSERAPI
BOOL
WINAPI
HideCaret
(
HWND
);
WINUSERAPI
BOOL
WINAPI
HideCaret
(
HWND
);
WINUSERAPI
BOOL
WINAPI
HiliteMenuItem
(
HWND
,
HMENU
,
UINT
,
UINT
);
WINUSERAPI
BOOL
WINAPI
HiliteMenuItem
(
HWND
,
HMENU
,
UINT
,
UINT
);
WINUSERAPI
BOOL
WINAPI
InflateRect
(
LPRECT
,
INT
,
INT
);
WINUSERAPI
BOOL
WINAPI
InSendMessage
(
void
);
WINUSERAPI
BOOL
WINAPI
InSendMessage
(
void
);
WINUSERAPI
DWORD
WINAPI
InSendMessageEx
(
LPVOID
);
WINUSERAPI
DWORD
WINAPI
InSendMessageEx
(
LPVOID
);
WINUSERAPI
BOOL
WINAPI
InsertMenuA
(
HMENU
,
UINT
,
UINT
,
UINT_PTR
,
LPCSTR
);
WINUSERAPI
BOOL
WINAPI
InsertMenuA
(
HMENU
,
UINT
,
UINT
,
UINT_PTR
,
LPCSTR
);
...
@@ -3849,7 +3848,6 @@ WINUSERAPI BOOL WINAPI OemToCharW(LPCSTR,LPWSTR);
...
@@ -3849,7 +3848,6 @@ WINUSERAPI BOOL WINAPI OemToCharW(LPCSTR,LPWSTR);
WINUSERAPI
BOOL
WINAPI
OemToCharBuffA
(
LPCSTR
,
LPSTR
,
DWORD
);
WINUSERAPI
BOOL
WINAPI
OemToCharBuffA
(
LPCSTR
,
LPSTR
,
DWORD
);
WINUSERAPI
BOOL
WINAPI
OemToCharBuffW
(
LPCSTR
,
LPWSTR
,
DWORD
);
WINUSERAPI
BOOL
WINAPI
OemToCharBuffW
(
LPCSTR
,
LPWSTR
,
DWORD
);
#define OemToCharBuff WINELIB_NAME_AW(OemToCharBuff)
#define OemToCharBuff WINELIB_NAME_AW(OemToCharBuff)
WINUSERAPI
BOOL
WINAPI
OffsetRect
(
LPRECT
,
INT
,
INT
);
WINUSERAPI
BOOL
WINAPI
OpenClipboard
(
HWND
);
WINUSERAPI
BOOL
WINAPI
OpenClipboard
(
HWND
);
WINUSERAPI
HDESK
WINAPI
OpenDesktopA
(
LPCSTR
,
DWORD
,
BOOL
,
ACCESS_MASK
);
WINUSERAPI
HDESK
WINAPI
OpenDesktopA
(
LPCSTR
,
DWORD
,
BOOL
,
ACCESS_MASK
);
WINUSERAPI
HDESK
WINAPI
OpenDesktopW
(
LPCWSTR
,
DWORD
,
BOOL
,
ACCESS_MASK
);
WINUSERAPI
HDESK
WINAPI
OpenDesktopW
(
LPCWSTR
,
DWORD
,
BOOL
,
ACCESS_MASK
);
...
@@ -4091,7 +4089,9 @@ WINUSERAPI INT WINAPI wvsprintfW(LPWSTR,LPCWSTR,__ms_va_list);
...
@@ -4091,7 +4089,9 @@ WINUSERAPI INT WINAPI wvsprintfW(LPWSTR,LPCWSTR,__ms_va_list);
#if !defined(__WINESRC__) || defined(WINE_NO_INLINE_RECT)
#if !defined(__WINESRC__) || defined(WINE_NO_INLINE_RECT)
WINUSERAPI
BOOL
WINAPI
EqualRect
(
const
RECT
*
,
const
RECT
*
);
WINUSERAPI
BOOL
WINAPI
EqualRect
(
const
RECT
*
,
const
RECT
*
);
WINUSERAPI
BOOL
WINAPI
InflateRect
(
LPRECT
,
INT
,
INT
);
WINUSERAPI
BOOL
WINAPI
IsRectEmpty
(
const
RECT
*
);
WINUSERAPI
BOOL
WINAPI
IsRectEmpty
(
const
RECT
*
);
WINUSERAPI
BOOL
WINAPI
OffsetRect
(
LPRECT
,
INT
,
INT
);
WINUSERAPI
BOOL
WINAPI
SetRect
(
LPRECT
,
INT
,
INT
,
INT
,
INT
);
WINUSERAPI
BOOL
WINAPI
SetRect
(
LPRECT
,
INT
,
INT
,
INT
,
INT
);
WINUSERAPI
BOOL
WINAPI
SetRectEmpty
(
LPRECT
);
WINUSERAPI
BOOL
WINAPI
SetRectEmpty
(
LPRECT
);
...
@@ -4106,12 +4106,32 @@ static inline BOOL WINAPI EqualRect(const RECT *rect1, const RECT *rect2)
...
@@ -4106,12 +4106,32 @@ static inline BOOL WINAPI EqualRect(const RECT *rect1, const RECT *rect2)
(
rect1
->
top
==
rect2
->
top
)
&&
(
rect1
->
bottom
==
rect2
->
bottom
));
(
rect1
->
top
==
rect2
->
top
)
&&
(
rect1
->
bottom
==
rect2
->
bottom
));
}
}
static
inline
BOOL
WINAPI
InflateRect
(
LPRECT
rect
,
INT
x
,
INT
y
)
{
if
(
!
rect
)
return
FALSE
;
rect
->
left
-=
x
;
rect
->
top
-=
y
;
rect
->
right
+=
x
;
rect
->
bottom
+=
y
;
return
TRUE
;
}
static
inline
BOOL
WINAPI
IsRectEmpty
(
const
RECT
*
rect
)
static
inline
BOOL
WINAPI
IsRectEmpty
(
const
RECT
*
rect
)
{
{
if
(
!
rect
)
return
TRUE
;
if
(
!
rect
)
return
TRUE
;
return
((
rect
->
left
>=
rect
->
right
)
||
(
rect
->
top
>=
rect
->
bottom
));
return
((
rect
->
left
>=
rect
->
right
)
||
(
rect
->
top
>=
rect
->
bottom
));
}
}
static
inline
BOOL
WINAPI
OffsetRect
(
LPRECT
rect
,
INT
x
,
INT
y
)
{
if
(
!
rect
)
return
FALSE
;
rect
->
left
+=
x
;
rect
->
right
+=
x
;
rect
->
top
+=
y
;
rect
->
bottom
+=
y
;
return
TRUE
;
}
static
inline
BOOL
WINAPI
SetRect
(
LPRECT
rect
,
INT
left
,
INT
top
,
INT
right
,
INT
bottom
)
static
inline
BOOL
WINAPI
SetRect
(
LPRECT
rect
,
INT
left
,
INT
top
,
INT
right
,
INT
bottom
)
{
{
if
(
!
rect
)
return
FALSE
;
if
(
!
rect
)
return
FALSE
;
...
...
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