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
a20d42de
Commit
a20d42de
authored
Mar 25, 2013
by
Huw Davies
Committed by
Alexandre Julliard
Mar 25, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
riched20: Always write out the color table.
parent
c409fc13
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
12 deletions
+7
-12
writer.c
dlls/riched20/writer.c
+7
-12
No files found.
dlls/riched20/writer.c
View file @
a20d42de
...
...
@@ -297,20 +297,15 @@ ME_StreamOutRTFFontAndColorTbl(ME_OutStream *pStream, ME_DisplayItem *pFirstRun,
if
(
!
ME_StreamOutPrint
(
pStream
,
"}
\r\n
"
))
return
FALSE
;
/* Output colors table if not empty */
if
(
pStream
->
nColorTblLen
>
1
)
{
if
(
!
ME_StreamOutPrint
(
pStream
,
"{
\\
colortbl;"
))
return
FALSE
;
for
(
i
=
1
;
i
<
pStream
->
nColorTblLen
;
i
++
)
{
if
(
!
ME_StreamOutPrint
(
pStream
,
"
\\
red%u
\\
green%u
\\
blue%u;"
,
pStream
->
colortbl
[
i
]
&
0xFF
,
(
pStream
->
colortbl
[
i
]
>>
8
)
&
0xFF
,
(
pStream
->
colortbl
[
i
]
>>
16
)
&
0xFF
))
return
FALSE
;
}
if
(
!
ME_StreamOutPrint
(
pStream
,
"}"
))
/* Output the color table */
if
(
!
ME_StreamOutPrint
(
pStream
,
"{
\\
colortbl;"
))
return
FALSE
;
/* first entry is auto-color */
for
(
i
=
1
;
i
<
pStream
->
nColorTblLen
;
i
++
)
{
if
(
!
ME_StreamOutPrint
(
pStream
,
"
\\
red%u
\\
green%u
\\
blue%u;"
,
pStream
->
colortbl
[
i
]
&
0xFF
,
(
pStream
->
colortbl
[
i
]
>>
8
)
&
0xFF
,
(
pStream
->
colortbl
[
i
]
>>
16
)
&
0xFF
))
return
FALSE
;
}
if
(
!
ME_StreamOutPrint
(
pStream
,
"}"
))
return
FALSE
;
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