<div dir="ltr"><div>As of this commit, 24 bit mode in games should now be complete, although most of Custom still runs at 8-bit for now. (8-bit uses less CPU, so seems worth keeping. The sprite editor, which draws scaled sprites, is the only thing that needs to be 8-bit. We actually have two different ways of drawing a scaled sprite, one of which (DrawOptions.scaled) isn't supported by Surfaces yet)</div><div><br></div><div>Now I just need to allow importing 24bit backdrops (keeping the original jpg and png files)</div><div>I said before that I was trying to avoid using png by looking for alternatives, partially because I wanted to avoid depending on a png library, since png is complex.<br></div><div> I found that I can beat png compression by typically about (only) 10% using simple filtering + gzip/zlib compression (which is builtin into lodepng). However the advantage of using png is that it's good enough for lossless compression of any image type and really flexible, while I would have to try multiple different compression methods to be consistently as good or better. And 10% isn't impressive. I might still implement it at some future time (eg. for the html5 port).<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, 23 Jul 2020 at 14:03, <<a href="mailto:subversion@hamsterrepublic.com" target="_blank">subversion@hamsterrepublic.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">teeemcee<br>
2020-07-22 17:44:58 -0700 (Wed, 22 Jul 2020)<br>
344<br>
8-bit Surfaces now can have masks too; implement 8->32 bit blits with masks<br>
<br>
This fixes many sprite dissolves not working in 32-bit mode<br>
<br>
Normally it would be necessary to recompile gfx_directx.dll after changing<br>
Surface, but I appended the new field to the end and gfx_directx doesn't use<br>
Surfaces for anything except one function which is OK.<br>
---<br>
U   wip/allmodex.bas<br>
U   wip/blit.c<br>
U   wip/<a href="http://surface.bi" rel="noreferrer" target="_blank">surface.bi</a><br>
U   wip/surface.cpp<br>
U   wip/surface.h<br>
_______________________________________________<br>
Ohrrpgce mailing list<br>
<a href="mailto:ohrrpgce@lists.motherhamster.org" target="_blank">ohrrpgce@lists.motherhamster.org</a><br>
<a href="http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org" rel="noreferrer" target="_blank">http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org</a><br>
</blockquote></div>