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
26de7ddc
Commit
26de7ddc
authored
Apr 24, 2008
by
Eric Pouech
Committed by
Alexandre Julliard
Apr 25, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winhelp: Added support for paragraph information.
parent
523a5b3f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
6 deletions
+30
-6
hlpfile.c
programs/winhelp/hlpfile.c
+30
-6
No files found.
programs/winhelp/hlpfile.c
View file @
26de7ddc
...
...
@@ -1037,12 +1037,36 @@ static BOOL HLPFILE_BrowseParagraph(HLPFILE_PAGE* page, struct RtfData* rd, BYTE
format
+=
4
;
bits
=
GET_USHORT
(
format
,
0
);
format
+=
2
;
if
(
bits
&
0x0001
)
fetch_long
(
&
format
);
if
(
bits
&
0x0002
)
fetch_short
(
&
format
);
if
(
bits
&
0x0004
)
fetch_short
(
&
format
);
if
(
bits
&
0x0008
)
fetch_short
(
&
format
);
if
(
bits
&
0x0010
)
fetch_short
(
&
format
);
if
(
bits
&
0x0020
)
fetch_short
(
&
format
);
if
(
bits
&
0x0040
)
fetch_short
(
&
format
);
if
(
bits
&
0x0002
)
{
sprintf
(
tmp
,
"
\\
sb%d"
,
HLPFILE_HalfPointsToTwips
(
fetch_short
(
&
format
)));
if
(
!
HLPFILE_RtfAddControl
(
rd
,
tmp
))
goto
done
;
}
if
(
bits
&
0x0004
)
{
sprintf
(
tmp
,
"
\\
sa%d"
,
HLPFILE_HalfPointsToTwips
(
fetch_short
(
&
format
)));
if
(
!
HLPFILE_RtfAddControl
(
rd
,
tmp
))
goto
done
;
}
if
(
bits
&
0x0008
)
{
sprintf
(
tmp
,
"
\\
sl%d"
,
HLPFILE_HalfPointsToTwips
(
fetch_short
(
&
format
)));
if
(
!
HLPFILE_RtfAddControl
(
rd
,
tmp
))
goto
done
;
}
if
(
bits
&
0x0010
)
{
sprintf
(
tmp
,
"
\\
li%d"
,
HLPFILE_HalfPointsToTwips
(
fetch_short
(
&
format
)));
if
(
!
HLPFILE_RtfAddControl
(
rd
,
tmp
))
goto
done
;
}
if
(
bits
&
0x0020
)
{
sprintf
(
tmp
,
"
\\
ri%d"
,
HLPFILE_HalfPointsToTwips
(
fetch_short
(
&
format
)));
if
(
!
HLPFILE_RtfAddControl
(
rd
,
tmp
))
goto
done
;
}
if
(
bits
&
0x0040
)
{
sprintf
(
tmp
,
"
\\
fi%d"
,
HLPFILE_HalfPointsToTwips
(
fetch_short
(
&
format
)));
if
(
!
HLPFILE_RtfAddControl
(
rd
,
tmp
))
goto
done
;
}
if
(
bits
&
0x0100
)
format
+=
3
;
if
(
bits
&
0x0200
)
{
...
...
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