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
5156219a
Commit
5156219a
authored
May 02, 2008
by
Andrew Talbot
Committed by
Alexandre Julliard
May 02, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11.drv: Remove unused variables.
parent
80157c2f
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
4 additions
and
25 deletions
+4
-25
dib.c
dlls/winex11.drv/dib.c
+0
-3
dib_dst_swap.c
dlls/winex11.drv/dib_dst_swap.c
+0
-4
event.c
dlls/winex11.drv/event.c
+0
-2
mouse.c
dlls/winex11.drv/mouse.c
+2
-4
opengl.c
dlls/winex11.drv/opengl.c
+0
-2
systray.c
dlls/winex11.drv/systray.c
+1
-2
window.c
dlls/winex11.drv/window.c
+1
-6
xfont.c
dlls/winex11.drv/xfont.c
+0
-2
No files found.
dlls/winex11.drv/dib.c
View file @
5156219a
...
...
@@ -2899,7 +2899,6 @@ static void X11DRV_DIB_SetImageBits_32(int lines, const BYTE *srcbits,
DWORD
linebytes
)
{
DWORD
x
;
const
DWORD
*
ptr
;
int
h
,
width
=
min
(
srcwidth
,
dstwidth
);
const
dib_conversions
*
convs
=
(
bmpImage
->
byte_order
==
LSBFirst
)
?
&
dib_normal
:
&
dib_dst_byteswap
;
...
...
@@ -2910,8 +2909,6 @@ static void X11DRV_DIB_SetImageBits_32(int lines, const BYTE *srcbits,
linebytes
=
-
linebytes
;
}
ptr
=
(
const
DWORD
*
)
srcbits
+
left
;
switch
(
bmpImage
->
depth
)
{
case
24
:
...
...
dlls/winex11.drv/dib_dst_swap.c
View file @
5156219a
...
...
@@ -1369,9 +1369,7 @@ static void convert_0888_to_888_asis_dst_byteswap(int width, int height,
const
DWORD
*
srcpixel
;
DWORD
*
dstpixel
;
int
x
,
y
;
int
oddwidth
;
oddwidth
=
width
&
3
;
width
=
width
/
4
;
for
(
y
=
0
;
y
<
height
;
y
++
)
{
srcpixel
=
srcbits
;
...
...
@@ -1423,9 +1421,7 @@ static void convert_0888_to_888_reverse_dst_byteswap(int width, int height,
const
DWORD
*
srcpixel
;
DWORD
*
dstpixel
;
int
x
,
y
;
int
oddwidth
;
oddwidth
=
width
&
3
;
width
=
width
/
4
;
for
(
y
=
0
;
y
<
height
;
y
++
)
{
srcpixel
=
srcbits
;
...
...
dlls/winex11.drv/event.c
View file @
5156219a
...
...
@@ -1012,7 +1012,6 @@ static void EVENT_DropFromOffiX( HWND hWnd, XClientMessageEvent *event )
int
x
,
y
,
dummy
;
BOOL
bAccept
;
Window
win
,
w_aux_root
,
w_aux_child
;
HWND
hScope
=
hWnd
;
win
=
X11DRV_get_whole_window
(
hWnd
);
wine_tsx11_lock
();
...
...
@@ -1041,7 +1040,6 @@ static void EVENT_DropFromOffiX( HWND hWnd, XClientMessageEvent *event )
{
x
=
pt
.
x
;
y
=
pt
.
y
;
hScope
=
hwndDrop
;
bAccept
=
TRUE
;
}
else
...
...
dlls/winex11.drv/mouse.c
View file @
5156219a
...
...
@@ -406,7 +406,7 @@ static XcursorImage *create_cursor_image( CURSORICONINFO *ptr )
{
int
x
,
xmax
;
int
y
,
ymax
;
int
and_size
,
xor_size
;
int
and_size
;
unsigned
char
*
and_bits
,
*
and_ptr
,
*
xor_bits
,
*
xor_ptr
;
int
and_width_bytes
,
xor_width_bytes
;
XcursorPixel
*
pixel_ptr
;
...
...
@@ -422,7 +422,6 @@ static XcursorImage *create_cursor_image( CURSORICONINFO *ptr )
and_size
=
ptr
->
nWidth
*
ptr
->
nHeight
/
8
;
and_ptr
=
and_bits
=
(
unsigned
char
*
)(
ptr
+
1
);
xor_size
=
xor_width_bytes
*
ptr
->
nHeight
;
xor_ptr
=
xor_bits
=
and_ptr
+
and_size
;
image
=
pXcursorImageCreate
(
xmax
,
ymax
);
...
...
@@ -664,7 +663,7 @@ static Cursor create_cursor( Display *display, CURSORICONINFO *ptr )
int
rbits
,
gbits
,
bbits
,
red
,
green
,
blue
;
int
rfg
,
gfg
,
bfg
,
rbg
,
gbg
,
bbg
;
int
rscale
,
gscale
,
bscale
;
int
x
,
y
,
xmax
,
ymax
,
b
itIndex
,
b
yteIndex
,
xorIndex
;
int
x
,
y
,
xmax
,
ymax
,
byteIndex
,
xorIndex
;
unsigned
char
*
theMask
,
*
theImage
,
theChar
;
int
threshold
,
fgBits
,
bgBits
,
bitShifted
;
BYTE
pXorBits
[
128
];
/* Up to 32x32 icons */
...
...
@@ -703,7 +702,6 @@ static Cursor create_cursor( Display *display, CURSORICONINFO *ptr )
*/
theImage
=
&
theMask
[
ptr
->
nWidth
/
8
*
ptr
->
nHeight
];
rfg
=
gfg
=
bfg
=
rbg
=
gbg
=
bbg
=
0
;
bitIndex
=
0
;
byteIndex
=
0
;
xorIndex
=
0
;
fgBits
=
0
;
...
...
dlls/winex11.drv/opengl.c
View file @
5156219a
...
...
@@ -1047,7 +1047,6 @@ int X11DRV_ChoosePixelFormat(X11DRV_PDEVICE *physDev,
int
bestDepth
=
-
1
;
int
bestStencil
=
-
1
;
int
bestAux
=
-
1
;
int
score
;
if
(
!
has_opengl
())
{
ERR
(
"No libGL on this box - disabling OpenGL support !
\n
"
);
...
...
@@ -1069,7 +1068,6 @@ int X11DRV_ChoosePixelFormat(X11DRV_PDEVICE *physDev,
int
alpha
=
0
,
color
=
0
,
depth
=
0
,
stencil
=
0
,
aux
=
0
;
fmt
=
ConvertPixelFormatWGLtoGLX
(
gdi_display
,
i
+
1
/* 1-based index */
,
FALSE
/* offscreen */
,
&
value
);
score
=
0
;
/* Pixel type */
pglXGetFBConfigAttrib
(
gdi_display
,
fmt
->
fbconfig
,
GLX_RENDER_TYPE
,
&
value
);
...
...
dlls/winex11.drv/systray.c
View file @
5156219a
...
...
@@ -419,12 +419,11 @@ BOOL wine_notify_icon( DWORD msg, NOTIFYICONDATAW *data )
{
BOOL
ret
=
FALSE
;
struct
tray_icon
*
icon
;
Window
owner
;
switch
(
msg
)
{
case
NIM_ADD
:
if
(
(
owner
=
get_systray_selection_owner
(
thread_display
()
)
))
ret
=
add_icon
(
data
);
if
(
get_systray_selection_owner
(
thread_display
()
))
ret
=
add_icon
(
data
);
break
;
case
NIM_DELETE
:
if
((
icon
=
get_icon
(
data
->
hWnd
,
data
->
uID
)))
ret
=
delete_icon
(
icon
);
...
...
dlls/winex11.drv/window.c
View file @
5156219a
...
...
@@ -1564,12 +1564,8 @@ static struct x11drv_win_data *alloc_win_data( Display *display, HWND hwnd )
static
struct
x11drv_win_data
*
create_desktop_win_data
(
Display
*
display
,
HWND
hwnd
)
{
struct
x11drv_win_data
*
data
;
VisualID
visualid
;
if
(
!
(
data
=
alloc_win_data
(
display
,
hwnd
)))
return
NULL
;
wine_tsx11_lock
();
visualid
=
XVisualIDFromVisual
(
visual
);
wine_tsx11_unlock
();
data
->
whole_window
=
data
->
client_window
=
root_window
;
data
->
managed
=
TRUE
;
SetPropA
(
data
->
hwnd
,
managed_prop
,
(
HANDLE
)
1
);
...
...
@@ -1926,7 +1922,7 @@ void X11DRV_SetWindowPos( HWND hwnd, HWND insert_after, UINT swp_flags,
Display
*
display
=
thread_data
->
display
;
struct
x11drv_win_data
*
data
=
X11DRV_get_win_data
(
hwnd
);
DWORD
new_style
=
GetWindowLongW
(
hwnd
,
GWL_STYLE
);
RECT
old_w
indow_rect
,
old_w
hole_rect
,
old_client_rect
;
RECT
old_whole_rect
,
old_client_rect
;
int
event_type
;
if
(
!
data
)
...
...
@@ -1945,7 +1941,6 @@ void X11DRV_SetWindowPos( HWND hwnd, HWND insert_after, UINT swp_flags,
SetPropA
(
hwnd
,
managed_prop
,
(
HANDLE
)
1
);
}
old_window_rect
=
data
->
window_rect
;
old_whole_rect
=
data
->
whole_rect
;
old_client_rect
=
data
->
client_rect
;
data
->
window_rect
=
*
rectWindow
;
...
...
dlls/winex11.drv/xfont.c
View file @
5156219a
...
...
@@ -1366,7 +1366,6 @@ static void XFONT_WindowsNames(void)
for
(
fr
=
fontList
;
fr
;
fr
=
fr
->
next
)
{
fontResource
*
pfr
;
char
*
lpch
;
if
(
fr
->
fr_flags
&
FR_NAMESET
)
continue
;
/* skip already assigned */
...
...
@@ -1377,7 +1376,6 @@ static void XFONT_WindowsNames(void)
break
;
}
lpch
=
fr
->
lfFaceName
;
snprintf
(
fr
->
lfFaceName
,
sizeof
(
fr
->
lfFaceName
),
"%s %s"
,
/* prepend vendor name */
(
pfr
==
fr
)
?
""
:
fr
->
resource
->
foundry
,
...
...
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