<div class="gmail_quote">On Wed, Oct 20, 2010 at 8:27 AM, Paul Gilbert <span dir="ltr"><<a href="mailto:paulfgilbert@gmail.com">paulfgilbert@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div class="im"><div class="gmail_quote">On Wed, Oct 20, 2010 at 1:27 AM, Joost Peters <span dir="ltr"><<a href="mailto:joostp@7fc1.org" target="_blank">joostp@7fc1.org</a>></span> wrote:<br><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
In addition to this, it'd be nice if the PNG writing code from<br>
Sword25::Screenshot::SaveToFile() would use the existing thumbnail code<br>
instead.<br></blockquote><div><br></div></div></div>This sounds reasonable. BS2.5 savegames have a 'version' flag, so original interpreter savegames wouldn't be compatible with ScummVM anyway. Plus I plan to add a new field to the savegame format to add the date and time when the savegame was added anyway, since ScummVM doesn't have a function to tell you the age of the file. Given that, there's no reason why the entire PNG code couldn't be removed.. it only seems to be used for thumbnails and saving screenshots in any case, and both of those can use existing ScumMVM functionality.<br>
<font color="#888888">
<br>Paul.<br><div></div>
</font></blockquote></div><br>Hi all,<br><br>Apologies, I spoke too soon. Whilst the PNG storing in savegames could be refactored to just save and laod the raw pixel data rather than as a full PNG, the engine would still need the PNG library for loading all the various PNG files the game uses to store button surfaces, fonts, etc.<br>
<br>Whilst in theory we could create an automated process to convert all the PNG files to some other format, I suspect it's going to be easier in the long term to figure out how to cleanly handle having PNG support directly in ScummVM.<br>
<br>Paul.<br><div style="visibility: hidden; left: -5000px;" id="avg_ls_inline_popup"></div><style type="text/css">#avg_ls_inline_popup{position: absolute;z-index: 9999;padding: 0px 0px;margin-left: 0px;margin-top: 0px;overflow: hidden;word-wrap: break-word;color: black;font-size: 10px;text-align: left;line-height: 130%;}</style>