mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 10:13:56 +00:00
gdi: In metafile test only print debug output if enabled.
This commit is contained in:
parent
c20d6c4095
commit
eb7ef83357
1 changed files with 6 additions and 0 deletions
|
@ -612,6 +612,8 @@ static void dump_mf_bits (const HMETAFILE mf, const char *desc)
|
|||
BYTE buf[MF_BUFSIZE];
|
||||
UINT mfsize, i;
|
||||
|
||||
if (!winetest_debug) return;
|
||||
|
||||
mfsize = GetMetaFileBitsEx (mf, MF_BUFSIZE, buf);
|
||||
ok (mfsize > 0, "%s: GetMetaFileBitsEx failed.\n", desc);
|
||||
|
||||
|
@ -710,6 +712,8 @@ static void dump_emf_bits(const HENHMETAFILE mf, const char *desc)
|
|||
BYTE buf[MF_BUFSIZE];
|
||||
UINT mfsize, i;
|
||||
|
||||
if (!winetest_debug) return;
|
||||
|
||||
mfsize = GetEnhMetaFileBits(mf, MF_BUFSIZE, buf);
|
||||
ok (mfsize > 0, "%s: GetEnhMetaFileBits failed\n", desc);
|
||||
|
||||
|
@ -733,6 +737,8 @@ static void dump_emf_records(const HENHMETAFILE mf, const char *desc)
|
|||
BYTE buf[MF_BUFSIZE];
|
||||
UINT mfsize, offset;
|
||||
|
||||
if (!winetest_debug) return;
|
||||
|
||||
mfsize = GetEnhMetaFileBits(mf, MF_BUFSIZE, buf);
|
||||
ok (mfsize > 0, "%s: GetEnhMetaFileBits error %ld\n", desc, GetLastError());
|
||||
|
||||
|
|
Loading…
Reference in a new issue