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
7d614be4
Commit
7d614be4
authored
Nov 18, 2022
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11: Use int instead of long types in a few places.
parent
1a5bfe13
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
19 additions
and
20 deletions
+19
-20
display.c
dlls/winex11.drv/display.c
+1
-1
event.c
dlls/winex11.drv/event.c
+3
-3
graphics.c
dlls/winex11.drv/graphics.c
+1
-1
keyboard.c
dlls/winex11.drv/keyboard.c
+2
-2
pen.c
dlls/winex11.drv/pen.c
+2
-2
window.c
dlls/winex11.drv/window.c
+4
-4
x11drv.h
dlls/winex11.drv/x11drv.h
+1
-1
xim.c
dlls/winex11.drv/xim.c
+5
-6
No files found.
dlls/winex11.drv/display.c
View file @
7d614be4
...
...
@@ -163,7 +163,7 @@ void init_registry_display_settings(void)
DISPLAY_DEVICEW
dd
=
{
sizeof
(
dd
)};
UNICODE_STRING
device_name
;
DWORD
i
=
0
;
LONG
ret
;
int
ret
;
while
(
!
NtUserEnumDisplayDevices
(
NULL
,
i
++
,
&
dd
,
0
))
{
...
...
dlls/winex11.drv/event.c
View file @
7d614be4
...
...
@@ -1268,7 +1268,7 @@ static int get_window_wm_state( Display *display, Window window )
static
void
handle_wm_state_notify
(
HWND
hwnd
,
XPropertyEvent
*
event
,
BOOL
update_window
)
{
struct
x11drv_win_data
*
data
=
get_win_data
(
hwnd
);
DWORD
style
;
UINT
style
;
if
(
!
data
)
return
;
...
...
@@ -1781,7 +1781,7 @@ static DWORD xdnd_action_to_drop_effect( long action )
}
static
long
drop_effect_to_xdnd_action
(
DWORD
effect
)
static
long
drop_effect_to_xdnd_action
(
UINT
effect
)
{
if
(
effect
==
DROPEFFECT_COPY
)
return
x11drv_atom
(
XdndActionCopy
);
...
...
@@ -1801,7 +1801,7 @@ static void handle_xdnd_position_event( HWND hwnd, XClientMessageEvent *event )
{
struct
dnd_position_event_params
params
;
XClientMessageEvent
e
;
DWORD
effect
;
UINT
effect
;
params
.
hwnd
=
HandleToUlong
(
hwnd
);
params
.
point
=
root_to_virtual_screen
(
event
->
data
.
l
[
2
]
>>
16
,
event
->
data
.
l
[
2
]
&
0xFFFF
);
...
...
dlls/winex11.drv/graphics.c
View file @
7d614be4
...
...
@@ -1704,7 +1704,7 @@ BOOL CDECL X11DRV_GetICMProfile( PHYSDEV dev, BOOL allow_default, LPDWORD size,
IO_STATUS_BLOCK
io
;
UINT64
hash
=
0
;
HANDLE
file
;
NTSTATUS
status
;
int
status
;
for
(
i
=
0
;
i
<
buflen
;
i
++
)
hash
=
(
hash
<<
16
)
-
hash
+
buffer
[
i
];
for
(
i
=
0
;
i
<
sizeof
(
hash
)
*
2
;
i
++
)
...
...
dlls/winex11.drv/keyboard.c
View file @
7d614be4
...
...
@@ -1132,7 +1132,7 @@ static WORD EVENT_event_to_vkey( XIC xic, XKeyEvent *e)
/***********************************************************************
* X11DRV_send_keyboard_input
*/
static
void
X11DRV_send_keyboard_input
(
HWND
hwnd
,
WORD
vkey
,
WORD
scan
,
DWORD
flags
,
DWORD
time
)
static
void
X11DRV_send_keyboard_input
(
HWND
hwnd
,
WORD
vkey
,
WORD
scan
,
UINT
flags
,
UINT
time
)
{
INPUT
input
;
...
...
@@ -1275,7 +1275,7 @@ static void adjust_lock_state( BYTE *keystate, HWND hwnd, WORD vkey, WORD scan,
}
}
static
void
update_lock_state
(
HWND
hwnd
,
WORD
vkey
,
UINT
state
,
DWORD
time
)
static
void
update_lock_state
(
HWND
hwnd
,
WORD
vkey
,
UINT
state
,
UINT
time
)
{
BYTE
keystate
[
256
];
...
...
dlls/winex11.drv/pen.c
View file @
7d614be4
...
...
@@ -51,7 +51,7 @@ static DWORD get_user_dashes( char *res, const DWORD *style, DWORD len )
}
else
dashes
[
pos
++
]
=
dashes
[
i
];
}
for
(
i
=
0
;
i
<
pos
;
i
++
)
res
[
i
]
=
min
(
dashes
[
i
],
255
);
for
(
i
=
0
;
i
<
pos
;
i
++
)
res
[
i
]
=
(
char
)
min
(
dashes
[
i
],
255
);
return
pos
;
}
...
...
@@ -147,7 +147,7 @@ HPEN CDECL X11DRV_SelectPen( PHYSDEV dev, HPEN hpen, const struct brush_pattern
(
logpen
.
lopnStyle
&
PS_STYLE_MASK
)
!=
PS_USERSTYLE
&&
(
logpen
.
lopnStyle
&
PS_STYLE_MASK
)
!=
PS_ALTERNATE
)
for
(
i
=
0
;
i
<
physDev
->
pen
.
dash_len
;
i
++
)
physDev
->
pen
.
dashes
[
i
]
=
min
(
physDev
->
pen
.
dashes
[
i
]
*
physDev
->
pen
.
width
,
255
);
physDev
->
pen
.
dashes
[
i
]
=
(
char
)
min
(
physDev
->
pen
.
dashes
[
i
]
*
physDev
->
pen
.
width
,
255
);
free
(
elp
);
...
...
dlls/winex11.drv/window.c
View file @
7d614be4
...
...
@@ -737,7 +737,7 @@ static void set_size_hints( struct x11drv_win_data *data, DWORD style )
/***********************************************************************
* set_mwm_hints
*/
static
void
set_mwm_hints
(
struct
x11drv_win_data
*
data
,
DWORD
style
,
DWORD
ex_style
)
static
void
set_mwm_hints
(
struct
x11drv_win_data
*
data
,
UINT
style
,
UINT
ex_style
)
{
MwmHints
mwm_hints
;
...
...
@@ -1015,7 +1015,7 @@ static void update_net_wm_fullscreen_monitors( struct x11drv_win_data *data )
*/
void
update_net_wm_states
(
struct
x11drv_win_data
*
data
)
{
DWORD
i
,
style
,
ex_style
,
new_state
=
0
;
UINT
i
,
style
,
ex_style
,
new_state
=
0
;
if
(
!
data
->
managed
)
return
;
if
(
data
->
whole_window
==
root_window
)
return
;
...
...
@@ -2053,7 +2053,7 @@ HWND create_foreign_window( Display *display, Window xwin )
Window
*
xchildren
;
unsigned
int
nchildren
;
XWindowAttributes
attr
;
DWORD
style
=
WS_CLIPCHILDREN
;
UINT
style
=
WS_CLIPCHILDREN
;
UNICODE_STRING
class_name
;
if
(
!
class_registered
)
...
...
@@ -2592,7 +2592,7 @@ void X11DRV_WindowPosChanged( HWND hwnd, HWND insert_after, UINT swp_flags,
{
struct
x11drv_thread_data
*
thread_data
;
struct
x11drv_win_data
*
data
;
DWORD
new_style
=
NtUserGetWindowLongW
(
hwnd
,
GWL_STYLE
);
UINT
new_style
=
NtUserGetWindowLongW
(
hwnd
,
GWL_STYLE
);
RECT
old_window_rect
,
old_whole_rect
,
old_client_rect
;
int
event_type
;
...
...
dlls/winex11.drv/x11drv.h
View file @
7d614be4
...
...
@@ -823,7 +823,7 @@ extern struct x11drv_display_device_handler desktop_handler DECLSPEC_HIDDEN;
extern
BOOL
X11DRV_InitXIM
(
const
WCHAR
*
input_style
)
DECLSPEC_HIDDEN
;
extern
XIC
X11DRV_CreateIC
(
XIM
xim
,
struct
x11drv_win_data
*
data
)
DECLSPEC_HIDDEN
;
extern
void
X11DRV_SetupXIM
(
void
)
DECLSPEC_HIDDEN
;
extern
void
X11DRV_XIMLookupChars
(
const
char
*
str
,
DWORD
count
)
DECLSPEC_HIDDEN
;
extern
void
X11DRV_XIMLookupChars
(
const
char
*
str
,
UINT
count
)
DECLSPEC_HIDDEN
;
#define XEMBED_MAPPED (1 << 0)
...
...
dlls/winex11.drv/xim.c
View file @
7d614be4
...
...
@@ -61,17 +61,16 @@ static XIMStyle ximStyle = 0;
static
XIMStyle
ximStyleRoot
=
0
;
static
XIMStyle
ximStyleRequest
=
STYLE_CALLBACK
;
static
void
X11DRV_ImmSetInternalString
(
DWORD
dwOffset
,
DWORD
selLength
,
LPWSTR
lpComp
,
DWORD
dwCompLen
)
static
void
X11DRV_ImmSetInternalString
(
UINT
offset
,
UINT
selLength
,
LPWSTR
lpComp
,
UINT
len
)
{
/* Composition strings are edited in chunks */
unsigned
int
byte_length
=
dwCompL
en
*
sizeof
(
WCHAR
);
unsigned
int
byte_offset
=
dwO
ffset
*
sizeof
(
WCHAR
);
unsigned
int
byte_length
=
l
en
*
sizeof
(
WCHAR
);
unsigned
int
byte_offset
=
o
ffset
*
sizeof
(
WCHAR
);
unsigned
int
byte_selection
=
selLength
*
sizeof
(
WCHAR
);
int
byte_expansion
=
byte_length
-
byte_selection
;
LPBYTE
ptr_new
;
TRACE
(
"( %i, %i, %p, %d):
\n
"
,
dwOffset
,
selLength
,
lpComp
,
dwCompL
en
);
TRACE
(
"( %i, %i, %p, %d):
\n
"
,
offset
,
selLength
,
lpComp
,
l
en
);
if
(
byte_expansion
+
dwCompStringLength
>=
dwCompStringSize
)
{
...
...
@@ -96,7 +95,7 @@ static void X11DRV_ImmSetInternalString(DWORD dwOffset,
CompositionString
,
dwCompStringLength
);
}
void
X11DRV_XIMLookupChars
(
const
char
*
str
,
DWORD
count
)
void
X11DRV_XIMLookupChars
(
const
char
*
str
,
UINT
count
)
{
WCHAR
*
output
;
DWORD
len
;
...
...
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