diff options
Diffstat (limited to 'src/emu/render.cpp')
-rw-r--r-- | src/emu/render.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/emu/render.cpp b/src/emu/render.cpp index 0c598345ea1..55340803345 100644 --- a/src/emu/render.cpp +++ b/src/emu/render.cpp @@ -1995,12 +1995,11 @@ bool render_target::load_layout_file(const char *dirname, const internal_layout z_stream stream; int zerr; - /* initialize the stream */ + // initialize the stream memset(&stream, 0, sizeof(stream)); stream.next_out = tempout.get(); stream.avail_out = layout_data.decompressed_size; - zerr = inflateInit(&stream); if (zerr != Z_OK) { @@ -2008,12 +2007,12 @@ bool render_target::load_layout_file(const char *dirname, const internal_layout return false; } - /* decompress this chunk */ + // decompress this chunk stream.next_in = (unsigned char *)layout_data.data; stream.avail_in = layout_data.compressed_size; zerr = inflate(&stream, Z_NO_FLUSH); - /* stop at the end of the stream */ + // stop at the end of the stream if (zerr == Z_STREAM_END) { // OK @@ -2024,7 +2023,7 @@ bool render_target::load_layout_file(const char *dirname, const internal_layout return false; } - /* clean up */ + // clean up zerr = inflateEnd(&stream); if (zerr != Z_OK) { |