Fixed a number of -DSTRICT warnings.
This commit is contained in:
parent
5ad69f19bf
commit
9376fb30c5
|
@ -947,8 +947,7 @@ void X11DRV_AcquireClipboard(void)
|
|||
if ( !(selectionAcquired == (S_PRIMARY | S_CLIPBOARD)) )
|
||||
{
|
||||
Atom xaClipboard = TSXInternAtom(display, _CLIPBOARD, False);
|
||||
owner = X11DRV_get_whole_window( GetAncestor( hWndClipWindow ? hWndClipWindow : AnyPopup(),
|
||||
GA_ROOT ) );
|
||||
owner = X11DRV_get_whole_window( GetAncestor( hWndClipWindow, GA_ROOT ) );
|
||||
|
||||
/* Grab PRIMARY selection if not owned */
|
||||
if ( !(selectionAcquired & S_PRIMARY) )
|
||||
|
|
|
@ -1045,7 +1045,7 @@ Window X11DRV_get_client_window( HWND hwnd )
|
|||
WND *win = WIN_GetPtr( hwnd );
|
||||
|
||||
if (win == WND_OTHER_PROCESS)
|
||||
return GetPropA( hwnd, client_window_atom );
|
||||
return (Window)GetPropA( hwnd, client_window_atom );
|
||||
|
||||
if (win)
|
||||
{
|
||||
|
@ -1068,7 +1068,7 @@ Window X11DRV_get_whole_window( HWND hwnd )
|
|||
WND *win = WIN_GetPtr( hwnd );
|
||||
|
||||
if (win == WND_OTHER_PROCESS)
|
||||
return GetPropA( hwnd, whole_window_atom );
|
||||
return (Window)GetPropA( hwnd, whole_window_atom );
|
||||
|
||||
if (win)
|
||||
{
|
||||
|
|
|
@ -31,6 +31,7 @@
|
|||
#include "wingdi.h"
|
||||
#include "winuser.h"
|
||||
#include "winerror.h"
|
||||
#include "wownt32.h"
|
||||
|
||||
#include "x11drv.h"
|
||||
#include "win.h"
|
||||
|
@ -506,7 +507,7 @@ BOOL X11DRV_GetDC( HWND hwnd, HDC hdc, HRGN hrgn, DWORD flags )
|
|||
X11DRV_SetDrawable( hdc, drawable, mode, &org, &drawable_org );
|
||||
|
||||
if (flags & (DCX_EXCLUDERGN | DCX_INTERSECTRGN) ||
|
||||
SetHookFlags16( hdc, DCHF_VALIDATEVISRGN )) /* DC was dirty */
|
||||
SetHookFlags16( HDC_16(hdc), DCHF_VALIDATEVISRGN )) /* DC was dirty */
|
||||
{
|
||||
/* need to recompute the visible region */
|
||||
HRGN visRgn;
|
||||
|
@ -521,7 +522,7 @@ BOOL X11DRV_GetDC( HWND hwnd, HDC hdc, HRGN hrgn, DWORD flags )
|
|||
}
|
||||
else visRgn = CreateRectRgn( 0, 0, 0, 0 );
|
||||
|
||||
SelectVisRgn16( hdc, visRgn );
|
||||
SelectVisRgn16( HDC_16(hdc), HRGN_16(visRgn) );
|
||||
DeleteObject( visRgn );
|
||||
}
|
||||
|
||||
|
|
|
@ -125,7 +125,7 @@ static DWORD PASCAL X11DRV_DDHAL_CreateSurface(LPDDHAL_CREATESURFACEDATA data)
|
|||
X11DRV_DD_Primary = *data->lplpSList;
|
||||
X11DRV_DD_PrimaryWnd = (HWND)X11DRV_DD_Primary->lpSurfMore->lpDDRAWReserved;
|
||||
X11DRV_DD_PrimaryGbl = X11DRV_DD_Primary->lpGbl;
|
||||
SetPrimaryDIB(GET_LPDDRAWSURFACE_GBL_MORE(X11DRV_DD_PrimaryGbl)->hKernelSurface);
|
||||
SetPrimaryDIB((HBITMAP)GET_LPDDRAWSURFACE_GBL_MORE(X11DRV_DD_PrimaryGbl)->hKernelSurface);
|
||||
X11DRV_DD_UserClass = GlobalFindAtomA("WINE_DDRAW");
|
||||
if (dxgrab) GrabPointer(TRUE);
|
||||
}
|
||||
|
|
|
@ -25,6 +25,7 @@
|
|||
#include <stdlib.h>
|
||||
|
||||
#include "winnt.h"
|
||||
#include "wownt32.h"
|
||||
#include "x11drv.h"
|
||||
#include "bitmap.h"
|
||||
#include "wine/unicode.h"
|
||||
|
@ -742,8 +743,8 @@ BOOL X11DRV_XRender_ExtTextOut( X11DRV_PDEVICE *physDev, INT x, INT y, UINT flag
|
|||
|
||||
if (flags & ETO_CLIPPED)
|
||||
{
|
||||
SaveVisRgn16( hdc );
|
||||
IntersectVisRect16( dc->hSelf, lprect->left, lprect->top, lprect->right, lprect->bottom );
|
||||
SaveVisRgn16( HDC_16(hdc) );
|
||||
IntersectVisRect16( HDC_16(dc->hSelf), lprect->left, lprect->top, lprect->right, lprect->bottom );
|
||||
}
|
||||
|
||||
if(!physDev->xrender->pict) {
|
||||
|
@ -881,7 +882,7 @@ BOOL X11DRV_XRender_ExtTextOut( X11DRV_PDEVICE *physDev, INT x, INT y, UINT flag
|
|||
wine_tsx11_unlock();
|
||||
|
||||
if (flags & ETO_CLIPPED)
|
||||
RestoreVisRgn16( hdc );
|
||||
RestoreVisRgn16( HDC_16(hdc) );
|
||||
|
||||
retv = TRUE;
|
||||
|
||||
|
|
|
@ -226,7 +226,7 @@ static BOOL BRUSH_SelectPatternBrush( X11DRV_PDEVICE *physDev, HBITMAP hbitmap )
|
|||
HBRUSH X11DRV_SelectBrush( X11DRV_PDEVICE *physDev, HBRUSH hbrush )
|
||||
{
|
||||
LOGBRUSH logbrush;
|
||||
HBITMAP16 hBitmap;
|
||||
HBITMAP hBitmap;
|
||||
BITMAPINFO * bmpInfo;
|
||||
|
||||
if (!GetObjectA( hbrush, sizeof(logbrush), &logbrush )) return 0;
|
||||
|
|
|
@ -29,6 +29,7 @@
|
|||
|
||||
#include "windef.h"
|
||||
#include "winnls.h"
|
||||
#include "wownt32.h"
|
||||
#include "gdi.h"
|
||||
#include "x11font.h"
|
||||
#include "bitmap.h"
|
||||
|
@ -217,8 +218,8 @@ X11DRV_ExtTextOut( X11DRV_PDEVICE *physDev, INT x, INT y, UINT flags,
|
|||
|
||||
if (flags & ETO_CLIPPED)
|
||||
{
|
||||
SaveVisRgn16( dc->hSelf );
|
||||
IntersectVisRect16( dc->hSelf, lprect->left, lprect->top, lprect->right, lprect->bottom );
|
||||
SaveVisRgn16( HDC_16(dc->hSelf) );
|
||||
IntersectVisRect16( HDC_16(dc->hSelf), lprect->left, lprect->top, lprect->right, lprect->bottom );
|
||||
}
|
||||
|
||||
/* Draw the text background if necessary */
|
||||
|
@ -404,7 +405,7 @@ X11DRV_ExtTextOut( X11DRV_PDEVICE *physDev, INT x, INT y, UINT flags,
|
|||
physDev->org.x + x + width, physDev->org.y + y - lineAscent );
|
||||
}
|
||||
|
||||
if (flags & ETO_CLIPPED) RestoreVisRgn16( dc->hSelf );
|
||||
if (flags & ETO_CLIPPED) RestoreVisRgn16( HDC_16(dc->hSelf) );
|
||||
goto END;
|
||||
|
||||
FAIL:
|
||||
|
|
|
@ -3259,7 +3259,7 @@ HFONT X11DRV_SelectFont( X11DRV_PDEVICE *physDev, HFONT hfont )
|
|||
|
||||
TRACE("dc=%p, hfont=%04x\n", dc, hfont);
|
||||
|
||||
if (!GetObjectW( hfont, sizeof(logfont), &logfont )) return GDI_ERROR;
|
||||
if (!GetObjectW( hfont, sizeof(logfont), &logfont )) return HGDI_ERROR;
|
||||
|
||||
TRACE("dc->gdiFont = %p\n", dc->gdiFont);
|
||||
|
||||
|
@ -3334,7 +3334,7 @@ HFONT X11DRV_SelectFont( X11DRV_PDEVICE *physDev, HFONT hfont )
|
|||
|
||||
LeaveCriticalSection( &crtsc_fonts_X11 );
|
||||
|
||||
return TRUE; /* Use a device font */
|
||||
return (HFONT)1; /* Use a device font */
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue