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
9376fb30
Commit
9376fb30
authored
Oct 31, 2002
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed a number of -DSTRICT warnings.
parent
5ad69f19
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
18 additions
and
16 deletions
+18
-16
clipboard.c
dlls/x11drv/clipboard.c
+1
-2
window.c
dlls/x11drv/window.c
+2
-2
winpos.c
dlls/x11drv/winpos.c
+3
-2
x11ddraw.c
dlls/x11drv/x11ddraw.c
+1
-1
xrender.c
dlls/x11drv/xrender.c
+4
-3
brush.c
graphics/x11drv/brush.c
+1
-1
text.c
graphics/x11drv/text.c
+4
-3
xfont.c
graphics/x11drv/xfont.c
+2
-2
No files found.
dlls/x11drv/clipboard.c
View file @
9376fb30
...
...
@@ -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
)
)
...
...
dlls/x11drv/window.c
View file @
9376fb30
...
...
@@ -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
)
{
...
...
dlls/x11drv/winpos.c
View file @
9376fb30
...
...
@@ -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
);
}
...
...
dlls/x11drv/x11ddraw.c
View file @
9376fb30
...
...
@@ -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
);
}
...
...
dlls/x11drv/xrender.c
View file @
9376fb30
...
...
@@ -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
;
...
...
graphics/x11drv/brush.c
View file @
9376fb30
...
...
@@ -226,7 +226,7 @@ static BOOL BRUSH_SelectPatternBrush( X11DRV_PDEVICE *physDev, HBITMAP hbitmap )
HBRUSH
X11DRV_SelectBrush
(
X11DRV_PDEVICE
*
physDev
,
HBRUSH
hbrush
)
{
LOGBRUSH
logbrush
;
HBITMAP
16
hBitmap
;
HBITMAP
hBitmap
;
BITMAPINFO
*
bmpInfo
;
if
(
!
GetObjectA
(
hbrush
,
sizeof
(
logbrush
),
&
logbrush
))
return
0
;
...
...
graphics/x11drv/text.c
View file @
9376fb30
...
...
@@ -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:
...
...
graphics/x11drv/xfont.c
View file @
9376fb30
...
...
@@ -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
H
GDI_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 */
}
...
...
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