winex11.drv: Remove unused variables.

This commit is contained in:
Andrew Talbot 2008-05-02 12:50:13 +01:00 committed by Alexandre Julliard
parent 80157c2fa6
commit 5156219a1c
8 changed files with 4 additions and 25 deletions

View File

@ -2899,7 +2899,6 @@ static void X11DRV_DIB_SetImageBits_32(int lines, const BYTE *srcbits,
DWORD linebytes) DWORD linebytes)
{ {
DWORD x; DWORD x;
const DWORD *ptr;
int h, width = min(srcwidth, dstwidth); int h, width = min(srcwidth, dstwidth);
const dib_conversions *convs = (bmpImage->byte_order == LSBFirst) ? &dib_normal : &dib_dst_byteswap; 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; linebytes = -linebytes;
} }
ptr = (const DWORD *) srcbits + left;
switch (bmpImage->depth) switch (bmpImage->depth)
{ {
case 24: case 24:

View File

@ -1369,9 +1369,7 @@ static void convert_0888_to_888_asis_dst_byteswap(int width, int height,
const DWORD* srcpixel; const DWORD* srcpixel;
DWORD* dstpixel; DWORD* dstpixel;
int x,y; int x,y;
int oddwidth;
oddwidth=width & 3;
width=width/4; width=width/4;
for (y=0; y<height; y++) { for (y=0; y<height; y++) {
srcpixel=srcbits; srcpixel=srcbits;
@ -1423,9 +1421,7 @@ static void convert_0888_to_888_reverse_dst_byteswap(int width, int height,
const DWORD* srcpixel; const DWORD* srcpixel;
DWORD* dstpixel; DWORD* dstpixel;
int x,y; int x,y;
int oddwidth;
oddwidth=width & 3;
width=width/4; width=width/4;
for (y=0; y<height; y++) { for (y=0; y<height; y++) {
srcpixel=srcbits; srcpixel=srcbits;

View File

@ -1012,7 +1012,6 @@ static void EVENT_DropFromOffiX( HWND hWnd, XClientMessageEvent *event )
int x, y, dummy; int x, y, dummy;
BOOL bAccept; BOOL bAccept;
Window win, w_aux_root, w_aux_child; Window win, w_aux_root, w_aux_child;
HWND hScope = hWnd;
win = X11DRV_get_whole_window(hWnd); win = X11DRV_get_whole_window(hWnd);
wine_tsx11_lock(); wine_tsx11_lock();
@ -1041,7 +1040,6 @@ static void EVENT_DropFromOffiX( HWND hWnd, XClientMessageEvent *event )
{ {
x = pt.x; x = pt.x;
y = pt.y; y = pt.y;
hScope = hwndDrop;
bAccept = TRUE; bAccept = TRUE;
} }
else else

View File

@ -406,7 +406,7 @@ static XcursorImage *create_cursor_image( CURSORICONINFO *ptr )
{ {
int x, xmax; int x, xmax;
int y, ymax; int y, ymax;
int and_size, xor_size; int and_size;
unsigned char *and_bits, *and_ptr, *xor_bits, *xor_ptr; unsigned char *and_bits, *and_ptr, *xor_bits, *xor_ptr;
int and_width_bytes, xor_width_bytes; int and_width_bytes, xor_width_bytes;
XcursorPixel *pixel_ptr; XcursorPixel *pixel_ptr;
@ -422,7 +422,6 @@ static XcursorImage *create_cursor_image( CURSORICONINFO *ptr )
and_size = ptr->nWidth * ptr->nHeight / 8; and_size = ptr->nWidth * ptr->nHeight / 8;
and_ptr = and_bits = (unsigned char *)(ptr + 1); and_ptr = and_bits = (unsigned char *)(ptr + 1);
xor_size = xor_width_bytes * ptr->nHeight;
xor_ptr = xor_bits = and_ptr + and_size; xor_ptr = xor_bits = and_ptr + and_size;
image = pXcursorImageCreate( xmax, ymax ); image = pXcursorImageCreate( xmax, ymax );
@ -664,7 +663,7 @@ static Cursor create_cursor( Display *display, CURSORICONINFO *ptr )
int rbits, gbits, bbits, red, green, blue; int rbits, gbits, bbits, red, green, blue;
int rfg, gfg, bfg, rbg, gbg, bbg; int rfg, gfg, bfg, rbg, gbg, bbg;
int rscale, gscale, bscale; int rscale, gscale, bscale;
int x, y, xmax, ymax, bitIndex, byteIndex, xorIndex; int x, y, xmax, ymax, byteIndex, xorIndex;
unsigned char *theMask, *theImage, theChar; unsigned char *theMask, *theImage, theChar;
int threshold, fgBits, bgBits, bitShifted; int threshold, fgBits, bgBits, bitShifted;
BYTE pXorBits[128]; /* Up to 32x32 icons */ 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]; theImage = &theMask[ptr->nWidth/8 * ptr->nHeight];
rfg = gfg = bfg = rbg = gbg = bbg = 0; rfg = gfg = bfg = rbg = gbg = bbg = 0;
bitIndex = 0;
byteIndex = 0; byteIndex = 0;
xorIndex = 0; xorIndex = 0;
fgBits = 0; fgBits = 0;

View File

@ -1047,7 +1047,6 @@ int X11DRV_ChoosePixelFormat(X11DRV_PDEVICE *physDev,
int bestDepth = -1; int bestDepth = -1;
int bestStencil = -1; int bestStencil = -1;
int bestAux = -1; int bestAux = -1;
int score;
if (!has_opengl()) { if (!has_opengl()) {
ERR("No libGL on this box - disabling OpenGL support !\n"); 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; int alpha=0, color=0, depth=0, stencil=0, aux=0;
fmt = ConvertPixelFormatWGLtoGLX(gdi_display, i+1 /* 1-based index */, FALSE /* offscreen */, &value); fmt = ConvertPixelFormatWGLtoGLX(gdi_display, i+1 /* 1-based index */, FALSE /* offscreen */, &value);
score = 0;
/* Pixel type */ /* Pixel type */
pglXGetFBConfigAttrib(gdi_display, fmt->fbconfig, GLX_RENDER_TYPE, &value); pglXGetFBConfigAttrib(gdi_display, fmt->fbconfig, GLX_RENDER_TYPE, &value);

View File

@ -419,12 +419,11 @@ BOOL wine_notify_icon( DWORD msg, NOTIFYICONDATAW *data )
{ {
BOOL ret = FALSE; BOOL ret = FALSE;
struct tray_icon *icon; struct tray_icon *icon;
Window owner;
switch (msg) switch (msg)
{ {
case NIM_ADD: 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; break;
case NIM_DELETE: case NIM_DELETE:
if ((icon = get_icon( data->hWnd, data->uID ))) ret = delete_icon( icon ); if ((icon = get_icon( data->hWnd, data->uID ))) ret = delete_icon( icon );

View File

@ -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 ) static struct x11drv_win_data *create_desktop_win_data( Display *display, HWND hwnd )
{ {
struct x11drv_win_data *data; struct x11drv_win_data *data;
VisualID visualid;
if (!(data = alloc_win_data( display, hwnd ))) return NULL; 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->whole_window = data->client_window = root_window;
data->managed = TRUE; data->managed = TRUE;
SetPropA( data->hwnd, managed_prop, (HANDLE)1 ); 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; Display *display = thread_data->display;
struct x11drv_win_data *data = X11DRV_get_win_data( hwnd ); struct x11drv_win_data *data = X11DRV_get_win_data( hwnd );
DWORD new_style = GetWindowLongW( hwnd, GWL_STYLE ); DWORD new_style = GetWindowLongW( hwnd, GWL_STYLE );
RECT old_window_rect, old_whole_rect, old_client_rect; RECT old_whole_rect, old_client_rect;
int event_type; int event_type;
if (!data) if (!data)
@ -1945,7 +1941,6 @@ void X11DRV_SetWindowPos( HWND hwnd, HWND insert_after, UINT swp_flags,
SetPropA( hwnd, managed_prop, (HANDLE)1 ); SetPropA( hwnd, managed_prop, (HANDLE)1 );
} }
old_window_rect = data->window_rect;
old_whole_rect = data->whole_rect; old_whole_rect = data->whole_rect;
old_client_rect = data->client_rect; old_client_rect = data->client_rect;
data->window_rect = *rectWindow; data->window_rect = *rectWindow;

View File

@ -1366,7 +1366,6 @@ static void XFONT_WindowsNames(void)
for( fr = fontList; fr ; fr = fr->next ) for( fr = fontList; fr ; fr = fr->next )
{ {
fontResource* pfr; fontResource* pfr;
char* lpch;
if( fr->fr_flags & FR_NAMESET ) continue; /* skip already assigned */ if( fr->fr_flags & FR_NAMESET ) continue; /* skip already assigned */
@ -1377,7 +1376,6 @@ static void XFONT_WindowsNames(void)
break; break;
} }
lpch = fr->lfFaceName;
snprintf( fr->lfFaceName, sizeof(fr->lfFaceName), "%s %s", snprintf( fr->lfFaceName, sizeof(fr->lfFaceName), "%s %s",
/* prepend vendor name */ /* prepend vendor name */
(pfr==fr) ? "" : fr->resource->foundry, (pfr==fr) ? "" : fr->resource->foundry,