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
9b90e95d
Commit
9b90e95d
authored
Mar 04, 2004
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Avoid direct accesses to the xformWorld2Vport DC field.
parent
8d18b2a5
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
6 deletions
+7
-6
text.c
dlls/x11drv/text.c
+1
-1
xrender.c
dlls/x11drv/xrender.c
+6
-5
No files found.
dlls/x11drv/text.c
View file @
9b90e95d
...
@@ -290,7 +290,7 @@ X11DRV_ExtTextOut( X11DRV_PDEVICE *physDev, INT x, INT y, UINT flags,
...
@@ -290,7 +290,7 @@ X11DRV_ExtTextOut( X11DRV_PDEVICE *physDev, INT x, INT y, UINT flags,
long
ve_we
;
long
ve_we
;
unsigned
short
err
=
0
;
unsigned
short
err
=
0
;
ve_we
=
(
LONG
)(
physDev
->
dc
->
xformWorld2Vport
.
eM11
*
0x10000
);
ve_we
=
X11DRV_XWStoDS
(
physDev
,
0x10000
);
while
(
i
<
count
)
while
(
i
<
count
)
{
{
...
...
dlls/x11drv/xrender.c
View file @
9b90e95d
...
@@ -53,7 +53,7 @@ static XRenderPictFormat *mono_format; /* format of mono bitmap */
...
@@ -53,7 +53,7 @@ static XRenderPictFormat *mono_format; /* format of mono bitmap */
typedef
struct
typedef
struct
{
{
LOGFONTW
lf
;
LOGFONTW
lf
;
XFORM
xform
;
/* this is dum as we don't care about offset
s */
SIZE
devsize
;
/* size in device coord
s */
DWORD
hash
;
DWORD
hash
;
}
LFANDSIZE
;
}
LFANDSIZE
;
...
@@ -225,7 +225,7 @@ sym_not_found:
...
@@ -225,7 +225,7 @@ sym_not_found:
static
BOOL
fontcmp
(
LFANDSIZE
*
p1
,
LFANDSIZE
*
p2
)
static
BOOL
fontcmp
(
LFANDSIZE
*
p1
,
LFANDSIZE
*
p2
)
{
{
if
(
p1
->
hash
!=
p2
->
hash
)
return
TRUE
;
if
(
p1
->
hash
!=
p2
->
hash
)
return
TRUE
;
if
(
memcmp
(
&
p1
->
xform
,
&
p2
->
xform
,
sizeof
(
p1
->
xform
)))
return
TRUE
;
if
(
memcmp
(
&
p1
->
devsize
,
&
p2
->
devsize
,
sizeof
(
p1
->
devsize
)))
return
TRUE
;
if
(
memcmp
(
&
p1
->
lf
,
&
p2
->
lf
,
offsetof
(
LOGFONTW
,
lfFaceName
)))
return
TRUE
;
if
(
memcmp
(
&
p1
->
lf
,
&
p2
->
lf
,
offsetof
(
LOGFONTW
,
lfFaceName
)))
return
TRUE
;
return
strcmpW
(
p1
->
lf
.
lfFaceName
,
p2
->
lf
.
lfFaceName
);
return
strcmpW
(
p1
->
lf
.
lfFaceName
,
p2
->
lf
.
lfFaceName
);
}
}
...
@@ -425,8 +425,8 @@ static void lfsz_calc_hash(LFANDSIZE *plfsz)
...
@@ -425,8 +425,8 @@ static void lfsz_calc_hash(LFANDSIZE *plfsz)
DWORD
hash
=
0
,
*
ptr
;
DWORD
hash
=
0
,
*
ptr
;
int
i
;
int
i
;
for
(
ptr
=
(
DWORD
*
)
&
plfsz
->
xform
;
ptr
<
(
DWORD
*
)(
&
plfsz
->
xform
+
1
);
ptr
++
)
hash
^=
plfsz
->
devsize
.
cx
;
hash
^=
*
ptr
;
hash
^=
plfsz
->
devsize
.
cy
;
for
(
i
=
0
,
ptr
=
(
DWORD
*
)
&
plfsz
->
lf
;
i
<
7
;
i
++
,
ptr
++
)
for
(
i
=
0
,
ptr
=
(
DWORD
*
)
&
plfsz
->
lf
;
i
<
7
;
i
++
,
ptr
++
)
hash
^=
*
ptr
;
hash
^=
*
ptr
;
for
(
i
=
0
,
ptr
=
(
DWORD
*
)
&
plfsz
->
lf
.
lfFaceName
;
i
<
LF_FACESIZE
/
2
;
i
++
,
ptr
++
)
{
for
(
i
=
0
,
ptr
=
(
DWORD
*
)
&
plfsz
->
lf
.
lfFaceName
;
i
<
LF_FACESIZE
/
2
;
i
++
,
ptr
++
)
{
...
@@ -465,7 +465,8 @@ BOOL X11DRV_XRender_SelectFont(X11DRV_PDEVICE *physDev, HFONT hfont)
...
@@ -465,7 +465,8 @@ BOOL X11DRV_XRender_SelectFont(X11DRV_PDEVICE *physDev, HFONT hfont)
TRACE
(
"h=%ld w=%ld weight=%ld it=%d charset=%d name=%s
\n
"
,
TRACE
(
"h=%ld w=%ld weight=%ld it=%d charset=%d name=%s
\n
"
,
lfsz
.
lf
.
lfHeight
,
lfsz
.
lf
.
lfWidth
,
lfsz
.
lf
.
lfWeight
,
lfsz
.
lf
.
lfHeight
,
lfsz
.
lf
.
lfWidth
,
lfsz
.
lf
.
lfWeight
,
lfsz
.
lf
.
lfItalic
,
lfsz
.
lf
.
lfCharSet
,
debugstr_w
(
lfsz
.
lf
.
lfFaceName
));
lfsz
.
lf
.
lfItalic
,
lfsz
.
lf
.
lfCharSet
,
debugstr_w
(
lfsz
.
lf
.
lfFaceName
));
lfsz
.
xform
=
physDev
->
dc
->
xformWorld2Vport
;
lfsz
.
devsize
.
cx
=
X11DRV_XWStoDS
(
physDev
,
lfsz
.
lf
.
lfWidth
);
lfsz
.
devsize
.
cy
=
X11DRV_YWStoDS
(
physDev
,
lfsz
.
lf
.
lfHeight
);
lfsz_calc_hash
(
&
lfsz
);
lfsz_calc_hash
(
&
lfsz
);
EnterCriticalSection
(
&
xrender_cs
);
EnterCriticalSection
(
&
xrender_cs
);
...
...
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