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
e802bcb2
Commit
e802bcb2
authored
Mar 24, 2005
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Try a TrueColor visual if Xrender fails with a DirectColor one.
parent
9ed61de9
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
4 deletions
+19
-4
init.c
dlls/x11drv/init.c
+3
-3
xrender.c
dlls/x11drv/xrender.c
+16
-1
No files found.
dlls/x11drv/init.c
View file @
e802bcb2
...
@@ -97,13 +97,13 @@ void X11DRV_GDI_Initialize( Display *display )
...
@@ -97,13 +97,13 @@ void X11DRV_GDI_Initialize( Display *display )
{
{
gdi_display
=
display
;
gdi_display
=
display
;
/* Initialize XRender */
X11DRV_XRender_Init
();
palette_size
=
X11DRV_PALETTE_Init
();
palette_size
=
X11DRV_PALETTE_Init
();
X11DRV_BITMAP_Init
();
X11DRV_BITMAP_Init
();
/* Initialize XRender */
X11DRV_XRender_Init
();
/* Initialize device caps */
/* Initialize device caps */
log_pixels_x
=
log_pixels_y
=
get_dpi
();
log_pixels_x
=
log_pixels_y
=
get_dpi
();
horz_size
=
MulDiv
(
screen_width
,
254
,
log_pixels_x
*
10
);
horz_size
=
MulDiv
(
screen_width
,
254
,
log_pixels_x
*
10
);
...
...
dlls/x11drv/xrender.c
View file @
e802bcb2
...
@@ -197,7 +197,22 @@ LOAD_OPTIONAL_FUNCPTR(XRenderSetPictureTransform)
...
@@ -197,7 +197,22 @@ LOAD_OPTIONAL_FUNCPTR(XRenderSetPictureTransform)
X11DRV_XRender_Installed
=
TRUE
;
X11DRV_XRender_Installed
=
TRUE
;
TRACE
(
"Xrender is up and running error_base = %d
\n
"
,
error_base
);
TRACE
(
"Xrender is up and running error_base = %d
\n
"
,
error_base
);
screen_format
=
pXRenderFindVisualFormat
(
gdi_display
,
visual
);
screen_format
=
pXRenderFindVisualFormat
(
gdi_display
,
visual
);
if
(
!
screen_format
)
{
/* This fails in buggy versions of libXrender.so */
if
(
!
screen_format
)
{
/* Xrender doesn't like DirectColor visuals, try to find a TrueColor one instead */
if
(
visual
->
class
==
DirectColor
)
{
XVisualInfo
info
;
if
(
XMatchVisualInfo
(
gdi_display
,
DefaultScreen
(
gdi_display
),
screen_depth
,
TrueColor
,
&
info
))
{
screen_format
=
pXRenderFindVisualFormat
(
gdi_display
,
info
.
visual
);
if
(
screen_format
)
visual
=
info
.
visual
;
}
}
}
if
(
!
screen_format
)
/* This fails in buggy versions of libXrender.so */
{
wine_tsx11_unlock
();
wine_tsx11_unlock
();
WINE_MESSAGE
(
WINE_MESSAGE
(
"Wine has detected that you probably have a buggy version
\n
"
"Wine has detected that you probably have a buggy version
\n
"
...
...
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