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
bcc65899
Commit
bcc65899
authored
Jan 06, 2012
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11: Remove DIB locking calls from all graphics functions.
parent
dcbfd3d0
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
1 addition
and
112 deletions
+1
-112
dib.c
dlls/winex11.drv/dib.c
+0
-18
graphics.c
dlls/winex11.drv/graphics.c
+0
-71
text.c
dlls/winex11.drv/text.c
+0
-12
x11drv.h
dlls/winex11.drv/x11drv.h
+0
-2
xrender.c
dlls/winex11.drv/xrender.c
+1
-9
No files found.
dlls/winex11.drv/dib.c
View file @
bcc65899
...
@@ -3777,24 +3777,6 @@ INT X11DRV_CoerceDIBSection(X11DRV_PDEVICE *physDev, INT req)
...
@@ -3777,24 +3777,6 @@ INT X11DRV_CoerceDIBSection(X11DRV_PDEVICE *physDev, INT req)
return
X11DRV_DIB_Coerce
(
physDev
->
bitmap
,
req
);
return
X11DRV_DIB_Coerce
(
physDev
->
bitmap
,
req
);
}
}
/***********************************************************************
* X11DRV_LockDIBSection
*/
INT
X11DRV_LockDIBSection
(
X11DRV_PDEVICE
*
physDev
,
INT
req
)
{
if
(
!
physDev
||
!
physDev
->
bitmap
)
return
DIB_Status_None
;
return
X11DRV_DIB_Lock
(
physDev
->
bitmap
,
req
);
}
/***********************************************************************
* X11DRV_UnlockDIBSection
*/
void
X11DRV_UnlockDIBSection
(
X11DRV_PDEVICE
*
physDev
,
BOOL
commit
)
{
if
(
!
physDev
||
!
physDev
->
bitmap
)
return
;
X11DRV_DIB_Unlock
(
physDev
->
bitmap
,
commit
);
}
#ifdef HAVE_LIBXXSHM
#ifdef HAVE_LIBXXSHM
/***********************************************************************
/***********************************************************************
...
...
dlls/winex11.drv/graphics.c
View file @
bcc65899
This diff is collapsed.
Click to expand it.
dlls/winex11.drv/text.c
View file @
bcc65899
...
@@ -47,7 +47,6 @@ BOOL X11DRV_ExtTextOut( PHYSDEV dev, INT x, INT y, UINT flags,
...
@@ -47,7 +47,6 @@ BOOL X11DRV_ExtTextOut( PHYSDEV dev, INT x, INT y, UINT flags,
XFontStruct
*
font
;
XFontStruct
*
font
;
BOOL
rotated
=
FALSE
;
BOOL
rotated
=
FALSE
;
XChar2b
*
str2b
=
NULL
;
XChar2b
*
str2b
=
NULL
;
BOOL
dibUpdateFlag
=
FALSE
;
BOOL
result
=
TRUE
;
BOOL
result
=
TRUE
;
if
(
!
pfo
)
if
(
!
pfo
)
...
@@ -71,8 +70,6 @@ BOOL X11DRV_ExtTextOut( PHYSDEV dev, INT x, INT y, UINT flags,
...
@@ -71,8 +70,6 @@ BOOL X11DRV_ExtTextOut( PHYSDEV dev, INT x, INT y, UINT flags,
if
(
flags
&
ETO_OPAQUE
)
if
(
flags
&
ETO_OPAQUE
)
{
{
X11DRV_LockDIBSection
(
physDev
,
DIB_Status_GdiMod
);
dibUpdateFlag
=
TRUE
;
wine_tsx11_lock
();
wine_tsx11_lock
();
XSetForeground
(
gdi_display
,
physDev
->
gc
,
physDev
->
backgroundPixel
);
XSetForeground
(
gdi_display
,
physDev
->
gc
,
physDev
->
backgroundPixel
);
XFillRectangle
(
gdi_display
,
physDev
->
drawable
,
physDev
->
gc
,
XFillRectangle
(
gdi_display
,
physDev
->
drawable
,
physDev
->
gc
,
...
@@ -92,14 +89,6 @@ BOOL X11DRV_ExtTextOut( PHYSDEV dev, INT x, INT y, UINT flags,
...
@@ -92,14 +89,6 @@ BOOL X11DRV_ExtTextOut( PHYSDEV dev, INT x, INT y, UINT flags,
DeleteObject
(
clip_region
);
DeleteObject
(
clip_region
);
}
}
/* Draw the text background if necessary */
if
(
!
dibUpdateFlag
)
{
X11DRV_LockDIBSection
(
physDev
,
DIB_Status_GdiMod
);
dibUpdateFlag
=
TRUE
;
}
/* Draw the text (count > 0 verified) */
/* Draw the text (count > 0 verified) */
if
(
!
(
str2b
=
X11DRV_cptable
[
pfo
->
fi
->
cptable
].
punicode_to_char2b
(
pfo
,
wstr
,
count
)))
if
(
!
(
str2b
=
X11DRV_cptable
[
pfo
->
fi
->
cptable
].
punicode_to_char2b
(
pfo
,
wstr
,
count
)))
...
@@ -181,7 +170,6 @@ BOOL X11DRV_ExtTextOut( PHYSDEV dev, INT x, INT y, UINT flags,
...
@@ -181,7 +170,6 @@ BOOL X11DRV_ExtTextOut( PHYSDEV dev, INT x, INT y, UINT flags,
END:
END:
HeapFree
(
GetProcessHeap
(),
0
,
str2b
);
HeapFree
(
GetProcessHeap
(),
0
,
str2b
);
if
(
dibUpdateFlag
)
X11DRV_UnlockDIBSection
(
physDev
,
TRUE
);
if
(
restore_region
)
restore_clipping_region
(
physDev
);
if
(
restore_region
)
restore_clipping_region
(
physDev
);
return
result
;
return
result
;
}
}
...
...
dlls/winex11.drv/x11drv.h
View file @
bcc65899
...
@@ -463,8 +463,6 @@ extern const dib_conversions dib_normal DECLSPEC_HIDDEN, dib_src_byteswap DECLSP
...
@@ -463,8 +463,6 @@ extern const dib_conversions dib_normal DECLSPEC_HIDDEN, dib_src_byteswap DECLSP
extern
INT
X11DRV_DIB_MaskToShift
(
DWORD
mask
)
DECLSPEC_HIDDEN
;
extern
INT
X11DRV_DIB_MaskToShift
(
DWORD
mask
)
DECLSPEC_HIDDEN
;
extern
INT
X11DRV_CoerceDIBSection
(
X11DRV_PDEVICE
*
physDev
,
INT
)
DECLSPEC_HIDDEN
;
extern
INT
X11DRV_CoerceDIBSection
(
X11DRV_PDEVICE
*
physDev
,
INT
)
DECLSPEC_HIDDEN
;
extern
INT
X11DRV_LockDIBSection
(
X11DRV_PDEVICE
*
physDev
,
INT
)
DECLSPEC_HIDDEN
;
extern
void
X11DRV_UnlockDIBSection
(
X11DRV_PDEVICE
*
physDev
,
BOOL
)
DECLSPEC_HIDDEN
;
extern
INT
X11DRV_DIB_Lock
(
X_PHYSBITMAP
*
,
INT
)
DECLSPEC_HIDDEN
;
extern
INT
X11DRV_DIB_Lock
(
X_PHYSBITMAP
*
,
INT
)
DECLSPEC_HIDDEN
;
extern
void
X11DRV_DIB_Unlock
(
X_PHYSBITMAP
*
,
BOOL
)
DECLSPEC_HIDDEN
;
extern
void
X11DRV_DIB_Unlock
(
X_PHYSBITMAP
*
,
BOOL
)
DECLSPEC_HIDDEN
;
...
...
dlls/winex11.drv/xrender.c
View file @
bcc65899
...
@@ -1751,8 +1751,6 @@ static BOOL xrenderdrv_ExtTextOut( PHYSDEV dev, INT x, INT y, UINT flags,
...
@@ -1751,8 +1751,6 @@ static BOOL xrenderdrv_ExtTextOut( PHYSDEV dev, INT x, INT y, UINT flags,
XChangeGC
(
gdi_display
,
physdev
->
x11dev
->
gc
,
GCFunction
|
GCBackground
|
GCFillStyle
,
&
xgcval
);
XChangeGC
(
gdi_display
,
physdev
->
x11dev
->
gc
,
GCFunction
|
GCBackground
|
GCFillStyle
,
&
xgcval
);
wine_tsx11_unlock
();
wine_tsx11_unlock
();
X11DRV_LockDIBSection
(
physdev
->
x11dev
,
DIB_Status_GdiMod
);
if
(
physdev
->
x11dev
->
depth
==
1
)
{
if
(
physdev
->
x11dev
->
depth
==
1
)
{
if
((
physdev
->
x11dev
->
textPixel
&
0xffffff
)
==
0
)
{
if
((
physdev
->
x11dev
->
textPixel
&
0xffffff
)
==
0
)
{
textPixel
=
0
;
textPixel
=
0
;
...
@@ -1776,11 +1774,7 @@ static BOOL xrenderdrv_ExtTextOut( PHYSDEV dev, INT x, INT y, UINT flags,
...
@@ -1776,11 +1774,7 @@ static BOOL xrenderdrv_ExtTextOut( PHYSDEV dev, INT x, INT y, UINT flags,
wine_tsx11_unlock
();
wine_tsx11_unlock
();
}
}
if
(
count
==
0
)
if
(
count
==
0
)
return
TRUE
;
{
X11DRV_UnlockDIBSection
(
physdev
->
x11dev
,
TRUE
);
return
TRUE
;
}
EnterCriticalSection
(
&
xrender_cs
);
EnterCriticalSection
(
&
xrender_cs
);
...
@@ -1802,7 +1796,6 @@ static BOOL xrenderdrv_ExtTextOut( PHYSDEV dev, INT x, INT y, UINT flags,
...
@@ -1802,7 +1796,6 @@ static BOOL xrenderdrv_ExtTextOut( PHYSDEV dev, INT x, INT y, UINT flags,
{
{
WARN
(
"could not upload requested glyphs
\n
"
);
WARN
(
"could not upload requested glyphs
\n
"
);
LeaveCriticalSection
(
&
xrender_cs
);
LeaveCriticalSection
(
&
xrender_cs
);
X11DRV_UnlockDIBSection
(
physdev
->
x11dev
,
TRUE
);
return
FALSE
;
return
FALSE
;
}
}
...
@@ -1871,7 +1864,6 @@ static BOOL xrenderdrv_ExtTextOut( PHYSDEV dev, INT x, INT y, UINT flags,
...
@@ -1871,7 +1864,6 @@ static BOOL xrenderdrv_ExtTextOut( PHYSDEV dev, INT x, INT y, UINT flags,
HeapFree
(
GetProcessHeap
(),
0
,
elts
);
HeapFree
(
GetProcessHeap
(),
0
,
elts
);
LeaveCriticalSection
(
&
xrender_cs
);
LeaveCriticalSection
(
&
xrender_cs
);
X11DRV_UnlockDIBSection
(
physdev
->
x11dev
,
TRUE
);
return
TRUE
;
return
TRUE
;
}
}
...
...
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