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
b44bdfd2
Commit
b44bdfd2
authored
Feb 01, 2011
by
Henri Verbeet
Committed by
Alexandre Julliard
Feb 02, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11.drv: Only query for XShm on first use.
parent
82a4373c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
2 deletions
+19
-2
dib.c
dlls/winex11.drv/dib.c
+19
-2
No files found.
dlls/winex11.drv/dib.c
View file @
b44bdfd2
...
...
@@ -4728,6 +4728,24 @@ static XImage *X11DRV_XShmCreateImage( int width, int height, int bpp,
}
#endif
/* HAVE_LIBXXSHM */
static
Bool
X11DRV_DIB_QueryXShm
(
Bool
*
pixmaps
)
{
static
Bool
have_xshm
,
have_xshm_pixmaps
;
static
BOOL
initialized
;
if
(
!
initialized
)
{
#ifdef HAVE_LIBXXSHM
int
major
,
minor
;
have_xshm
=
XShmQueryVersion
(
gdi_display
,
&
major
,
&
minor
,
&
have_xshm_pixmaps
);
#endif
initialized
=
TRUE
;
}
*
pixmaps
=
have_xshm_pixmaps
;
return
have_xshm
;
}
/***********************************************************************
* X11DRV_CreateDIBSection (X11DRV.@)
...
...
@@ -4740,7 +4758,6 @@ HBITMAP CDECL X11DRV_CreateDIBSection( X11DRV_PDEVICE *physDev, HBITMAP hbitmap,
WORD
bpp
,
compr
;
LONG
w
,
h
;
#ifdef HAVE_LIBXXSHM
int
major
,
minor
;
Bool
pixmaps
;
#endif
...
...
@@ -4780,7 +4797,7 @@ HBITMAP CDECL X11DRV_CreateDIBSection( X11DRV_PDEVICE *physDev, HBITMAP hbitmap,
#ifdef HAVE_LIBXXSHM
physBitmap
->
shminfo
.
shmid
=
-
1
;
if
(
X
ShmQueryVersion
(
gdi_display
,
&
major
,
&
minor
,
&
pixmaps
)
if
(
X
11DRV_DIB_QueryXShm
(
&
pixmaps
)
&&
(
physBitmap
->
image
=
X11DRV_XShmCreateImage
(
dib
.
dsBm
.
bmWidth
,
dib
.
dsBm
.
bmHeight
,
physBitmap
->
pixmap_depth
,
&
physBitmap
->
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