Commit Graph
5 Commits
Author SHA1 Message Date
Gleb Mazovetskiy 6f01fb6b79 Unify CEL/PCX/CL2 render functions
Except for the outline rendering.
2022-07-17 20:28:29 +02:00
Gleb Mazovetskiy bd66e7d6d8 pcx_render: Fix line skipping for odd widths (#4828)
When line skipping PCX sprites with odd widths, skip the padding pixel
as well.
2022-07-01 01:00:43 +02:00
Gleb Mazovetskiy 02d448267a Render fonts as PCX (-420 KiB RAM)
Reduces peak memory consuption in game by ~420 KiB.

This is because the PCX renderer applies the palette on the fly while
rendering, meaning we do not need to duplicate the font for different
palettes.

This approach is also a bit slower than precomposed palettes (still
plenty fast).
2022-06-15 16:59:59 +02:00
Gleb Mazovetskiy c380c7fa61 PCX: Add transparency support 2022-06-13 09:54:01 +01:00
Gleb Mazovetskiy 220d38aa5c Direct PCX rendering 2022-06-13 09:54:01 +01:00