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
5da40195
Commit
5da40195
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: Emit the proper RTF stream for a metafile to RichEdit.
parent
5309ad1c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
37 additions
and
1 deletion
+37
-1
hlpfile.c
programs/winhelp/hlpfile.c
+37
-1
No files found.
programs/winhelp/hlpfile.c
View file @
5da40195
...
...
@@ -806,7 +806,43 @@ done:
*/
static
BOOL
HLPFILE_RtfAddMetaFile
(
struct
RtfData
*
rd
,
BYTE
*
beg
,
BYTE
pack
)
{
return
TRUE
;
BYTE
*
ptr
;
unsigned
long
size
,
csize
;
unsigned
long
off
,
hsoff
;
BYTE
*
bits
;
char
tmp
[
256
];
unsigned
mm
;
BOOL
ret
;
WINE_TRACE
(
"Loading metafile
\n
"
);
ptr
=
beg
+
2
;
/* for type and pack */
mm
=
fetch_ushort
(
&
ptr
);
/* mapping mode */
sprintf
(
tmp
,
"{
\\
pict
\\
wmetafile%d
\\
picw%d
\\
pich%d"
,
mm
,
GET_USHORT
(
ptr
,
0
),
GET_USHORT
(
ptr
,
2
));
if
(
!
HLPFILE_RtfAddControl
(
rd
,
tmp
))
return
FALSE
;
ptr
+=
4
;
size
=
fetch_ulong
(
&
ptr
);
/* decompressed size */
csize
=
fetch_ulong
(
&
ptr
);
/* compressed size */
fetch_ulong
(
&
ptr
);
/* hotspot size */
off
=
GET_UINT
(
ptr
,
0
);
hsoff
=
GET_UINT
(
ptr
,
4
);
ptr
+=
8
;
WINE_TRACE
(
"sz=%lu csz=%lu offs=%lu/%u,%lu
\n
"
,
size
,
csize
,
off
,
ptr
-
beg
,
hsoff
);
bits
=
HLPFILE_DecompressGfx
(
beg
+
off
,
csize
,
size
,
pack
);
if
(
!
bits
)
return
FALSE
;
ret
=
HLPFILE_RtfAddHexBytes
(
rd
,
bits
,
size
)
&&
HLPFILE_RtfAddControl
(
rd
,
"}"
);
if
(
bits
!=
beg
+
off
)
HeapFree
(
GetProcessHeap
(),
0
,
bits
);
return
ret
;
}
/******************************************************************
...
...
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