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
c1c94ec8
Commit
c1c94ec8
authored
Aug 23, 2000
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cleaned up major ugliness in __lfCheckSum.
parent
53d40899
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
13 deletions
+11
-13
xfont.c
graphics/x11drv/xfont.c
+11
-13
No files found.
graphics/x11drv/xfont.c
View file @
c1c94ec8
...
...
@@ -292,19 +292,17 @@ static UINT16 __lfCheckSum( LPLOGFONT16 plf )
{
CHAR
font
[
LF_FACESIZE
];
UINT16
checksum
=
0
;
UINT16
i
;
#define ptr ((UINT16*)plf)
for
(
i
=
0
;
i
<
9
;
i
++
)
checksum
^=
*
ptr
++
;
#undef ptr
i
=
0
;
#define ptr ((CHAR*)plf)
do
{
font
[
i
++
]
=
tolower
(
*
ptr
++
);
}
while
((
i
<
LF_FACESIZE
)
&&
(
*
ptr
)
&&
(
*
ptr
!=
' '
));
for
(
ptr
=
font
,
i
>>=
1
;
i
>
0
;
i
--
)
#undef ptr
#define ptr ((UINT16*)plf)
checksum
^=
*
ptr
++
;
#undef ptr
UINT16
*
ptr
;
int
i
;
ptr
=
(
UINT16
*
)
plf
;
for
(
i
=
0
;
i
<
9
;
i
++
)
checksum
^=
*
ptr
++
;
for
(
i
=
0
;
i
<
LF_FACESIZE
;
i
++
)
{
font
[
i
]
=
tolower
(
plf
->
lfFaceName
[
i
]);
if
(
!
font
[
i
]
||
font
[
i
]
==
' '
)
break
;
}
for
(
ptr
=
(
UINT16
*
)
font
,
i
>>=
1
;
i
>
0
;
i
--
)
checksum
^=
*
ptr
++
;
return
checksum
;
}
...
...
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