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
f0076780
Commit
f0076780
authored
Oct 18, 2011
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11: Chain to the next driver when not using a device font.
parent
a37ea541
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
7 deletions
+18
-7
text.c
dlls/winex11.drv/text.c
+10
-3
xfont.c
dlls/winex11.drv/xfont.c
+8
-4
No files found.
dlls/winex11.drv/text.c
View file @
f0076780
...
...
@@ -43,16 +43,21 @@ BOOL X11DRV_ExtTextOut( PHYSDEV dev, INT x, INT y, UINT flags,
X11DRV_PDEVICE
*
physDev
=
get_x11drv_dev
(
dev
);
RGNDATA
*
saved_region
=
NULL
;
unsigned
int
i
;
fontObject
*
pfo
;
fontObject
*
pfo
=
XFONT_GetFontObject
(
physDev
->
font
)
;
XFontStruct
*
font
;
BOOL
rotated
=
FALSE
;
XChar2b
*
str2b
=
NULL
;
BOOL
dibUpdateFlag
=
FALSE
;
BOOL
result
=
TRUE
;
if
(
!
pfo
)
{
dev
=
GET_NEXT_PHYSDEV
(
dev
,
pExtTextOut
);
return
dev
->
funcs
->
pExtTextOut
(
dev
,
x
,
y
,
flags
,
lprect
,
wstr
,
count
,
lpDx
);
}
if
(
!
X11DRV_SetupGCForText
(
physDev
))
return
TRUE
;
pfo
=
XFONT_GetFontObject
(
physDev
->
font
);
font
=
pfo
->
fs
;
if
(
pfo
->
lf
.
lfEscapement
&&
pfo
->
lpX11Trans
)
...
...
@@ -232,5 +237,7 @@ BOOL X11DRV_GetTextExtentExPoint( PHYSDEV dev, LPCWSTR str, INT count,
HeapFree
(
GetProcessHeap
(),
0
,
p
);
return
TRUE
;
}
return
FALSE
;
dev
=
GET_NEXT_PHYSDEV
(
dev
,
pGetTextExtentExPoint
);
return
dev
->
funcs
->
pGetTextExtentExPoint
(
dev
,
str
,
count
,
maxExt
,
lpnFit
,
alpDx
,
size
);
}
dlls/winex11.drv/xfont.c
View file @
f0076780
...
...
@@ -3391,14 +3391,16 @@ BOOL X11DRV_EnumDeviceFonts( PHYSDEV dev, LPLOGFONTW plf, FONTENUMPROCW proc, LP
BOOL
X11DRV_GetTextMetrics
(
PHYSDEV
dev
,
TEXTMETRICW
*
metrics
)
{
X11DRV_PDEVICE
*
physDev
=
get_x11drv_dev
(
dev
);
fontObject
*
pfo
=
XFONT_GetFontObject
(
physDev
->
font
);
if
(
CHECK_PFONT
(
physDev
->
font
)
)
if
(
pfo
)
{
fontObject
*
pfo
=
__PFONT
(
physDev
->
font
);
X11DRV_cptable
[
pfo
->
fi
->
cptable
].
pGetTextMetricsW
(
pfo
,
metrics
);
return
TRUE
;
}
return
FALSE
;
dev
=
GET_NEXT_PHYSDEV
(
dev
,
pGetTextMetrics
);
return
dev
->
funcs
->
pGetTextMetrics
(
dev
,
metrics
);
}
...
...
@@ -3452,5 +3454,7 @@ BOOL X11DRV_GetCharWidth( PHYSDEV dev, UINT firstChar, UINT lastChar, LPINT buff
return
TRUE
;
}
return
FALSE
;
dev
=
GET_NEXT_PHYSDEV
(
dev
,
pGetCharWidth
);
return
dev
->
funcs
->
pGetCharWidth
(
dev
,
firstChar
,
lastChar
,
buffer
);
}
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