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
470acf83
Commit
470acf83
authored
Nov 26, 2000
by
Dimitrie O. Paun
Committed by
Alexandre Julliard
Nov 26, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Do not compile code that makes use of the X Shm extension.
parent
dfd3d4ad
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
2 deletions
+16
-2
dib.c
graphics/x11drv/dib.c
+14
-2
x11drv.h
include/x11drv.h
+2
-0
No files found.
graphics/x11drv/dib.c
View file @
470acf83
...
...
@@ -3079,10 +3079,11 @@ INT X11DRV_DIB_GetDIBits(
{
descr
.
ySrc
=
startscan
;
}
#ifdef HAVE_LIBXXSHM
if
(
dib
)
descr
.
useShm
=
(
dib
->
shminfo
.
shmid
!=
-
1
);
else
#endif
descr
.
useShm
=
FALSE
;
EnterCriticalSection
(
&
X11DRV_CritSection
);
...
...
@@ -3176,7 +3177,11 @@ static void X11DRV_DIB_DoUpdateDIBSection(BITMAPOBJ *bmp, BOOL toDIB)
descr
.
yDest
=
0
;
descr
.
width
=
bmp
->
bitmap
.
bmWidth
;
descr
.
height
=
bmp
->
bitmap
.
bmHeight
;
#ifdef HAVE_LIBXXSHM
descr
.
useShm
=
(
dib
->
shminfo
.
shmid
!=
-
1
);
#else
descr
.
useShm
=
FALSE
;
#endif
if
(
toDIB
)
{
...
...
@@ -3388,6 +3393,7 @@ static int XShmErrorHandler(Display *dpy, XErrorEvent *event)
*
*/
#ifdef HAVE_LIBXXSHM
extern
BOOL
X11DRV_XShmCreateImage
(
XImage
**
image
,
int
width
,
int
height
,
int
bpp
,
XShmSegmentInfo
*
shminfo
)
{
...
...
@@ -3435,7 +3441,7 @@ extern BOOL X11DRV_XShmCreateImage(XImage** image, int width, int height, int bp
}
return
FALSE
;
}
#endif
/* HAVE_LIBXXSHM */
...
...
@@ -3557,6 +3563,7 @@ HBITMAP X11DRV_DIB_CreateDIBSection(
/* Create XImage */
if
(
dib
&&
bmp
)
{
#ifdef HAVE_LIBXXSHM
if
(
TSXShmQueryExtension
(
display
)
&&
X11DRV_XShmCreateImage
(
&
dib
->
image
,
bm
.
bmWidth
,
effHeight
,
bmp
->
bitmap
.
bmBitsPixel
,
&
dib
->
shminfo
)
)
...
...
@@ -3566,6 +3573,9 @@ HBITMAP X11DRV_DIB_CreateDIBSection(
XCREATEIMAGE
(
dib
->
image
,
bm
.
bmWidth
,
effHeight
,
bmp
->
bitmap
.
bmBitsPixel
);
dib
->
shminfo
.
shmid
=
-
1
;
}
#else
XCREATEIMAGE
(
dib
->
image
,
bm
.
bmWidth
,
effHeight
,
bmp
->
bitmap
.
bmBitsPixel
);
#endif
}
/* Clean up in case of errors */
...
...
@@ -3621,6 +3631,7 @@ void X11DRV_DIB_DeleteDIBSection(BITMAPOBJ *bmp)
if
(
dib
->
image
)
{
#ifdef HAVE_LIBXXSHM
if
(
dib
->
shminfo
.
shmid
!=
-
1
)
{
TSXShmDetach
(
display
,
&
(
dib
->
shminfo
));
...
...
@@ -3629,6 +3640,7 @@ void X11DRV_DIB_DeleteDIBSection(BITMAPOBJ *bmp)
dib
->
shminfo
.
shmid
=
-
1
;
}
else
#endif
XDestroyImage
(
dib
->
image
);
}
...
...
include/x11drv.h
View file @
470acf83
...
...
@@ -226,8 +226,10 @@ typedef struct
/* Selector for 16-bit access to bits */
WORD
selector
;
#ifdef HAVE_LIBXXSHM
/* Shared memory segment info */
XShmSegmentInfo
shminfo
;
#endif
}
X11DRV_DIBSECTION
;
...
...
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