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
c9fd5a26
Commit
c9fd5a26
authored
Jun 06, 2007
by
Huw Davies
Committed by
Alexandre Julliard
Jun 06, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11.drv: XRenderCompositeText has a problem with 0x0 glyphs, so we'll pretend they're 1x1.
parent
0bb92b37
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
2 deletions
+16
-2
xrender.c
dlls/winex11.drv/xrender.c
+16
-2
No files found.
dlls/winex11.drv/xrender.c
View file @
c9fd5a26
...
...
@@ -633,6 +633,7 @@ static BOOL UploadGlyph(X11DRV_PDEVICE *physDev, int glyph, AA_Type format)
gsCacheEntryFormat
*
formatEntry
;
UINT
ggo_format
=
GGO_GLYPH_INDEX
;
XRenderPictFormat
pf
;
const
char
zero
=
0
;
switch
(
format
)
{
case
AA_Grey
:
...
...
@@ -790,7 +791,6 @@ static BOOL UploadGlyph(X11DRV_PDEVICE *physDev, int glyph, AA_Type format)
}
}
memcpy
(
&
formatEntry
->
gis
[
glyph
],
&
gi
,
sizeof
(
gi
));
if
(
formatEntry
->
glyphset
)
{
if
(
format
==
AA_None
&&
BitmapBitOrder
(
gdi_display
)
!=
MSBFirst
)
{
...
...
@@ -809,14 +809,28 @@ static BOOL UploadGlyph(X11DRV_PDEVICE *physDev, int glyph, AA_Type format)
}
}
gid
=
glyph
;
/*
XRenderCompositeText seems to ignore 0x0 glyphs when
AA_None, which means we lose the advance width of glyphs
like the space. We'll pretend that such glyphs are 1x1
bitmaps.
*/
if
(
buflen
==
0
)
gi
.
width
=
gi
.
height
=
1
;
wine_tsx11_lock
();
pXRenderAddGlyphs
(
gdi_display
,
formatEntry
->
glyphset
,
&
gid
,
&
gi
,
1
,
buf
,
buflen
);
buf
len
?
buf
:
&
zero
,
buflen
?
buflen
:
1
);
wine_tsx11_unlock
();
HeapFree
(
GetProcessHeap
(),
0
,
buf
);
}
else
{
formatEntry
->
bitmaps
[
glyph
]
=
buf
;
}
memcpy
(
&
formatEntry
->
gis
[
glyph
],
&
gi
,
sizeof
(
gi
));
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