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
8d7b7d83
Commit
8d7b7d83
authored
Jun 25, 2001
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Jun 25, 2001
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Better separate the XShm using code.
parent
a556f688
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
dib.c
graphics/x11drv/dib.c
+5
-2
No files found.
graphics/x11drv/dib.c
View file @
8d7b7d83
...
...
@@ -34,7 +34,9 @@ DECLARE_DEBUG_CHANNEL(x11drv);
static
int
ximageDepthTable
[
32
];
#ifdef HAVE_LIBXXSHM
static
int
XShmErrorFlag
=
0
;
#endif
/* This structure holds the arguments for DIB_SetImageBits() */
typedef
struct
...
...
@@ -2776,6 +2778,7 @@ static int X11DRV_DIB_SetImageBits( const X11DRV_DIB_IMAGEBITS_DESCR *descr )
descr
->
drawable
,
descr
->
gc
,
bmpImage
,
descr
->
xSrc
,
descr
->
ySrc
,
descr
->
xDest
,
descr
->
yDest
,
descr
->
width
,
descr
->
height
);
#ifdef HAVE_LIBXXSHM
if
(
descr
->
useShm
)
{
XShmPutImage
(
gdi_display
,
descr
->
drawable
,
descr
->
gc
,
bmpImage
,
...
...
@@ -2784,6 +2787,7 @@ static int X11DRV_DIB_SetImageBits( const X11DRV_DIB_IMAGEBITS_DESCR *descr )
XSync
(
gdi_display
,
0
);
}
else
#endif
XPutImage
(
gdi_display
,
descr
->
drawable
,
descr
->
gc
,
bmpImage
,
descr
->
xSrc
,
descr
->
ySrc
,
descr
->
xDest
,
descr
->
yDest
,
descr
->
width
,
descr
->
height
);
...
...
@@ -3769,6 +3773,7 @@ HBITMAP16 X11DRV_DIB_CreateDIBSection16(
return
res
;
}
#ifdef HAVE_LIBXXSHM
/***********************************************************************
* X11DRV_XShmErrorHandler
*
...
...
@@ -3783,8 +3788,6 @@ static int XShmErrorHandler(Display *dpy, XErrorEvent *event)
* X11DRV_XShmCreateImage
*
*/
#ifdef HAVE_LIBXXSHM
static
XImage
*
X11DRV_XShmCreateImage
(
int
width
,
int
height
,
int
bpp
,
XShmSegmentInfo
*
shminfo
)
{
...
...
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