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
68feed7e
Commit
68feed7e
authored
Feb 02, 2008
by
Andrew Talbot
Committed by
Alexandre Julliard
Feb 04, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11.drv: Remove unneeded casts.
parent
f44d2edd
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
33 additions
and
35 deletions
+33
-35
bitblt.c
dlls/winex11.drv/bitblt.c
+5
-5
clipboard.c
dlls/winex11.drv/clipboard.c
+6
-8
dib.c
dlls/winex11.drv/dib.c
+1
-1
event.c
dlls/winex11.drv/event.c
+2
-2
opengl.c
dlls/winex11.drv/opengl.c
+18
-18
wintab.c
dlls/winex11.drv/wintab.c
+1
-1
No files found.
dlls/winex11.drv/bitblt.c
View file @
68feed7e
...
...
@@ -681,8 +681,8 @@ static void BITBLT_StretchImage( XImage *srcImage, XImage *dstImage,
register
INT
x
,
y
;
BOOL
hstretch
,
vstretch
,
hswap
,
vswap
;
hswap
=
((
int
)
widthSrc
*
widthDst
)
<
0
;
vswap
=
((
int
)
heightSrc
*
heightDst
)
<
0
;
hswap
=
widthSrc
*
widthDst
<
0
;
vswap
=
heightSrc
*
heightDst
<
0
;
widthSrc
=
abs
(
widthSrc
);
heightSrc
=
abs
(
heightSrc
);
widthDst
=
abs
(
widthDst
);
...
...
@@ -708,7 +708,7 @@ static void BITBLT_StretchImage( XImage *srcImage, XImage *dstImage,
if
(
hstretch
)
{
xinc
=
(
(
int
)
widthSrc
<<
16
)
/
widthDst
;
xinc
=
(
widthSrc
<<
16
)
/
widthDst
;
xoff
=
((
widthSrc
<<
16
)
-
(
xinc
*
widthDst
))
/
2
;
}
else
...
...
@@ -720,7 +720,7 @@ static void BITBLT_StretchImage( XImage *srcImage, XImage *dstImage,
wine_tsx11_lock
();
if
(
vstretch
)
{
yinc
=
(
(
int
)
heightSrc
<<
16
)
/
heightDst
;
yinc
=
(
heightSrc
<<
16
)
/
heightDst
;
ydst
=
visRectDst
->
top
;
if
(
vswap
)
{
...
...
@@ -778,7 +778,7 @@ static void BITBLT_StretchImage( XImage *srcImage, XImage *dstImage,
}
else
/* Shrinking */
{
yinc
=
(
(
int
)
heightDst
<<
16
)
/
heightSrc
;
yinc
=
(
heightDst
<<
16
)
/
heightSrc
;
ysrc
=
visRectSrc
->
top
;
ydst
=
((
heightDst
<<
16
)
-
(
yinc
*
heightSrc
))
/
2
;
if
(
vswap
)
...
...
dlls/winex11.drv/clipboard.c
View file @
68feed7e
...
...
@@ -1648,7 +1648,7 @@ HANDLE X11DRV_CLIPBOARD_ExportXAPIXMAP(Window requestor, Atom aTarget, Atom rpro
memcpy
(
lpData
,
&
lpdata
->
drvData
,
*
lpBytes
);
GlobalUnlock
(
hData
);
return
(
HANDLE
)
hData
;
return
hData
;
}
...
...
@@ -1666,8 +1666,7 @@ HANDLE X11DRV_CLIPBOARD_ExportMetaFilePict(Window requestor, Atom aTarget, Atom
return
0
;
}
return
X11DRV_CLIPBOARD_SerializeMetafile
(
CF_METAFILEPICT
,
(
HANDLE
)
lpdata
->
hData32
,
lpBytes
,
TRUE
);
return
X11DRV_CLIPBOARD_SerializeMetafile
(
CF_METAFILEPICT
,
lpdata
->
hData32
,
lpBytes
,
TRUE
);
}
...
...
@@ -1685,8 +1684,7 @@ HANDLE X11DRV_CLIPBOARD_ExportEnhMetaFile(Window requestor, Atom aTarget, Atom r
return
0
;
}
return
X11DRV_CLIPBOARD_SerializeMetafile
(
CF_ENHMETAFILE
,
(
HANDLE
)
lpdata
->
hData32
,
lpBytes
,
TRUE
);
return
X11DRV_CLIPBOARD_SerializeMetafile
(
CF_ENHMETAFILE
,
lpdata
->
hData32
,
lpBytes
,
TRUE
);
}
...
...
@@ -2136,7 +2134,7 @@ static HANDLE X11DRV_CLIPBOARD_SerializeMetafile(INT wformat, HANDLE hdata, LPDW
unsigned
int
wiresize
,
size
;
LPMETAFILEPICT
lpmfp
=
(
LPMETAFILEPICT
)
GlobalLock
(
h
);
memcpy
(
lpmfp
,
(
LPVOID
)
hdata
,
sizeof
(
METAFILEPICT
));
memcpy
(
lpmfp
,
hdata
,
sizeof
(
METAFILEPICT
));
wiresize
=
*
lpcbytes
-
sizeof
(
METAFILEPICT
);
lpmfp
->
hMF
=
SetMetaFileBitsEx
(
wiresize
,
((
const
BYTE
*
)
hdata
)
+
sizeof
(
METAFILEPICT
));
...
...
@@ -2146,7 +2144,7 @@ static HANDLE X11DRV_CLIPBOARD_SerializeMetafile(INT wformat, HANDLE hdata, LPDW
}
else
if
(
wformat
==
CF_ENHMETAFILE
)
{
h
=
SetEnhMetaFileBits
(
*
lpcbytes
,
(
LPVOID
)
hdata
);
h
=
SetEnhMetaFileBits
(
*
lpcbytes
,
hdata
);
}
}
...
...
@@ -2990,7 +2988,7 @@ static void X11DRV_HandleSelectionRequest( HWND hWnd, XSelectionRequestEvent *ev
wine_tsx11_lock
();
XChangeProperty
(
display
,
request
,
rprop
,
event
->
target
,
8
,
PropModeReplace
,
(
unsigned
char
*
)
lpClipData
,
cBytes
);
8
,
PropModeReplace
,
lpClipData
,
cBytes
);
wine_tsx11_unlock
();
GlobalUnlock
(
hClipData
);
...
...
dlls/winex11.drv/dib.c
View file @
68feed7e
...
...
@@ -2643,7 +2643,7 @@ static void X11DRV_DIB_SetImageBits_24( int lines, const BYTE *srcbits,
/* Windows only supports one 24bpp DIB format: RGB888 */
srcbits
+=
left
*
3
;
for
(
h
=
lines
-
1
;
h
>=
0
;
h
--
)
{
srcbyte
=
(
const
BYTE
*
)
srcbits
;
srcbyte
=
srcbits
;
for
(
x
=
left
;
x
<
width
+
left
;
x
++
)
{
XPutPixel
(
bmpImage
,
x
,
h
,
X11DRV_PALETTE_ToPhysical
...
...
dlls/winex11.drv/event.c
View file @
68feed7e
...
...
@@ -834,8 +834,8 @@ static void EVENT_DropURLs( HWND hWnd, XClientMessageEvent *event )
if
(
lpDrop
)
{
WND
*
pDropWnd
=
WIN_GetPtr
(
hWnd
);
lpDrop
->
pFiles
=
sizeof
(
DROPFILES
);
lpDrop
->
pt
.
x
=
(
INT
)
x
;
lpDrop
->
pt
.
y
=
(
INT
)
y
;
lpDrop
->
pt
.
x
=
x
;
lpDrop
->
pt
.
y
=
y
;
lpDrop
->
fNC
=
(
x
<
(
pDropWnd
->
rectClient
.
left
-
pDropWnd
->
rectWindow
.
left
)
||
y
<
(
pDropWnd
->
rectClient
.
top
-
pDropWnd
->
rectWindow
.
top
)
||
...
...
dlls/winex11.drv/opengl.c
View file @
68feed7e
...
...
@@ -476,14 +476,14 @@ LOAD_FUNCPTR(glXFreeMemoryNV)
*/
if
(
glxRequireVersion
(
3
))
{
pglXChooseFBConfig
=
(
void
*
)
pglXGetProcAddressARB
((
const
GLubyte
*
)
"glXChooseFBConfig"
);
pglXGetFBConfigAttrib
=
(
void
*
)
pglXGetProcAddressARB
((
const
GLubyte
*
)
"glXGetFBConfigAttrib"
);
pglXGetVisualFromFBConfig
=
(
void
*
)
pglXGetProcAddressARB
((
const
GLubyte
*
)
"glXGetVisualFromFBConfig"
);
pglXQueryDrawable
=
(
void
*
)
pglXGetProcAddressARB
((
const
GLubyte
*
)
"glXQueryDrawable"
);
pglXChooseFBConfig
=
pglXGetProcAddressARB
((
const
GLubyte
*
)
"glXChooseFBConfig"
);
pglXGetFBConfigAttrib
=
pglXGetProcAddressARB
((
const
GLubyte
*
)
"glXGetFBConfigAttrib"
);
pglXGetVisualFromFBConfig
=
pglXGetProcAddressARB
((
const
GLubyte
*
)
"glXGetVisualFromFBConfig"
);
pglXQueryDrawable
=
pglXGetProcAddressARB
((
const
GLubyte
*
)
"glXQueryDrawable"
);
}
else
if
(
glxRequireExtension
(
"GLX_SGIX_fbconfig"
))
{
pglXChooseFBConfig
=
(
void
*
)
pglXGetProcAddressARB
((
const
GLubyte
*
)
"glXChooseFBConfigSGIX"
);
pglXGetFBConfigAttrib
=
(
void
*
)
pglXGetProcAddressARB
((
const
GLubyte
*
)
"glXGetFBConfigAttribSGIX"
);
pglXGetVisualFromFBConfig
=
(
void
*
)
pglXGetProcAddressARB
((
const
GLubyte
*
)
"glXGetVisualFromFBConfigSGIX"
);
pglXChooseFBConfig
=
pglXGetProcAddressARB
((
const
GLubyte
*
)
"glXChooseFBConfigSGIX"
);
pglXGetFBConfigAttrib
=
pglXGetProcAddressARB
((
const
GLubyte
*
)
"glXGetFBConfigAttribSGIX"
);
pglXGetVisualFromFBConfig
=
pglXGetProcAddressARB
((
const
GLubyte
*
)
"glXGetVisualFromFBConfigSGIX"
);
/* The mesa libGL client library seems to forward glXQueryDrawable to the Xserver, so only
* enable this function when the Xserver understand GLX 1.3 or newer
...
...
@@ -491,10 +491,10 @@ LOAD_FUNCPTR(glXFreeMemoryNV)
pglXQueryDrawable
=
NULL
;
}
else
if
(
strcmp
(
"ATI"
,
WineGLInfo
.
glxClientVendor
)
==
0
)
{
TRACE
(
"Overriding ATI GLX capabilities!
\n
"
);
pglXChooseFBConfig
=
(
void
*
)
pglXGetProcAddressARB
((
const
GLubyte
*
)
"glXChooseFBConfig"
);
pglXGetFBConfigAttrib
=
(
void
*
)
pglXGetProcAddressARB
((
const
GLubyte
*
)
"glXGetFBConfigAttrib"
);
pglXGetVisualFromFBConfig
=
(
void
*
)
pglXGetProcAddressARB
((
const
GLubyte
*
)
"glXGetVisualFromFBConfig"
);
pglXQueryDrawable
=
(
void
*
)
pglXGetProcAddressARB
((
const
GLubyte
*
)
"glXQueryDrawable"
);
pglXChooseFBConfig
=
pglXGetProcAddressARB
((
const
GLubyte
*
)
"glXChooseFBConfig"
);
pglXGetFBConfigAttrib
=
pglXGetProcAddressARB
((
const
GLubyte
*
)
"glXGetFBConfigAttrib"
);
pglXGetVisualFromFBConfig
=
pglXGetProcAddressARB
((
const
GLubyte
*
)
"glXGetVisualFromFBConfig"
);
pglXQueryDrawable
=
pglXGetProcAddressARB
((
const
GLubyte
*
)
"glXQueryDrawable"
);
/* Use client GLX information in case of the ATI drivers. We override the
* capabilities over here and not somewhere else as ATI might better their
...
...
@@ -507,13 +507,13 @@ LOAD_FUNCPTR(glXFreeMemoryNV)
if
(
glxRequireExtension
(
"GLX_ATI_render_texture"
))
{
use_render_texture_ati
=
1
;
pglXBindTexImageATI
=
(
void
*
)
pglXGetProcAddressARB
((
const
GLubyte
*
)
"glXBindTexImageATI"
);
pglXReleaseTexImageATI
=
(
void
*
)
pglXGetProcAddressARB
((
const
GLubyte
*
)
"glXReleaseTexImageATI"
);
pglXDrawableAttribATI
=
(
void
*
)
pglXGetProcAddressARB
((
const
GLubyte
*
)
"glXDrawableAttribATI"
);
pglXBindTexImageATI
=
pglXGetProcAddressARB
((
const
GLubyte
*
)
"glXBindTexImageATI"
);
pglXReleaseTexImageATI
=
pglXGetProcAddressARB
((
const
GLubyte
*
)
"glXReleaseTexImageATI"
);
pglXDrawableAttribATI
=
pglXGetProcAddressARB
((
const
GLubyte
*
)
"glXDrawableAttribATI"
);
}
if
(
glxRequireExtension
(
"GLX_MESA_copy_sub_buffer"
))
{
pglXCopySubBufferMESA
=
(
void
*
)
pglXGetProcAddressARB
((
const
GLubyte
*
)
"glXCopySubBufferMESA"
);
pglXCopySubBufferMESA
=
pglXGetProcAddressARB
((
const
GLubyte
*
)
"glXCopySubBufferMESA"
);
}
X11DRV_WineGL_LoadExtensions
();
...
...
@@ -1047,7 +1047,7 @@ int X11DRV_ChoosePixelFormat(X11DRV_PDEVICE *physDev,
if
(
TRACE_ON
(
opengl
))
{
TRACE
(
"(%p,%p)
\n
"
,
physDev
,
ppfd
);
dump_PIXELFORMATDESCRIPTOR
(
(
const
PIXELFORMATDESCRIPTOR
*
)
ppfd
);
dump_PIXELFORMATDESCRIPTOR
(
ppfd
);
}
wine_tsx11_lock
();
...
...
@@ -1919,7 +1919,7 @@ static BOOL internal_wglUseFontBitmaps(HDC hdc, DWORD first, DWORD count, DWORD
pglNewList
(
listBase
++
,
GL_COMPILE
);
if
(
needed_size
!=
0
)
{
pglBitmap
(
gm
.
gmBlackBoxX
,
gm
.
gmBlackBoxY
,
0
-
(
int
)
gm
.
gmptGlyphOrigin
.
x
,
(
int
)
gm
.
gmBlackBoxY
-
(
int
)
gm
.
gmptGlyphOrigin
.
y
,
0
-
gm
.
gmptGlyphOrigin
.
x
,
(
int
)
gm
.
gmBlackBoxY
-
gm
.
gmptGlyphOrigin
.
y
,
gm
.
gmCellIncX
,
gm
.
gmCellIncY
,
gl_bitmap
);
}
else
{
...
...
@@ -2320,7 +2320,7 @@ static HPBUFFERARB WINAPI X11DRV_wglCreatePbufferARB(HDC hdc, int iPixelFormat,
create_failed
:
HeapFree
(
GetProcessHeap
(),
0
,
object
);
TRACE
(
"->(FAILED)
\n
"
);
return
(
HPBUFFERARB
)
NULL
;
return
NULL
;
}
/**
...
...
dlls/winex11.drv/wintab.c
View file @
68feed7e
...
...
@@ -602,7 +602,7 @@ void X11DRV_LoadTabletInfo(HWND hwnddefault)
cursor
->
TYPE
=
CSR_TYPE_ERASER
;
any
=
(
XAnyClassPtr
)
(
target
->
inputclassinfo
)
;
any
=
target
->
inputclassinfo
;
for
(
class_loop
=
0
;
class_loop
<
target
->
num_classes
;
class_loop
++
)
{
...
...
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