2020-05-15  Matti Hamalainen <ccr@tnsp.org>

	* README.txt: Minor fixes / updates to README.
	* tools/lib64fmts.c: Initialize result variable.
	* tools/lib64fmts.c: Implement SupeRes encoding.
	* tools/lib64fmts.c: Rename DMSupeResCtx to DMSupeResDecCtx.
	* tools/lib64fmts.c: Cosmetic.
	* tools/lib64fmts.c: Clean up the SupeRes decoder a bit.
	* tools/lib64fmts.c tools/lib64gfx.h: Add new field 'size_t extra'
	  to DMC64ImageFormat for certain image format data for which size
	  field was previously abused for.
	* tools/lib64gfx.h: Cosmetics.
	* tools/lib64fmts.c: Add preliminary decoder for SupeRes hires and
	  multicolor files. The decoder is pretty horrible at the moment,
	  should be cleaned up.

2020-05-12  Matti Hamalainen <ccr@tnsp.org>

	* tools/lib64gfx.c: Implement optionality of loading address in
	  dmC64EncodeBMP() as well.
	* tools/lib64util.c: List formats without a loading address
	  differently in argShowC64Formats().
	* tools/64vw.c tools/gfxconv.c tools/lib64gfx.c tools/lib64gfx.h:
	  Change dmC64DecodeBMP() probeOffs and dataOffs to ssize_t, and
	  use default values if negative values are provided. Also
	  implement support for load-addressless formats.
	* tools/64vw.c tools/gfxconv.c tools/lib64gfx.h tools/lib64util.c
	  tools/lib64util.h: Make c64 formats listing (optionally) more
	  verbose. Handle --help a bit differently in gfxconv.

2020-05-02  Matti Hamalainen <ccr@tnsp.org>

	* tools/lib64gfx.h: Comments.
	* src/dmzlib.c: Cleanup.

2020-04-30  Matti Hamalainen <ccr@tnsp.org>

	* tools/objlink.c: Cleanup.
	* tools/lib64gfx.h: Comment out fields in DMC64ImageConvSpec that
	  are not currently used. Improve comments of the fields that are.

2020-04-29  Matti Hamalainen <ccr@tnsp.org>

	* tools/gfxconv.c: Some improvements/fixes to -R option help.
	* minijss/jloadxm.c: Cleanups.
	* minijss/jloadxm.c: Due to previously added version check, we
	  need to initialize a variable to appease the compiler.
	* tools/lib64gfx.c tools/lib64gfx.h: Remove the unused D64_CHCFG_*
	  stuff.
	* minijss/jloadxm.c: Add (a redundant) check for XM version.

2020-04-28  Matti Hamalainen <ccr@tnsp.org>

	* tools/gfxconv.c: Improve the help texts / descriptions of few
	  options.
	* tools/gfxconv.c: Mention --longhelp in the message if no
	  arguments are given.
	* tools/gfxconv.c: Clarify the help for -R sub-option "max=".
	* tools/gfxconv.c: All the -R modes now accept all the different
	  sub-options/modifiers, so no need to list them separately for
	  each mode.
	* tools/gfxconv.c: Cosmetic.
	* tools/gfxconv.c: Output a warning if REMAP_MAPPED is used
	  together with palette replacement -p option.
	* tools/gfxconv.c: Bump gfxconv version.
	* tools/gfxconv.c: Fix/clarify an explanation in '-R' option help.
	* tools/gfxconv.c: Oooops, forgot to commit these changes to color
	  remapping stuff. 100L.
	* tools/gfxconv.c: Fix parsing of some arguments to -S option.
	* tools/gfxconv.c: Add 'help' support to -m, -S and -R options.
	* src/dmlib.h src/dmstring.c tools/fanalyze.c tools/gfxconv.c:
	  Remove dm_str(n)casecmp() functions, in favour of standard libc
	  ones.
	* tools/gfxconv.c: More improvements to palette remapping etc.
	* tools/gfxconv.c: Add few comments to the -R sub-option parsing
	  and remove dead code.
	* tools/gfxconv.c: Implement parsing of -R option suboptions.
	* src/dmstring.c: Fix dm_strncasecmp() edge case.
	* tools/packed.c: Cleanup.
	* tools/gfxconv.c: Rework some option parsing to be more robust.
	* tools/gfxconv.c: More work on image palette remapping
	  functionality.
	* src/dmlib.h tools/libgutil.c: Rename DM_SWAP() macro to
	  DM_SWAP_IF().
	* tools/gfxconv.c: Change dmParseIntValWithSep() separator spec
	  from char to char *, to specify varying number of separators.
	* tools/gfxconv.c: Oops, use dmPaletteFree() instead of dmFree().
	* tools/gfxconv.c: Add support for converting palette to another
	  palette format, or to a supported image format.
	* tools/xm2jss.c: Cosmetic.
	* tools/gfxconv.c: Some work towards more flexible palette
	  remapping.

2020-04-27  Matti Hamalainen <ccr@tnsp.org>

	* tools/packed.c: Various cleanups, integrate some
	  changes/improvements from opendat project to packed.
	* src/dmpack.c src/dmpack.h src/dmres.c tools/packed.c: Rename
	  DMPackEntry::length to csize (compressed size).
	* tools/fanalyze.c: Fix two meaningless memory leaks.
	* tools/ppl.c: Clean up various error messages.
	* tools/xm2jss.c: Use DMResource I/O instead of stdio for writing
	  JSSMOD module.
	* tools/xm2jss.c: Add few comments about the state of
	  jssOptimizeModule().
	* tools/xm2jss.c: Various cleanups, use saner variable names.
	* tools/xm2jss.c: Improve error handling.
	* minijss/jloadjss.c: Allocate empty pattern for JSSMOD as well.
	* minijss/jloadxm.c: Use jsetMaxPatterns for "empty" pattern
	  instead of npatterns.
	* minijss/jssmod.c: Do checks against buffer length before access.
	  :S

2020-04-17  Matti Hamalainen <ccr@tnsp.org>

	* tools/libgfx.h: Adjust DM_FMT_* flag values slightly.

2020-04-16  Matti Hamalainen <ccr@tnsp.org>

	* tools/gfxconv.c: Enable the use of internal (C64) palettes for
	  generally specifying a palette.
	* tools/gfxconv.c tools/libgfx.c tools/libgfx.h: Move
	  dmCompareColor() from libgfx to gfxconv as it is used only
	  there, rename to dmExactCompareColor().
	* tools/gfxconv.c: Free the allocated extra palette, if any.
	* src/dmstring.c: Sync string handling fixes from th-libs.
	* tools/gfxconv.c: Add few comments.
	* tools/lib64util.c: Improve error and validity checks for
	  external palette loading.
	* README.txt: "Arbitrary" is better than "non-standard" in this
	  context.
	* tools/gfxconv.c: Check that the source image has a palette when
	  doing image -> palette conversion/extraction.
	* tools/gfxconv.c: Improve few error messages.
	* tools/gfxconv.c: Rename labels more unformly.
	* tools/libgfx.h: Reorder the function prototypes, cosmetics,
	  comments.

2020-04-15  Matti Hamalainen <ccr@tnsp.org>

	* tools/libgfx.c: Add few comments.
	* tools/gfxconv.c: Remove the unused "BOOL info" argument from
	  dmWriteImage().
	* tools/gfxconv.c: Allow the -R option of gfxconv to be specified
	  as '-R auto[+remove]' for remapping the palette without
	  specifying any manual remaps.
	* tools/gfxconv.c: Un-staticize functions in the main program.
	* tools/gfxconv.c: Implement functionality for converting the
	  supported palette formats to another. This is quite simplistic
	  currently.
	* tools/gfxconv.c: Rename dmRemapImageColors() to more accurate
	  dmRemoveUnusedImageColors().
	* tools/gfxconv.c: Move conversion final write error checking to a
	  more generic location.
	* tools/gfxconv.c: Check that the image format detected by
	  dmImageProbeGeneric() has read() function defined.
	* tools/gfxconv.c: Reorder few NULL checks to be earlier.
	* tools/gfxconv.c: Remove useless else and block.
	* tools/gfxconv.c: Cosmetics.

2020-03-10  Matti Hamalainen <ccr@tnsp.org>

	* src/dmres.c src/dmres.h: Remove some useless complexity from
	  resource system .. could remove more.

2020-03-09  Matti Hamalainen <ccr@tnsp.org>

	* src/dmres.c src/dmres.h: Cleanup, rename DMResource::error to
	  DMResource::status.
	* src/dmres.c: Add few comments.

2020-03-03  Matti Hamalainen <ccr@tnsp.org>

	* tools/packed.c: Cleanups.

2020-02-29  Matti Hamalainen <ccr@tnsp.org>

	* tools/gfxconv.c: Input file argument is optional for some cases,
	  where stdin can be used.
	* tools/fanalyze.c tools/packed.c tools/ppl.c: Show help when no
	  arguments.

2020-02-26  Matti Hamalainen <ccr@tnsp.org>

	* tools/packed.c: Rename extract short from 'e' to 'x'.

2020-02-25  Matti Hamalainen <ccr@tnsp.org>

	* tools/packed.c: Adjust few comments.
	* tools/packed.c: Cosmetics in help.
	* src/dmengine.c src/dmres.c src/dmres.h: Fix and improvements to
	  dmres MemIO subsystem.

2020-02-24  Matti Hamalainen <ccr@tnsp.org>

	* src/dmargs.c: Do not show 'Invalid argument' message, assume the
	  caller does it.

2020-02-23  Matti Hamalainen <ccr@tnsp.org>

	* src/dmzlib.c: Add missing linefeed.
	* tools/fanalyze.c: Print binary name and input file name when
	  outputting -o options.

2020-02-19  Matti Hamalainen <ccr@tnsp.org>

	* tools/fanalyze.c: More improvements to the grep mode.
	* tools/fanalyze.c: Only print grep value lists if verbosity >= 1.
	* tools/fanalyze.c: Fix grepping of consecutive values in fanalyze
	  when using > byte size types.

2020-02-18  Matti Hamalainen <ccr@tnsp.org>

	* tools/fanalyze.c: Use printf() here as well.
	* tools/fanalyze.c: Use printf() instead of dmPrint() for some
	  things.

2020-01-31  Matti Hamalainen <ccr@tnsp.org>

	* tools/lib64fmts.c: Fix write support of Abyss Connection
	  PETSCII-Editor 4.61 (unpacked) format.

2020-01-27  Matti Hamalainen <ccr@tnsp.org>

	* tools/data2inc.c: Cleanup.

2020-01-21  Matti Hamalainen <ccr@tnsp.org>

	* src/dmargs.c: Fix the check for --long option argument.
	* src/dmargs.c: Rename some variables.

2020-01-20  Matti Hamalainen <ccr@tnsp.org>

	* src/dmlib.h: Remember to include <string.h> for memset() now.
	* src/dmargs.c: Adjust options help width check, it was off-by-one.

2020-01-17  Matti Hamalainen <ccr@tnsp.org>

	* Makefile.gen: Cleanup.

2020-01-16  Matti Hamalainen <ccr@tnsp.org>

	* tools/data2inc.c: Make things more flexible.

2020-01-14  Matti Hamalainen <ccr@tnsp.org>

	* Makefile.gen: Convert more instances of direct commands in rules
	  to DO_CMD macro calls.
	* Makefile.gen: Check for empty target directory in DO_MKDIR
	  Makefile macro.
	* Makefile Makefile.cross-mingw Makefile.gen: Build system
	  cleanups: reordering, more comments.
	* Makefile.gen: Oops, a output suppressor was missing from
	  COMPILE_CXX_OBJ macro in the build system.
	* .hgsigs: Added signature for changeset a2c565ae8098
	* Makefile.gen: Import build system improvements from th-libs.

2020-01-13  Matti Hamalainen <ccr@tnsp.org>

	* Makefile Makefile.cross-mingw editor/edmain.cpp minijss/jssmix.c
	  minijss/jssmod.c minijss/jssplr.c src/dmengine.c src/dmfft.c
	  src/dmgrowbuf.c src/dmlib.c src/dmlib.h src/dmpack.c
	  src/dmperlin.c src/dmres.c src/dmsimple.c src/dmvecmat.c
	  src/dmzlib.c src/stb_image.c tests/dzlibtest.c tools/gfxconv.c
	  tools/lib64gfx.c tools/libgfx.c tools/objlink.c tools/packed.c
	  tools/ppl.c: Remove useless dmMemset().
	* tools/gfxconv.c: Option index adjustments.
	* tools/objlink.c: Make default verbosity quieter.
	* tools/objlink.c: Cosmetic cleanups.
	* Makefile.gen src/dmlib.h src/dmlicense.c tools/64vw.c
	  tools/data2inc.c tools/dumpmod.c tools/fanalyze.c
	  tools/fontconv.c tools/gfxconv.c tools/mod2wav.c tools/objlink.c
	  tools/packed.c tools/ppl.c tools/xm2jss.c: Add a C file with the
	  generic BSD license text and a function for printing it out, for
	  use in the tools.
	* Makefile.gen tools/gentab.c: Remove gentab.
	* tools/64vw.c tools/data2inc.c tools/dumpmod.c tools/fanalyze.c
	  tools/fontconv.c tools/gfxconv.c tools/mod2wav.c tools/packed.c
	  tools/ppl.c tools/xm2jss.c: Option index re-ordering cleanup
	  work.
	* tools/lib64gfx.c: Oops, forgot to set up the DMC64EncDecCtx::buf
	  to point to the correct DMGrowBuf (source or destination) in
	  dmC64EncodeGenericBMP() and dmC64DecodeGenericBMP(). Fixed.
	* tools/data2inc.c: Bump copyright year.
	* tools/data2inc.c: Add some error checking to data2inc.
	* src/dmlib.h src/dmtool.h: Cosmetic cleanups.

2020-01-12  Matti Hamalainen <ccr@tnsp.org>

	* tools/64vw.c: Adjust help.
	* src/dmargs.c src/dmargs.h tests/blittest.c tests/dzlibtest.c
	  tools/64vw.c tools/data2inc.c tools/dumpmod.c tools/fanalyze.c
	  tools/fontconv.c tools/gentab.c tools/gfxconv.c tools/mod2wav.c
	  tools/objlink.c tools/packed.c tools/ppl.c tools/xm2jss.c: Merge
	  one more change from th-libs args processing.
	* src/dmargs.c src/dmargs.h: Change dmPrintWrap() API and move the
	  string argument last.
	* src/dmargs.c src/dmargs.h: Sync commandline argument help
	  printing/handling changes from th-libs.
	* tools/lib64fmts.c: Add support for Abyss Connection
	  PETSCII-Editor 4.61 (unpacked) raw file format.

2020-01-10  Matti Hamalainen <ccr@tnsp.org>

	* tools/lib64gfx.c tools/lib64gfx.h: Merge
	  dmC64ImageGetNumBlocks() into dmC64SetupImageData().
	* tools/lib64gfx.h: Cosmetics.
	* tools/fanalyze.c: Implement counting of matching files for each
	  match sequence.

2020-01-09  Matti Hamalainen <ccr@tnsp.org>

	* src/dmlib.h: Remove the __USE_MINGW_ANSI_STDIO hack.
	* src/dmlib.h src/dmres.c: Copy improvements to the platform
	  32/64bit logic from th-libs.
	* src/dmlib.h tools/libgfx.c: Add new DM_PRI*_OFF_T specifiers for
	  off_t type.
	* src/dmlib.h: Use standard inttypes.h for defining the DM_PRI*
	  format specifiers, except for our custom DM_PRI*_SIZE_T ones.
	* tools/packed.c: Fix some format specifiers, was erraneously
	  using DM_PRI*_SIZE_T instead of DM_PRI*64.
	* tests/fptest.c: Use correct format specifier DM_PRIu_SIZE_T
	  instead of DM_PRId64.
	* tests/dzlibtest.c tools/fanalyze.c tools/gfxconv.c
	  tools/lib64fmts.c tools/mod2wav.c: More printf() format
	  specifier size_t -related fixes.
	* tools/lib64gfx.c: Refactor error handling in
	  dmC64DecodeGenericBMP() and dmC64EncodeGenericBMP() by adding
	  helper functions dmC64EncDecError() and dmC64EncDecErrorMsg()
	  and using them through out. Also various printf() format
	  specifier fixes.
	* tools/gfxconv.c: Clean up some error messages in gfxconv.
	* tools/lib64gfx.c: Rename some labels err -> out.
	* src/dmlib.h src/dmres.h src/dmtext.h tools/lib64util.c
	  tools/libgutil.h: Conditionally define
	  DM_ATTR_PRINTF_FMT(xstart, xend) instead of using __attribute__
	  ((__format__ (__printf__, (xstart), (xend)))) directly. Wrap it
	  in an #ifdef check for __MINGW64__ as there are some annoying
	  issues on that side, which we just suppress now.
	* src/dmengine.c src/dmfile.c src/dmres.c src/dmzlib.c
	  tools/fanalyze.c tools/gfxconv.c tools/libgfx.c tools/objlink.c
	  tools/packed.c tools/xm2jss.c: Fix some format strings to use
	  proper PRI*_SIZE_T where necessary.
	* src/dmlib.h src/dmres.h src/dmtext.h tools/lib64util.c
	  tools/libgutil.h: Add __attribute__(__format__ ..) specifiers
	  for functions that use printf() style format specifiers.

2020-01-08  Matti Hamalainen <ccr@tnsp.org>

	* tools/64vw.c: Document space key.
	* Makefile.gen: Reorganize Makefile.gen some for clarity.
	* tools/lib64gfx.c tools/lib64gfx.h tools/lib64util.c
	  tools/lib64util.h: Move dmC64DefaultPalettes from lib64gfx to
	  lib64util.
	* tools/lib64util.h: Comments.
	* tools/lib64fmts.c: Mark Marq's newer PETSCII editor format as
	  (new format).
	* tools/lib64fmts.c: UPETSCII is actually old version of Marq's
	  PETSCII editor.
	* tools/64vw.c: Cosmetics.
	* tools/64vw.c: Document the keys for controlling the viewer in
	  --help.
	* tools/64vw.c: Bump copyright year.
	* tools/lib64util.c: Improve the help text in
	  argShowC64PaletteHelp().
	* tools/lib64util.c tools/lib64util.h: Fix copyright years.
	* tools/gfxconv.c tools/lib64fmts.c tools/lib64gfx.c
	  tools/lib64gfx.h tools/lib64util.c tools/lib64util.h
	  tools/libgfx.c tools/libgfx.h: Bump copyright years.

2020-01-07  Matti Hamalainen <ccr@tnsp.org>

	* Makefile.gen: Unfortunately -flto breaks clang builds, so remove
	  it from the default CFLAGS additions in order to unconfuse
	  myself and possibly others.
	* tools/gfxconv.c: Copy certain DMC64Image::extraInfo fields in
	  dmConvertC64Bitmap() to the destination image.
	* tools/lib64fmts.c: Fix encoding and improve decoding of
	  character set case (upper/lower) for two PETSCII formats. Also
	  generalize the functions a bit.
	* tools/lib64fmts.c: Fix Petscii Coca editor format writing.
	* tools/lib64fmts.c: Rename some functions to be more consistent
	  with their intent.

2020-01-06  Matti Hamalainen <ccr@tnsp.org>

	* Makefile.gen: Oops, used the old Makefile variable EXEEXT
	  instead of BINEXT. Fix it.

2020-01-04  Matti Hamalainen <ccr@tnsp.org>

	* Makefile.gen: Oops, commit 21d8eb203e2a broke 'make install'.
	  Fix it.
	* tools/lib64fmts.c: Change "Unknown PETSCII (unpacked)" to
	  "Unknown PETSCII editor (unpacked)"
	* tools/lib64fmts.c: Add support for Petscii Coca (Cola) format.

2020-01-03  Matti Hamalainen <ccr@tnsp.org>

	* COPYING README.txt src/dmargs.c src/dmargs.h src/dmgrowbuf.c
	  src/dmgrowbuf.h src/dmlib.h: Bump copyright years.

2019-12-31  Matti Hamalainen <ccr@tnsp.org>

	* tools/gfxconv.c: Add missing description string to
	  formatTypeList[].
	* tools/gfxconv.c: Add argument to dmPrintByte() for reversing the
	  bits.

2019-12-05  Matti Hamalainen <ccr@tnsp.org>

	* Makefile.gen: Cosmetic.
	* Makefile.cross-mingw Makefile.gen: s/EXEEXT/BINEXT/g
	* Makefile.gen: Some work on build system improvements/cleanups.
	* Makefile.cross-mingw: Change MINGW_PREFIX to BINTOOL_PREFIX.
	* Makefile.cross-mingw: A bit more work on the MinGW 32/64bit
	  build stuff.
	* src/dmlib.h: Fix / improve DM_PRI* constants generated for
	  Windows 64bit platform.
	* src/dmlib.h: Improve platform/architecture "detection" logic.
	* src/dmlib.h: Silence warnings on newer MinGW versions.
	* Makefile.cross-mingw: Add Makefile variable MINGW which
	  determines which Windows target (x86-32 or 64bit) will be built.

2019-10-29  Matti Hamalainen <ccr@tnsp.org>

	* Makefile.gen: More build system work: change DMCONFIG Make
	  variable to DM_CONFIG, and add option of setting it to value
	  "no" which disables inclusion of "config.mak". Setting DM_CONFIG
	  to any other non-empty value will include file with that name
	  instead. Empty value will include default "config.mak".
	* Makefile.gen: Improve build system: only hard depend on fontconv
	  and data2inc when we are building with tools to begin with.

2019-10-24  Matti Hamalainen <ccr@tnsp.org>

	* Makefile.gen: Fix data2inc and fontconv binpaths for cases when
	  doing out of tree builds.

2019-10-08  Matti Hamalainen <ccr@tnsp.org>

	* tools/lib64gfx.c tools/lib64gfx.h: Move pixel helper functions
	  from being inline in lib64gfx.h to lib64gfx.c

2019-09-25  Matti Hamalainen <ccr@tnsp.org>

	* tools/lib64gfx.c: Move two memsets to later in the function.
	* tools/lib64fmts.c tools/lib64gfx.c tools/lib64gfx.h: Change
	  Uint8 pointer in getPixel functions to DMC64ScanLine pointer in
	  preparation for future changes related to sprites on scanlines.
	* tools/lib64gfx.h: Fix D64_SPRF_Y_EXPAND enum value.

2019-09-24  Matti Hamalainen <ccr@tnsp.org>

	* tools/lib64gfx.c: Remove some useless checks.
	* tools/lib64gfx.c tools/lib64gfx.h: Cosmetics.

2019-09-23  Matti Hamalainen <ccr@tnsp.org>

	* tools/lib64gfx.c: Comment.
	* tools/lib64gfx.c: Make dmC64ConvertGenericBMP2Image() and
	  dmC64ConvertGenericImage2BMP() static.
	* tools/lib64gfx.c: Comment.

2019-09-19  Matti Hamalainen <ccr@tnsp.org>

	* tools/lib64gfx.h: dmC64ConvertGenericBMP2Image() and
	  dmC64ConvertGenericImage2BMP() should be private functions, so
	  remove the prototypes from header.
	* tools/lib64gfx.h: Comment adjustments.
	* src/dmimage.c: Cosmetic.
	* tools/64vw.c: Unify 64vw image decoding.

2019-09-16  Matti Hamalainen <ccr@tnsp.org>

	* tools/lib64gfx.h: Cosmetic.
	* tools/lib64fmts.c: Missed on dmGenericRLEAnalyze() call from a
	  previous commit.
	* tools/libgfx.c: Fix setjmp() warning.
	* tools/lib64fmts.c tools/lib64gfx.c tools/lib64gfx.h: Add return
	  value (error code) to dmGenericRLEAnalyze() and pass it through
	  where used.
	* tools/lib64gfx.c: Cosmetics.

2019-09-09  Matti Hamalainen <ccr@tnsp.org>

	* tools/lib64gfx.h: Change separate booleans in DMC64Sprite to a
	  single flags field and define flags in enum.
	* tools/lib64gfx.h: Clean up some constants.

2019-09-04  Matti Hamalainen <ccr@tnsp.org>

	* tools/lib64gfx.h: Add argument names to prototypes.

2019-09-03  Matti Hamalainen <ccr@tnsp.org>

	* tools/lib64gfx.c tools/lib64gfx.h: Constify.
	* tools/lib64gfx.h: Cosmetic.
	* tools/lib64gfx.c tools/lib64gfx.h: Rename DMC64EncDecOp::offs2
	  to blkoffs.
	* tools/packed.c: Cosmetics.
	* src/dmpack.h: Remove __packed__ attribute from DMPackFile as it
	  is not really needed.
	* tools/lib64gfx.h: Indentation cosmetic.
	* tools/lib64gfx.h: Comment adjustments.

2019-08-27  Matti Hamalainen <ccr@tnsp.org>

	* tools/lib64gfx.h: Comment adjustments.

2019-08-12  Matti Hamalainen <ccr@tnsp.org>

	* Makefile.gen: Use $(MKDIR_P) instead of "mkdir -p".

2019-07-10  Matti Hamalainen <ccr@tnsp.org>

	* tools/lib64fmts.c tools/lib64gfx.h tools/lib64util.c: Add format
	  flag for formats that use sprite layer.

2019-07-09  Matti Hamalainen <ccr@tnsp.org>

	* tools/lib64fmts.c: Clean up some code duplication.
	* tools/lib64gfx.c: Use dmMemset().
	* tools/lib64fmts.c: Change ECI Graphic Editor 1.0 (packed)
	  extension from "ecp" to "ecip".
	* tools/libgfx.c tools/libgfx.h: Bump copyright.
	* tools/lib64gfx.h: Comments.
	* tools/lib64fmts.c: Add support for Dolphins FLI Editor v3.2
	  (unpacked), which is exactly(?) same as BlackMail FLI unpacked
	  format except for slightly larger size.
	* tools/lib64fmts.c: Cosmetics.

2019-07-08  Matti Hamalainen <ccr@tnsp.org>

	* tools/lib64fmts.c tools/lib64gfx.h: Clean up some code
	  duplication.
	* tools/ppl.c: Cleanup.
	* src/dmpack.c: Improve error messaging for invalid PACK file
	  entries.
	* config.mak.in minijss/jloadjss.c minijss/jssmod.h
	  tools/xm2jss.c: Implement new (horizontal raw element) pattern
	  storage mode for JSSMOD. Bump JSSMOD format version.
	* tools/lib64fmts.c: Cosmetic.
	* tools/lib64fmts.c: Comment the necessity of
	  fmtProbeGigapaintHires()..

2019-07-04  Matti Hamalainen <ccr@tnsp.org>

	* tools/lib64fmts.c: Minor improvements to Flinterlazer support.
	* tools/lib64fmts.c: Add initial (broken) read support for
	  Flinterlazer 1.0 images.
	* src/dmgrowbuf.c src/dmgrowbuf.h: Add new DMGrowBuf helper
	  functions dmGrowBufCopyOffsSize() and
	  dmGrowBufConstCopyOffsSize().
	* src/dmgrowbuf.c src/dmgrowbuf.h: Bump copyright.
	* src/dmgrowbuf.c src/dmgrowbuf.h: Constify.

2019-07-03  Matti Hamalainen <ccr@tnsp.org>

	* tools/gfxconv.c: Show error code message when bitmap image
	  conversion fails.
	* tools/lib64fmts.c: Cleanups.
	* tools/libgfx.h: Add read/write RAW palette function prototypes
	  to public header.
	* tools/gfxconv.c: Comment.
	* tools/fanalyze.c: Always print out grep value list.

2019-06-27  Matti Hamalainen <ccr@tnsp.org>

	* src/dmperlin.c: Cleanup.

2019-06-26  Matti Hamalainen <ccr@tnsp.org>

	* Makefile.gen: Optimize internal module build depencies a bit.

2019-06-20  Matti Hamalainen <ccr@tnsp.org>

	* tools/lib64fmts.c: Add write support for Marq's PETSCII editor
	  PRG export format.
	* tools/data2inc.c: Add extra formatting to C and ASM outputs.

2019-06-18  Matti Hamalainen <ccr@tnsp.org>

	* tools/fanalyze.c: Remove comment.
	* tools/ppl.c: Bump copyright.
	* tools/xm2jss.c: Fix conversion of unoptimized modules in xm2jss.
	* minijss/jssmod.c: Initialize JSSPattern::used[] values to TRUE.
	* tools/xm2jss.c: Bump xm2jss version.
	* minijss/jloadjss.c minijss/jssmod.c minijss/jssmod.h
	  tools/xm2jss.c: Bump copyright years.
	* minijss/jloadjss.c minijss/jssmod.c minijss/jssmod.h
	  tools/xm2jss.c: Implement empty channel removal in xm2jss and
	  make JSSMOD format support channel remapping for this.
	* tools/xm2jss.c: Rename two functions.
	* Makefile.gen: Slightly improve MiniJSS build depencies.
	* tools/ppl.c: Add CLI-only mode to PPL (-C option).

2019-06-17  Matti Hamalainen <ccr@tnsp.org>

	* tools/fanalyze.c: Add a progress indicator when "slow" matching
	  is expected.
	* tools/fanalyze.c: Add a slowness warning (the threshold value
	  will probably need adjusting.)
	* tools/fanalyze.c: Bail out from the matching search if we exceed
	  the match limits.
	* tools/fanalyze.c: Fix matched area end offset display.
	* tools/fanalyze.c: More fixes to the matching sequence search
	  functionality.
	* tools/fanalyze.c: Cleanups.
	* tools/fanalyze.c: Add constant define for maximum number of
	  variants.
	* tools/fanalyze.c: Add 'beta' level feature to fanalyze, for
	  finding matching byte sequences of minimum specified length from
	  input files.
	* tools/lib64gfx.h: Add constants for "full" C64 screen
	  dimensions, including the border regions. These are for future
	  support of fullscreen image formats.
	* tools/64vw.c tools/gfxconv.c tools/lib64fmts.c tools/lib64gfx.c
	  tools/lib64gfx.h tools/lib64util.c: Refactor how the image
	  "mode/type" is handled. It is still not perfect for our
	  purposes, but better now.
	* tools/lib64util.c: Add helper function dmC64ImageDumpLine() for
	  printing information out in dmC64ImageDump() and use it.
	* tools/lib64util.c tools/lib64util.h: Rename variables.
	* src/dmres.c: The return value of dmResourceRef() and
	  dmResourceUnref() had a possibility of being off by one due to a
	  potential race condition. Fixed.
	* src/dmres.c: Cosmetics.
	* src/dmres.c: Do closedir() in dmResourcesLoadDirectory(), even
	  when under Win32.
	* tools/fontconv.c: Cleanups.

2019-06-16  Matti Hamalainen <ccr@tnsp.org>

	* tools/mod2wav.c: Cleanups.
	* tools/libgfx.c: Check image dimensions when loading
	  PPM/PNG/PCX/IFF images.

2019-06-15  Matti Hamalainen <ccr@tnsp.org>

	* tools/gfxconv.c: Rename a variable.
	* Makefile.gen: More cross-build fixing ..
	* Makefile.gen: Fix Windows cross-building.
	* Makefile.gen: Improve build process and depencies robustness.
	* Makefile.gen: Fix build due to data2inc option changes.
	* tools/data2inc.c: Oops, we had two '-n' short options. Change
	  the line items one to '-l'.
	* tools/data2inc.c: Change struct member name.
	* tools/fanalyze.c: Cosmetic.
	* tools/64vw.c tools/fanalyze.c tools/gentab.c: Cleanup.
	* tools/lib64util.c: Constify.
	* tools/data2inc.c: Refactor data2inc to be more flexible.
	* tools/lib64util.c: Mention support for external palette files in
	  palette help, and also list the supported palette file formats.
	* tools/lib64util.c: Move function to better place in the file.
	* tools/64vw.c: Make it clear that 64vw accepts multiple files as
	  argument.
	* tools/64vw.c tools/gfxconv.c tools/lib64util.c
	  tools/lib64util.h: Move listing of C64 formats function to
	  argShowC64Formats in lib64util.
	* tools/lib64util.h: Cosmetics.
	* tools/lib64util.c: Add FILE argument to argShowC64PaletteHelp().
	* tools/lib64gfx.h: Change DMC64Image::extraInfo[] type from Uint8
	  to int.
	* tools/64vw.c tools/lib64fmts.c tools/lib64gfx.c tools/lib64gfx.h
	  tools/lib64util.c: Change again how the interlace type
	  information is stored. Now store it in DMC64Image::extraInfo[]
	  where it actually makes sense. Also add index for FLI type.
	* tools/gfxconv.c: s/nbanks/nblocks/g
	* tools/64vw.c tools/gfxconv.c: Show the default chargen/character
	  ROM file path in help.
	* tools/64vw.c: Remove accidentally committed unused code.
	* tools/fanalyze.c: Improve help, cosmetics.
	* tools/64vw.c: Rename a function.

2019-06-14  Matti Hamalainen <ccr@tnsp.org>

	* tools/fanalyze.c: Bump copyright and version.
	* tools/64vw.c: Trailing whitespace cosmetic.
	* tools/gfxconv.c: Initialize variable.
	* tools/fanalyze.c: Make the offset mode (-o) also support lists
	  of offsets. Also improve the readability of the output.
	* tools/fanalyze.c: Variables -> struct cleanup.
	* src/dmfile.c: Remove unnecessary error message.
	* tools/gfxconv.c: Add output format for "dumping" c64 bitmap
	  image structs data into separate file(s) per data block.
	* tools/fanalyze.c: Add functionality for grepping multiple
	  consecutive values (8/16/32 le/be) and also wildcard values
	  specified with '?'.
	* tools/64vw.c tools/lib64fmts.c tools/lib64gfx.c
	  tools/lib64gfx.h: Make color interlace type generate a mixed
	  palette instead of using special decode functions for it.
	* tools/64vw.c tools/gfxconv.c tools/lib64gfx.c tools/lib64gfx.h:
	  Remove useless DMC64ImageFormat parameter from some conversion
	  functions.
	* tools/lib64fmts.c tools/lib64gfx.h: Add & 15 to deeper helper
	  functions and remove it from unnecessary places.
	* tools/libgfx.h: Add some comments.
	* tools/libgfx.c: Set PCX header palette information correctly for
	  grayscale data images.
	* tools/libgfx.c: Cleanups.
	* tools/lib64util.h: Cosmetics.
	* tools/gfxconv.c: Improve colormap (-m) option help a bit.
	* tools/gfxconv.c: Oops, 10L in previous commit.
	* tools/gfxconv.c: Check for minimum number of colors in a
	  external palette file.
	* tools/gfxconv.c: Rename variable.
	* tools/64vw.c: Check for minimum number of colors in external
	  palette.
	* tools/libgfx.c: Force non-planar for PPM output.
	* tools/libgfx.c: Silence a unused function argument warning.
	* tools/lib64util.c: Check for non-existing palette when reading
	  palette from image file.
	* tools/libgfx.c tools/libgfx.h: Add support for 'raw' 768 byte
	  palette files.
	* tools/64vw.c tools/gfxconv.c tools/lib64fmts.c tools/lib64gfx.c
	  tools/lib64gfx.h tools/lib64util.c tools/lib64util.h
	  tools/libgfx.c: Revamp the palette handling in lib64gfx
	  somewhat, add helper functions to lib64util for handling
	  external palette file options and add support for specifying one
	  of the "internal" palettes or external (.act) palette file to
	  gfxconv and 64vw.
	* tools/libgfx.c tools/libgfx.h: Add functionality for separate
	  palette file handling, reading, writing and probing similarly to
	  image formats. For now, we only support ".ACT" palettes.
	* tools/lib64gfx.c tools/lib64gfx.h: Add
	  dmC64PaletteFromC64Palette(), used by dmC64SetImagePalette().
	* tools/lib64gfx.h: Cleanup.
	* Makefile.gen tools/64vw.c tools/gfxconv.c tools/lib64gfx.c
	  tools/lib64gfx.h tools/lib64util.c tools/lib64util.h: Add new
	  module "lib64util", and move some functions there from lib64gfx
	  that do not strictly belong.
	* tools/lib64gfx.c tools/lib64gfx.h: Add description field to
	  DMC64Palette.
	* tools/64vw.c tools/libgfx.c tools/libgfx.h: Comments and
	  cosmetics.
	* tools/64vw.c tools/gfxconv.c tools/lib64fmts.c tools/lib64gfx.c
	  tools/lib64gfx.h: Improvements to the lib64gfx palette handling.
	* tools/64vw.c tools/gfxconv.c tools/lib64gfx.c tools/lib64gfx.h:
	  Replace dmC64InitializeFormats() with dmLib64GFXInit() and
	  dmLib64GFXClose(). Add in sorting of the C64 formats list.

2019-06-13  Matti Hamalainen <ccr@tnsp.org>

	* tools/64vw.c: Rename variable.
	* tools/gfxconv.c: Replace label 'error' with 'exit'.
	* tools/lib64fmts.c: Enable write support for Crest Super Hires
	  FLI unpacked format (only unpacked/packed of this same to
	  unpacked is supported really.)
	* tools/lib64fmts.c tools/lib64gfx.c tools/lib64gfx.h: Add new
	  "flags" field to DMC64EncDecOp, defined by DF_* that can be used
	  to specify additional control over the operator blocks.
	* tools/lib64fmts.c: Cleanup Crest SHFLI decoding and use specific
	  constants better.
	* tools/lib64gfx.c: Clean up useless break statements.
	* tools/lib64fmts.c: Cosmetic.
	* tools/lib64fmts.c: Add protective parenthesis in macro argument.
	* tools/lib64fmts.c: Cosmetics.
	* tools/lib64fmts.c: Fix a const discard issue.
	* tools/lib64fmts.c: Add read support for packed version of Crest
	  Super Hires FLI format.
	* tools/lib64fmts.c: Cleanups.

2019-06-12  Matti Hamalainen <ccr@tnsp.org>

	* tools/lib64fmts.c: Improve Crest Super Hires FLI probing.
	* tools/lib64fmts.c: Simplify fmtDrazLaceGetLaceType() as the
	  buffer can't be NULL.
	* tools/lib64fmts.c: Make GunPaint v1.1 writing more accurate.
	* tools/64vw.c: Rename short option '-p' (probe only) to '-P'.
	* tools/64vw.c tools/data2inc.c tools/dumpmod.c tools/fontconv.c
	  tools/gentab.c tools/gfxconv.c tools/mod2wav.c tools/objlink.c
	  tools/packed.c tools/ppl.c tools/xm2jss.c: Change the error
	  message for unimplemented option argument.
	* tools/gfxconv.c: Wrong struct pointer variable used .. but
	  actually the same pointer, so no harm done. Fixed anyway.
	* tools/gfxconv.c: Oops, forgot these from previous commit.
	* tools/lib64gfx.c tools/lib64gfx.h:
	  s/D64_FMT_MASK/D64_FMT_MODE_MASK/g
	* tools/lib64gfx.c tools/lib64gfx.h: Rename DMC64Image::nbanks to
	  nblocks, which reflects better what it does. Also rename
	  dmC64ImageGetNumBanks() to *Blocks().
	* tools/lib64fmts.c: Default the Crest Super Hires FLI background
	  to 0x0F for the unused bottom area. Not sure if this is correct,
	  to be checked.
	* Makefile.gen: Improve some build depencies to be more reliable.
	* tools/lib64gfx.h: Reduce number of max enc/dec ops from 64 to
	  32, this reduces produced binary sizes by 100kB :P
	* tools/lib64gfx.c tools/lib64gfx.h: Change default C64 palette
	  system a bit, add two more palettes. These are not yet
	  selectable. TBD.

2019-06-11  Matti Hamalainen <ccr@tnsp.org>

	* tools/lib64fmts.c: Fix d020/d021 decoding in Unknown PETSCII
	  format.
	* tools/lib64fmts.c: Add read support for unknown PETSCII PRG
	  export format (could be earlier version from Marq's editor or
	  such.)
	* tools/lib64fmts.c tools/lib64gfx.c: Move the PETSCII getpixel
	  function to lib64gfx.c and remove the fmtGetGenericChar*()
	  helper functions that were not being used really.
	* tools/lib64gfx.c: Add helper function dmC64GetOpType() and use
	  it to display operator type name instead of just number.
	* tools/lib64fmts.c: Cleanups.
	* tools/lib64fmts.c: Rename "Crest Hires FLI Designer (unpacked)"
	  format short name to "chfd" from "chid".
	* tools/lib64fmts.c: Improve probing resiliency of Cosmos Designs
	  and ECI formats, and try to improve avoiding misprobes of other
	  formats as ECI packed.
	* tools/lib64fmts.c: Add probe function for Crest Super Hires FLI
	  Editor v1.0 (unpacked).
	* tools/lib64fmts.c: Clean up some variable and constant names.
	* tools/lib64fmts.c: Add read-only support for Crest Super Hires
	  FLI Editor v1.0 (unpacked) format.
	* tools/lib64fmts.c: Rename DEF_SCREEN_RAMS* macros to
	  DEF_REPEAT_BLOCK and add argument to set block type.
	* tools/lib64fmts.c: Rename some variables.

2019-06-10  Matti Hamalainen <ccr@tnsp.org>

	* tools/64vw.c: Change 64vw's short description.
	* tools/lib64fmts.c: Add support for one more Art Studio hires
	  variant.

2019-06-04  Matti Hamalainen <ccr@tnsp.org>

	* tools/gfxconv.c: Lower verbosity threshold the "Using ...
	  output" when converting to image.
	* tools/gfxconv.c: Show string 'bitmap' instead of NULL for c64
	  bitmap sources.
	* tools/gfxconv.c: Oops, display the real intended output pixfmt.
	* tools/gfxconv.c tools/lib64gfx.c tools/libgfx.c tools/libgfx.h:
	  Rename DM_COLFMT_* constants to DM_PIXFMT_* and the 'format'
	  field of DMImage and DMImageWriteSpec to 'pixfmt' to be more
	  precise about their meaning.
	* tools/gfxconv.c tools/libgfx.c tools/libgfx.h: Rename
	  DMImageConvSpec to DMImageWriteSpec to better reflec the
	  struct's purpose.
	* tools/gfxconv.c: Make PNG/PPM output a bit more sane with -P
	  option and grayscale data.
	* tools/libgfx.c: Add check to PNG and PPM output as well.
	* tools/libgfx.c: Fix IFF and PCX checks for non-indexed images.
	* tools/lib64fmts.c: Add in some fixups that the original CDHM
	  decoder does, although these seem to be unnecessary.
	* tools/lib64fmts.c: Few additional cleanups in the CDHM decoder,
	  and mark the format support as not-broken anymore.
	* tools/lib64fmts.c: Fix Cosmos Designs Hires Manager unpacker.
	  What a mess. Ugh.

2019-06-02  Matti Hamalainen <ccr@tnsp.org>

	* tools/lib64fmts.c: Cleanups.
	* tools/lib64gfx.h tools/libgfx.h: Clarifications in comments.
	* tools/lib64gfx.c: Fix format reporting.
	* tools/libgfx.h: Add some comments.
	* tools/libgfx.c: Write ARAW palette only if it exists.
	* tools/gfxconv.c: Fix bpp option description.
	* tools/gfxconv.c: Fix palette remapping.
	* tools/gfxconv.c: Possibly fix RAW output when clipping
	  nplanes/bpp.

2019-06-01  Matti Hamalainen <ccr@tnsp.org>

	* tools/lib64fmts.c: Add somewhat broken support for decoding
	  packed Cosmos Designs Hires Manager files. This format has a
	  particularly buggy RLE+literal encoder.
	* tools/lib64gfx.c: Allow NULL buffer argument(s) for
	  dmSetupRLEBuffers() and dmFinishRLEBuffers().

2019-05-29  Matti Hamalainen <ccr@tnsp.org>

	* tools/lib64fmts.c tools/lib64gfx.h: Improve and fix charmap
	  format decoding.
	* tools/lib64fmts.c: Some more work on charmap and PETSCII support.
	* tools/64vw.c tools/gfxconv.c: Use only long option for char ROM.
	* Makefile.gen: Clean up one build rule a bit.
	* tools/lib64fmts.c: Add initial (and incomplete) support for
	  petscii.krissz.hu PETSCII editor PRG export files.

2019-05-28  Matti Hamalainen <ccr@tnsp.org>

	* tools/lib64fmts.c: Improve Marq's PETSCII prg export support.
	* tools/lib64fmts.c: Cosmetic cleanups.
	* tools/lib64gfx.c tools/lib64gfx.h: Add char map helper functions
	  and use them.
	* tools/lib64gfx.c: Free previously allocated palette in the image
	  palette allocation functions if it is not a constpal.

2019-05-27  Matti Hamalainen <ccr@tnsp.org>

	* tools/lib64fmts.c: Add initial (and incomplete) support for
	  Marq's PETSCII editor PRG export format.
	* tools/lib64fmts.c tools/lib64gfx.h: Refactor c64 image rendering
	  completely to be more flexible.
	* tools/lib64gfx.c: Validate format index values better in
	  dmC64GetImageTypeString().
	* tools/lib64fmts.c: Fix ECI palette setting, return value of
	  dmSetMixedColorC64Palette() had changed from boolean to int, and
	  was not properly checked for DMERR_OK.
	* tools/64vw.c tools/gfxconv.c: Fix character ROM data handling.
	* tools/64vw.c tools/gfxconv.c tools/lib64fmts.c tools/lib64gfx.c
	  tools/lib64gfx.h: Rename various C64_* constants to D64_*.
	* tools/gfxconv.c: Simplistic conversion fixups.
	* tools/64vw.c tools/gfxconv.c: Add initial support to 64vw and
	  gfxconv for viewing and converting character map / mode (PETSCII
	  and custom charset stuff etc. basically.)
	* tools/lib64gfx.c: Add few out of bounds checks.
	* tools/lib64fmts.c tools/lib64gfx.c tools/lib64gfx.h: Rename the
	  "shift" variable/function argument used for bitshift of c64
	  bitmap/char pixels.

2019-05-26  Matti Hamalainen <ccr@tnsp.org>

	* tools/64vw.c tools/gfxconv.c tools/lib64fmts.c tools/lib64gfx.c
	  tools/lib64gfx.h: Bump copyright years.
	* tools/lib64gfx.h: Define a default DM_DEF_CHARGEN if not
	  #defined before.
	* tools/lib64gfx.c tools/lib64gfx.h: Change D64_FMT_* MASK
	  constants and how they are used.
	* tools/lib64gfx.c: Oops, wrong order of hires/mc/ecm strings in
	  dmC64GetImageTypeString() was left in the commit adding ECM
	  support. Fixed.
	* tools/lib64gfx.c tools/lib64gfx.h: Implement initial ECM support
	  in charmap decoding.
	* tools/lib64gfx.c: Some fixes in charmap to image decoding.
	* tools/lib64fmts.c tools/lib64gfx.c tools/lib64gfx.h: Return
	  actual error code from enc and dec functions instead of just
	  BOOL.
	* tools/lib64fmts.c tools/lib64gfx.c tools/lib64gfx.h: Change
	  decFunction() argument order in DMC64EncDecOp.

2019-05-25  Matti Hamalainen <ccr@tnsp.org>

	* tools/lib64fmts.c: Improve probing of packed and unpacked Koala
	  files. Many converters and tools produce differently sized
	  variants that were previously being mis-detected.
	* tools/64vw.c: Oops, missing printf argument.

2019-05-24  Matti Hamalainen <ccr@tnsp.org>

	* Makefile: Support DESTDIR for 'make install'.
	* tools/lib64gfx.c tools/lib64gfx.h: Add helper function
	  dmC64MemBlockAllocSubj().
	* tools/gfxconv.c tools/lib64gfx.c tools/lib64gfx.h: Change
	  dmC64GetOpMemBlock() function API.

2019-05-08  Matti Hamalainen <ccr@tnsp.org>

	* src/dmres.c: Silence a warning when building without PACKFS
	  support.
	* src/dmengine.h src/dmlib.h src/dmres.c src/dmsimple.c: Clean out
	  the resource path handling.

2019-04-29  Matti Hamalainen <ccr@tnsp.org>

	* tools/packed.c: Cleanups.
	* src/dmtext.h: Copy surface attributes in dmGetBMGlyph().

2019-04-03  Matti Hamalainen <ccr@tnsp.org>

	* tools/gfxconv.c: Improve help for spr/chr formats by listing the
	  :mc and :sc flags at their descriptions instead of -i option
	  help.

2019-03-07  Matti Hamalainen <ccr@tnsp.org>

	* tools/64vw.c tools/ppl.c: Backed out changeset dcca36701cdd

2019-03-06  Matti Hamalainen <ccr@tnsp.org>

	* tools/libgfx.c: Improve PPM/PGM/PNM probing and header parsing.

2019-03-05  Matti Hamalainen <ccr@tnsp.org>

	* tools/gfxconv.c tools/libgfx.c tools/libgfx.h: Add
	  dmGetNPlanesFromNColors() and use it.
	* tools/gfxconv.c: Fix nplanes and bpp in gfxconv.
	* tools/libgfx.c: Support grayscale output.
	* tools/gfxconv.c: Cleanups.
	* tools/libgfx.c: Improve PPM/PNM/PGM probing.
	* tools/libgfx.c tools/libgfx.h: Mark image format flags with the
	  color formats they support. This information is not yet used.
	* tools/64vw.c tools/gfxconv.c tools/lib64gfx.c tools/lib64gfx.h
	  tools/libgfx.c tools/libgfx.h: Revamp how the DMImage palette
	  system and color formats work, as preparation for future work on
	  supporting non-indexed/paletted images. It is still messy.

2019-02-28  Matti Hamalainen <ccr@tnsp.org>

	* tools/libgfx.c tools/libgfx.h: Some work on reading >8bpp images.
	* tools/libgfx.c tools/libgfx.h: Initial support for reading
	  PPM/PGM.
	* tools/libgfx.c: Cleanups.

2019-02-25  Matti Hamalainen <ccr@tnsp.org>

	* src/dmres.c: Use helper functions for resource lib mutex locking.

2019-02-19  Matti Hamalainen <ccr@tnsp.org>

	* tools/64vw.c tools/ppl.c: Cleanups.
	* Makefile.gen: Add verbose build support ('make V=1').

2019-01-14  Matti Hamalainen <ccr@tnsp.org>

	* COPYING README.txt src/dmlib.h: Bump copyright years.

2018-12-13  Matti Hamalainen <ccr@tnsp.org>

	* tools/libgfx.c tools/libgfx.h: Implement dmGetBits() to the
	  DMBitStreamContext API. Also improve error handling.

2018-12-11  Matti Hamalainen <ccr@tnsp.org>

	* tools/libgfx.c: Cosmetic.
	* tools/libgfx.c: Simplify dmPutBits() call in dmWriteRAWRow().
	* tools/libgfx.c: Return DMERR_OK where appropriate instead of 0.

2018-12-10  Matti Hamalainen <ccr@tnsp.org>

	* tools/libgfx.c: Fix plane buffer size calculation for IFF ACBM
	  to round up to nearest byte (minimum of 1).
	* tools/libgfx.c: Initialize the destination image data in case of
	  IFF ACBM loading.
	* tools/lib64fmts.c: Define macros DM_MEMCMP_SIZE() and
	  DM_MEMCMP_LEN() as helpers.
	* src/dmlib.h src/dmstring.c tools/gfxconv.c: Move
	  dm_strdup_fext() and dm_basefilename() to gfxconv, as they are
	  only used there.
	* tools/libgfx.c: Be more informative when attempting to figure
	  out broken PCX file.
	* tools/gfxconv.c: Make a note about '-R +remove' in help.
	* src/dmstring.c: Fix dm_strrcasecmp().
	* tools/fontconv.c: Improve fontconv '-s' option parsing.
	* tests/encbr1test.c: Fix a bunch of warnings.

2018-12-05  Matti Hamalainen <ccr@tnsp.org>

	* tools/64vw.c: Make space-key go to next image in addition to
	  arrow right/up.
	* tools/64vw.c: Canonicalize the 64vw window title in case of
	  non-supported files.
	* tools/libgfx.c: s/"lbm"/"ilbm"/
	* tools/gfxconv.c tools/libgfx.h: Cosmetics.
	* tools/libgfx.c: Fixes to ACBM support.
	* tools/libgfx.c tools/libgfx.h: Improve IFF probing.
	* tools/libgfx.c: Fix hardcoding in ACBM decoding.
	* tools/libgfx.h: Bump copyright.
	* tools/gfxconv.c tools/libgfx.c tools/libgfx.h: Refactor how
	  paletted/indexed formats are handled in libgfx.
	* tools/libgfx.c tools/libgfx.h: Separate ILBM and PBM subformats
	  of IFF images.
	* tools/libgfx.c: Improve IFF probing.

2018-12-04  Matti Hamalainen <ccr@tnsp.org>

	* tools/gfxconv.c: Improve scale factor option '-S' help.
	* tools/lib64gfx.c: Add some #ifdef'd out RLE (de)compression
	  debug prints.
	* tests/encbr1test.c: Add some disabled BR1 encoder test code.
	* tools/gfxconv.c: Improve gfxconv --help a bit.
	* tools/gfxconv.c: Implement support for the c64 format aspect
	  rations and automatic scaling.
	* tools/libgfx.c: Correct description of 'cdump' format.
	* tools/lib64fmts.c tools/lib64gfx.h: Add pixel aspect ratio
	  information for C64 formats. Not used yet.
	* tools/libgfx.c: Make two functions static and one not.
	* tools/libgfx.c: Remove unused struct member.

2018-12-03  Matti Hamalainen <ccr@tnsp.org>

	* tools/libgfx.c: Implement basic initial support for IFF ACBM
	  format images.
	* tools/gfxconv.c: Fix minor memory leaks in gfxconv.
	* tests/encbr1test.c: Changes to the BR1 encoder test.
	* tools/libgfx.c: Fixes to the ByteRun1 encoder. Could use some
	  cleanups now, tho.
	* tools/libgfx.c: Improve the cdump output format support of
	  gfxconv. Also add some error handling.
	* tools/libgfx.c tools/libgfx.h: Add 'cdump' image output format,
	  mainly for debugging purposes.
	* tests/blittest.c tests/fptest.c tests/plrtest.c
	  tests/vecmattest.c: Cosmetics.

2018-11-30  Matti Hamalainen <ccr@tnsp.org>

	* tools/fanalyze.c: Implement controllable decimal/hexadecimal
	  formatting for offset display mode.
	* Makefile.gen: Add commented out line to build.
	* src/dmengine.h src/dmsimple.c: Initial dabbling for SDL2
	  migration of the SW rendering / dmsimple.
	* tools/fanalyze.c: Cleanups.
	* tools/fanalyze.c: Fix uninitialized value warnings (not possible
	  in practice, but gcc moans anyway.)
	* tools/fanalyze.c: Fix integer overflows vs. shifts.
	* tests/encbr1test.c: Fix MinGW build of encbr1test.
	* src/dmblitfunc.h: Use __asm__() instead of "GCC-specific" asm()
	  for inline assembly.

2018-11-29  Matti Hamalainen <ccr@tnsp.org>

	* tools/packed.c: Improve 'packed' help.
	* tools/packed.c: Fix 'packed' help.
	* tools/fanalyze.c: Bump version.
	* tools/fanalyze.c: Implement offset dump mode in fanalyze.

2018-11-27  Matti Hamalainen <ccr@tnsp.org>

	* tools/lib64fmts.c: Indentation.
	* tools/fanalyze.c: Bump fanalyze version.

2018-11-08  Matti Hamalainen <ccr@tnsp.org>

	* README.txt tools/gfxconv.c: Update documentation etc.
	* tools/gfxconv.c: Rename '-c' colorindex map short option to '-m'.

2018-11-27  Matti Hamalainen <ccr@tnsp.org>

	* tools/fanalyze.c: Implemement simple binary grep functionality
	  in fanalyze.
	* src/dmlib.h src/dmstring.c: Add in several string helper
	  functions from th-libs.

2018-10-26  Matti Hamalainen <ccr@tnsp.org>

	* tools/libgfx.c: Force 8 bitplanes for IFF PBM images.
	* tools/libgfx.c: Make a internal copy of the const
	  DMImageConvSpec in dmWriteIFFImage().

2018-10-25  Matti Hamalainen <ccr@tnsp.org>

	* Makefile.gen tests/encbr1test.c: Add a test program for BR1
	  compression.
	* tools/libgfx.c: Be more informative about the actual sub-format
	  of the IFF image (PBM/ILBM).
	* tools/gfxconv.c tools/libgfx.c: Add option -C for controlling
	  output file compression (PNG and IFF for now) in gfxconv.
	* tools/gfxconv.c: Calculate number of required bitplanes more
	  correctly.
	* tools/libgfx.c: Fix IFF chunk padding.
	* tools/libgfx.c: Check for NULL pointer.

2018-09-06  Matti Hamalainen <ccr@tnsp.org>

	* tools/lib64fmts.c: Adjust a comment.
	* tools/ppl.c: Rename variable s/engine/eng/g to avoid aliasing
	  with dmsimple::engine. This enables us to build with link-time
	  optimizations -flto if so desired.

2018-08-31  Matti Hamalainen <ccr@tnsp.org>

	* tools/libgfx.c: Cleanup.

2018-08-29  Matti Hamalainen <ccr@tnsp.org>

	* tools/lib64fmts.c: Improve unpacked Koala Painter format support
	  for variants that have a non-standard loading address by
	  implementing variant probing.
	* tools/lib64fmts.c: Fix FBI FLI Designer format names to match
	  v1.x and v2.

2018-08-06  Matti Hamalainen <ccr@tnsp.org>

	* src/dmengine.h src/dmtimelinew.c: Fix some warnings in regards
	  to strncpy().

2018-07-23  Matti Hamalainen <ccr@tnsp.org>

	* tools/objlink.c: Fix displayed output crop length.

2018-07-08  Matti Hamalainen <ccr@tnsp.org>

	* tools/fanalyze.c: Fix use of qsort().

2018-07-07  Matti Hamalainen <ccr@tnsp.org>

	* tools/gfxconv.c: Improve input skip option messages.
	* src/dmlib.c: Oops, fix hexadecimal value parsing.
	* Makefile.gen: Silence the rules using fontconv and data2inc.
	* tools/fontconv.c: Lessen the default verbosity level of fontconv.
	* tools/gfxconv.c: Document the negative input skip in -s option
	  help.
	* tools/gfxconv.c: Implement negative input data skip values for
	  gfxconv -s option. A negative value will start from end of the
	  input.
	* src/dmlib.c src/dmlib.h tests/dzlibtest.c tools/gfxconv.c
	  tools/objlink.c tools/packed.c: Improve dmGetIntVal() to accept
	  an optional negative value boolean flag pointer. Also improve
	  error handling in it.

2018-07-03  Matti Hamalainen <ccr@tnsp.org>

	* Makefile.gen: Add certain built files to TARGETS, so that they
	  get deleted via 'make clean'.
	* minijss/jssmod.h: Remove useless __packed__ attributes.
	* tools/xm2jss.c: Increase pattern buffer size.
	* Makefile.gen: Improve build system slightly.

2018-07-02  Matti Hamalainen <ccr@tnsp.org>

	* tools/64vw.c: Only show error message if the error is other than
	  "not supported".
	* tools/64vw.c: Improve error message for not being able to decode
	  the file.
	* minijss/jssmod.c: Fix a stupid bug left over from the sample
	  conversion refactor.
	* tools/fanalyze.c: Add more analyzing.

2018-07-01  Matti Hamalainen <ccr@tnsp.org>

	* tools/fanalyze.c: Silence an unused function argument warning.
	* Makefile.gen: Clean up the build process a bit.
	* src/dmtimeline.c: Silence some unused function argument warnings.
	* Makefile.gen: Rename some Makefile variables.
	* Makefile.gen: Backed out changeset 1054396a7d53
	* Makefile.gen config.mak.in: Remove dead bits from build system.
	* Makefile.gen: Fix PPL cross-build.
	* Makefile.gen: Add build dependency to object file directory.
	* Makefile.gen: Back out a previous change.
	* Makefile.gen: Backed out changeset 096046214869
	* tools/lib64fmts.c: Allow saving of Micro Illustrator format, but
	  mark it "broken" again due to the unknown state of background
	  color.
	* tools/lib64fmts.c tools/lib64gfx.c tools/lib64gfx.h: Change
	  encode and decode function format parameter type from
	  DMC64ImageFormat to DMC64ImageCommonFormat.
	* tools/lib64fmts.c: Rename "MIL" to "Micro Illustrator" and
	  improve probing of that format, at least based on the few
	  samples I have.
	* tools/lib64fmts.c: Use DO_SET_MEM_LO where appropriate.
	* tools/lib64gfx.c: Add d020/d021 bgcolor to dmC64ImageDump()
	  printout.
	* tools/lib64fmts.c: Confirm the Blazing Paddles d020/bgcolor
	  positions and remove the broken flag.
	* tools/lib64fmts.c: Add support for Face Painter format
	  (unpacked).
	* tests/dzlibtest.c: If compressing, use zlib.
	* tests/dzlibtest.c tools/packed.c: Increase the zlib compression
	  buffer size to 1MB to improve the efficiency.
	* tools/fontconv.c: Use font general width/height for glyphs when
	  generating from TrueType font, at least until I can figure out a
	  working method to use metrics.
	* tools/xm2jss.c: Fix writing of JSSMOD for NULL extended
	  instruments.
	* minijss/jssmod.c: Return correct value from jssEncodeSample8().

2018-06-30  Matti Hamalainen <ccr@tnsp.org>

	* minijss/jssmod.c: Missed a line from previous commit.
	* minijss/jssmod.c minijss/jssmod.h tools/xm2jss.c: Clean up the
	  sample conversion code a bit. Improve error handling in xm2jss.
	* tools/ppl.c: Set the PPL font palette to be more appropriate.
	* tools/ppl.c: Adjust default volume to be a bit lower.
	* tools/ppl.c: Adjust PPL info text drawing.
	* tools/fontconv.c: Only check glyphs that will be saved.
	* tools/fontconv.c: Fix glyph index saving .. sigh.
	* src/dmtext_bm.c: Use dmSetBitmapFontPalette().
	* tools/fontconv.c: Fix font glyph counting.
	* assets/SetupFont.fnt: Add one missing glyph to the setup font.
	* assets/SetupFont.dmf: Remove generated file.
	* tools/ppl.c: If pattern has less channels than what fits on the
	  screen, and active channels is last channel, a bug occurs. Fixed.
	* Makefile.gen: Add some build depencies.
	* tools/fontconv.c: Some dead code was accidentally left in.
	  Delete it.
	* src/setupfont.h src/setupimage.h src/setupmenubar.h: Remove
	  generated files.
	* assets/SetupFont.dmf src/setupfont.h: New font system requires
	  new font data. The DMFONT format was changed a bit.
	* src/dmtext.h src/dmtext_bm.c tools/fontconv.c tools/libgutil.c:
	  Revamp the bitmap font system to use single SDL_Surface for the
	  font graphics instead of N surfaces for each separate glyph.
	* tools/ppl.c: Use font height instead of hardcoded values.
	* Makefile.gen: Improve build by making PPL depend on the
	  generated font data. The dependency is a bit ugly though.
	* Makefile.gen: Remove dmwav from build.
	* src/dmwav.c src/dmwav.h tools/mod2wav.c: Move WAV stuff back
	  into mod2wav.c, made no sense to have it elsewhere.
	* src/dmtext_ttf.c: Constify more.
	* src/dmtext_bm.c: Add more error checking.
	* src/dmtext.h src/dmtext_bm.c: Constify.

2018-06-29  Matti Hamalainen <ccr@tnsp.org>

	* tools/lib64gfx.c: Return DMERR_NOT_SUPPORTED from
	  dmC64ConvertGenericImage2BMP() as it does not do anything yet.
	* tools/libgfx.c: Check that we have a CMAP/palette for IFF images
	  that should have it.
	* tools/64vw.c tools/gfxconv.c tools/lib64gfx.c tools/lib64gfx.h:
	  Architectural change: remove some duplicated variables from
	  DMC64Image structure and replace them with a pointer to
	  DMC64ImageCommonFormat.
	* tools/lib64fmts.c: Add a comment.
	* tools/libgfx.c: Better fix for the PNG reader memory leak.
	* tools/lib64gfx.c: Cleanup.
	* src/dmres.c: Oooops .. fix a memory leak in dmvfprintf() :S That
	  was a bad one.
	* tools/libgfx.c: Do not reference uninitialized value in IFF
	  writer, although in this case it is harmless as the garbage
	  value is overwritten later.
	* tools/lib64fmts.c: Cosmetic.
	* tools/libgfx.c: Initialize two variables to zero, as valgrind
	  complains about them despite that we assume that libPNG should
	  initialize them .. ah well.
	* tools/libgfx.c: Cleanup.
	* tools/libgfx.c: Fix two memory leaks in the PNG writer/reader of
	  libgfx.
	* src/dmres.c: Fix a silly memory leak in stdio support of
	  DMResource, also fix a related double-free issue caused by the
	  first change.

2018-06-28  Matti Hamalainen <ccr@tnsp.org>

	* README.txt: Cleanup the README.
	* tools/lib64gfx.h: Cosmetics, add comments.
	* tools/lib64gfx.h: Cleanups.
	* tools/gfxconv.c tools/lib64gfx.c tools/lib64gfx.h: Change
	  DMC64ImageFormat parameter of dmC64GetSubjectSize() and
	  dmC64GetOpSubjectSize() to DMC64ImageCommonFormat.
	* tools/lib64gfx.h: The sprites sub-structure is not yet used, so
	  comment it out.
	* tools/64vw.c tools/gfxconv.c tools/lib64fmts.c tools/lib64gfx.c
	  tools/lib64gfx.h: "Enable" the image->c64 bitmap conversion path
	  in gfxconv. It does not work without the necessary bits
	  elsewhere, though. Also add DMC64ImageConvSpec structure for
	  delivering conversion parameters, though it is not yet used
	  either.
	* tools/lib64fmts.c: Default to D64_ILACE_RES if the given buffer
	  is NULL in fmtDrazLaceGetLaceType().
	* tools/gfxconv.c: Only copy memory blocks that do not already
	  exist in destination.
	* tools/gfxconv.c: Constify.
	* tools/lib64gfx.c: Cleanup.
	* tools/lib64gfx.c: Add some operators case handlers.
	* tools/lib64gfx.c: Add support for DO_SET_MEM_LO and
	  DO_SET_MEM_HI for blocks in dmC64DecodeGenericBMP().
	* tools/lib64gfx.c: Add some default-case error handling.
	* tools/lib64gfx.c tools/lib64gfx.h: Remove mostly unused
	  DM_GET_ADDR_{LO,HI} macros.
	* tools/lib64fmts.c tools/lib64gfx.c tools/lib64gfx.h: Remove the
	  useless distinction of DO_ENC_FUNC and DO_DEC_FUNC, as the
	  function pointers are separate anyway. Thus we now only have
	  DO_FUNC.

2018-06-27  Matti Hamalainen <ccr@tnsp.org>

	* tools/libgfx.c tools/libgfx.h: Cosmetics.
	* tools/libgfx.c: Define variable at start of block.
	* tools/lib64gfx.c: Cleanups.
	* tools/lib64gfx.c: Fix a silly bug in the generic c64 bitmap
	  encoder.
	* tools/lib64gfx.c: Cleanup.
	* tools/gfxconv.c tools/lib64gfx.c tools/lib64gfx.h: Split
	  dmC64GetOpSize() to dmC64GetSubjectSize() and
	  dmC64GetOpSubjectSize().
	* tools/lib64fmts.c: Add support for Gigapaint hires (unpacked)
	  format.
	* tools/gfxconv.c: Clarify gfxconv help.
	* README.txt: Update gfxconv documentation, and fix the various
	  mistakes and obsolete information that has crept in.
	* tools/lib64fmts.c: Implement write support for ECI Graphic
	  Editor 1.0 packed format.

2018-06-26  Matti Hamalainen <ccr@tnsp.org>

	* tools/gfxconv.c: Do not force output type to FFMT_ASCII if
	  format is set on commandline.
	* tools/gfxconv.c: Bump gfxconv version.
	* tools/gfxconv.c: Rename several variables to lessen the
	  confusion about input/output "format" and "subformat" by using
	  the more proper terms "type" and "format".
	* tools/libgfx.c: Fix certain corner case in IFF ByteRun1 encoder.
	* tools/libgfx.c: Add some more informative messages in IFF loader.
	* tools/libgfx.c: Use a consistent message between IFF encoding
	  and decoding.
	* tools/libgfx.c: Don't use signed arithmatic in IFF ByteRun1
	  decoder.
	* tools/libgfx.c: Cleanup IFF writer a bit.
	* tools/libgfx.c: Cleanups.
	* tools/libgfx.c: Cleanups.
	* tools/libgfx.c: Fix uneven chunk size handling in IFF reader.
	* tools/libgfx.c: Fix IFF chunk padding.
	* tools/libgfx.c: Cleanups.
	* tools/libgfx.c: Fix planar IFF ILBM writing.
	* tools/gfxconv.c: Fix IFF number of planes checking.
	* tools/gfxconv.c tools/libgfx.c tools/libgfx.h: Work begins on
	  IFF ILBM/PBM image writer. It is pretty broken, some things will
	  not work and some things are hardcoded. The ByteRun1 compression
	  implementation is somewhat inefficient. Interleaved files do not
	  work yet.
	* tools/libgfx.c: Clean up the IFF reader and make it more robust.
	* tools/libgfx.c: Bump copyright year.
	* tools/gfxconv.c: Use format name instead of file extension in a
	  message.

2018-06-25  Matti Hamalainen <ccr@tnsp.org>

	* tools/libgfx.c tools/libgfx.h: Rename ILBM functions to IFF,
	  which is more approriate as we support both ILBM and PBM
	  variants of the IFF images.
	* tools/gfxconv.c: Cleanups.
	* tools/gfxconv.c: Oops, fix a blunder left in the refactored
	  scale option parsing.
	* tools/gfxconv.c: Improve option argument parsing.
	* tools/gfxconv.c: Improve some gfxconv commanline option parsing.
	* tools/libgfx.c: Return DMERR_OK instead of dmferror(fp)
	  dmWriteIFFMasterRAWHeader().
	* tools/gfxconv.c tools/libgfx.c tools/libgfx.h: Remove the stdio
	  FILE support from libgfx API, now only DMResource is supported.
	* src/dmres.c src/dmres.h: Implement resource helper functions
	  dmfprintf() and dmvfprintf().
	* src/dmlib.h src/dmstring.c: Implement
	  dm_strdup_vprintf_len(const char *fmt, va_list args, int *len),
	  which returns length of the generated string in int pointer *len.
	* src/dmres.c: Fix dmfputs(), it was writing the end NUL byte of
	  given string.
	* src/dmlib.h: Cleanup.
	* Makefile.gen src/dmres.h src/dmresw.c src/dmresw.h
	  src/dmtimelinew.c tools/fontconv.c tools/libgfx.c: Move dmresw
	  function declarations to dmres.h
	* tools/lib64fmts.c: Cleanup.
	* tools/lib64fmts.c: Allow writing of "Crest Hires FLI Designer
	  (unpacked)" and "Cosmos Designs Hires Manager (unpacked)"
	  formats.
	* tools/lib64fmts.c: Use only 4 lowest bits from HCB background
	  color data.
	* tools/lib64fmts.c: Some fixes to HCB support, now the background
	  colors are supported correctly.

2018-06-24  Matti Hamalainen <ccr@tnsp.org>

	* tools/lib64fmts.c: Implement read-only support for HCB (Half
	  Char Bitmap) format.
	* tools/lib64gfx.c: Cleanup.
	* tools/gfxconv.c: Cleanups.
	* tools/gfxconv.c: Clarify gfxconv help.
	* tools/libgfx.c: Actually fix also the ARAW/RAW image data
	  writing to honor the scaling.
	* tools/gfxconv.c: Fix scaling option for RAW/ARAW output.
	* tools/gfxconv.c: Add check for writability in output format
	  option -f
	* tools/gfxconv.c: Improve input/output format probe/forcing and
	  related messages.
	* README.txt: Update gfxconv usage examples.
	* tools/gfxconv.c: Make output format -f option symmetric with the
	  -i input format option.
	* tools/gfxconv.c: Add a comment about the imperfection of ANSI
	  color output.
	* tools/gfxconv.c: Improve color map and ANSI output support.
	* tools/gfxconv.c: Remove multicolor option flag -m, as it can be
	  specified with input format option -i flags (mc|sc).
	* tools/gfxconv.c: Make input format -i option saner and more
	  uniform with output format option -f
	* tools/gfxconv.c: Improve skip option (-s) description.
	* tools/lib64fmts.c: Update a comment.
	* tools/lib64fmts.c: Some work on Pentel Paint sprite layer
	  support. Does not work very well yet.
	* tools/gfxconv.c tools/lib64gfx.h: Rename various C64 sprite /
	  character constants.
	* tools/lib64gfx.c: Only check operator size for DO_COPY operators
	  against source size.
	* tools/lib64fmts.c: Fix Pu-239 BFLI / BigFLI support.
	* tools/lib64fmts.c: Allow override of block size in
	  DEF_SCREEN_RAMS_8() and DEF_SCREEN_RAM() macros.

2018-06-23  Matti Hamalainen <ccr@tnsp.org>

	* tools/lib64fmts.c: Adjust the minimum byte run RLE counts from 3
	  to 4.
	* tools/lib64fmts.c: Fix Fun Paint 2 raster colours.

2018-06-22  Matti Hamalainen <ccr@tnsp.org>

	* tools/lib64gfx.c: Improve error messaging in generic c64 image
	  encode/decode.
	* tools/gfxconv.c tools/lib64gfx.c tools/lib64gfx.h: Split
	  dmC64GetOpMemBlockAndName() into dmC64GetOpMemBlock() and
	  dmC64GetOpSubjectName() functions for some flexibility.
	* tools/lib64gfx.c: Reallocate buffer only if the new size is
	  larger in dmC64MemBlockReAlloc().
	* tools/lib64fmts.c: Backed out changeset 914dbb50139f
	* tools/lib64fmts.c: Rename "FunPaint II" to "Fun Painter II" as
	  it should be.
	* tools/lib64fmts.c: Fix encoding of GunPaint format by placing
	  the magic ID in correct position.
	* tools/lib64fmts.c: Using the newly introduced data block offset
	  feature, unify the handling of Fun Paint 2 and GunPaint formats
	  somewhat.
	* tools/lib64fmts.c tools/lib64gfx.c tools/lib64gfx.h: Implement
	  data block offset in certain DMC64EncDecOps. This allows us to
	  combine and separate data from multiple sources/destinations
	  into one data block.
	* tools/lib64fmts.c: Improve GunPaint format probing.
	* tools/lib64fmts.c: Fix GunPaint format rendering.
	* tools/gfxconv.c: Add C64 image format info dumps for verbosity
	  level 2 when converting.
	* tools/gfxconv.c: Improve C64 bitmap conversion messages.
	* tools/lib64fmts.c: Attempt to avoid misprobes of "Rainbow
	  Painter (unpacked)" as packed Doodle files.
	* tools/lib64fmts.c: Implement support for packed variant of
	  Doodle format.
	* tools/lib64fmts.c: As the Koala Painter plain RLE compression
	  (without headers and static marker value) is used in various
	  others formats, make the functions generic.
	* tools/lib64fmts.c: Fix Fun Paint 2 packed variant writing, it
	  was missing one byte (the "is packed" flag).
	* tools/64vw.c: Bump copyright and version.
	* tools/gfxconv.c: Bump version.
	* tools/gfxconv.c: Bump copyright year.
	* tools/lib64fmts.c: Separate the format entries for "FBI Crew FLI
	  Designer 1.1" and "FLI Designer 2" and enable writing of those
	  formats.
	* tools/lib64gfx.c: Improve RLE compression by checking for "first
	  byte" condition in the compressor.
	* tools/lib64fmts.c: Implement write support for Black Mail FLI
	  Designer packed format.
	* src/dmgrowbuf.c tools/lib64gfx.c: Change the logic of how
	  DMGrowBuf works in "backwards" growing mode. Adjust the code
	  that uses this as well.
	* src/dmgrowbuf.c src/dmgrowbuf.h: Remove dmGrowBufUpdate() and
	  min/max_offs.
	* tools/gfxconv.c: Change the order and logic of how we do
	  upconversion fixups in dmConvertC64Bitmap(). This fixes some
	  issues in MC->FLI type conversions.
	* tools/lib64gfx.c: Use dmGrowBufPutU16LE() instead of two
	  dmGrowBufPutU8() to push the loading address into target buffer
	  in dmC64EncodeBMP().
	* tools/lib64gfx.c: Return NULL blk if specified bank is higher
	  than banks in the format in dmC64GetOpMemBlockAndName()
	* tools/lib64gfx.h: Make dmC64GetOpMemBlockAndName() a public
	  function.
	* tools/lib64gfx.h: Adjust DM_RLE_RUNS_MASK.
	* tools/lib64gfx.c: Improve error handling of dmC64MemBlockCopy().
	* tools/gfxconv.c: Improve C64 image format up/down conversion.
	  Might actually work for some formats now.
	* tools/64vw.c tools/lib64gfx.c tools/lib64gfx.h: Add indentation
	  parameter to dmC64ImageDump().
	* tools/lib64gfx.c: Improve dmGenericRLEAnalyze() by being better
	  at selecting rleMarker bytes for different combinations of
	  DM_RLE_BYTE_RUNS and DM_RLE_WORD_RUNS flags.
	* tools/lib64gfx.c: Oops, need to deconstify the "count" argument
	  of dmEncodeGenericRLESequence() as we now modify it inside.
	* tools/lib64fmts.c: Enable write support for some formats that
	  should be workable.
	* tools/lib64gfx.c: Implement DM_RLE_ZERO_COUNT_MAX support in the
	  generic RLE compressor.

2018-06-21  Matti Hamalainen <ccr@tnsp.org>

	* minijss/jloadjss.c src/dmgrowbuf.c src/dmlib.h: Cosmetics.
	* tools/lib64fmts.c: Allow writing of unpacked True Paint format.
	* tools/lib64fmts.c: Rename "Koala Paint" to "Koala Painter".
	* src/dmgrowbuf.c tools/lib64gfx.c tools/libgfx.c: Use dmMemset()
	  instead of memset().
	* tools/lib64fmts.c: Cosmetic.
	* tools/lib64fmts.c: Oops. Add missing
	  fmtProbeCosmosDesignsHiresManager() function. :S
	* tools/gfxconv.c: Clean up the image format output stuff in
	  gfxconv.
	* tools/libgfx.c: Various cleanups.
	* tools/libgfx.h: Move ILBM function declarations to position that
	  better reflects their location in the code.
	* tools/libgfx.c: Move idILBM variable to DMIFF struct.

2018-06-19  Matti Hamalainen <ccr@tnsp.org>

	* tools/gfxconv.c: Remove slight bit of code duplication.
	* tools/lib64fmts.c: Add missing Pentel Paint getpixel function.

2018-06-18  Matti Hamalainen <ccr@tnsp.org>

	* tools/lib64fmts.c: Reindent operator lists.
	* tools/lib64fmts.c: Use DO_SET_MEM_LO instead of DO_SET_MEM for
	  some things.

2018-06-14  Matti Hamalainen <ccr@tnsp.org>

	* tools/lib64fmts.c: Add Cosmos Designs Hires Manager unpacked
	  format support.
	* tools/lib64fmts.c: Rename Crest Hires Designer short ID.
	* tools/gfxconv.c tools/lib64gfx.c tools/libgfx.c tools/libgfx.h:
	  s/DM_IFMT_/DM_COLFMT_/g
	* tools/libgfx.c: Fix checks for NULL palette in index/palette
	  images. Also improve error messages.
	* tools/lib64gfx.c: Comment.
	* tools/lib64fmts.c: Remove a kludge image encoding op that is now
	  handled by the generic format size matching code.
	* tools/lib64gfx.c: If the c64 image format has a set size and our
	  buffer after encoding in dmC64EncodeBMP() is smaller than that
	  size, we grow the buffer to match (with zeroed data). This
	  accounts for format variants that are otherwise identical.
	* src/dmgrowbuf.c: Zero out the struct data in dmGrowBufFree().

2018-06-13  Matti Hamalainen <ccr@tnsp.org>

	* tools/lib64fmts.c: Fix some typos in comments.
	* README.txt: Slight fix to the README.
	* Makefile.gen: Add depencies for lib64fmts.
	* tools/lib64fmts.c: Oops, forgot to free the buffer allocated in
	  the BDP5 decoder. Fixed.
	* tools/lib64fmts.c: Add buffer expansion quirk to Boogie Down
	  Paint decoder, as it seems to be needed.
	* tools/lib64gfx.c: Fix output buffer cropping in
	  dmFinishRLEBuffers() for DM_OUT_CROP_END case.
	* tools/lib64fmts.c: Adjust True Paint probing to be slightly more
	  forgiving vs. file size.
	* tools/lib64fmts.c: Implement support for packed variant of Black
	  Mail FLI format.
	* tools/64vw.c tools/ppl.c: Actually it seems to be good to NULL
	  check before calling SDL_Destroy*() and free functions.
	  According to Valgrind SDL2 "leaks" memory with its error message
	  setting if you give NULL pointers, although this is pretty
	  harmless.
	* tools/lib64gfx.h: Add descriptive comments to some of RLE
	  decoder flags that were missing "documentation".
	* src/dmgrowbuf.c: Fix case where DMGrowBuf is growing backwards
	  and needs to be reallocated in dmGrowBufRealloc() and the data
	  is moved to the "end" of the newly grown buffer. Previously we
	  used clrsize as data size, but that is (in retrospect) obviously
	  incorrect. Use old buffer size instead.
	* src/dmgrowbuf.c: Improve DMGrowBuf debugging slightly.
	* tools/lib64gfx.c tools/lib64gfx.h: Add DM_RLE_ZERO_COUNT_MAX
	  flag for RLE decoder which makes it interpret run lengths of 0
	  as maximum value of the type, e.g. 256 or 65536 (latter is
	  probably useless.)
	* src/dmgrowbuf.c: Fix one DMGrowBuf debug print.

2018-06-12  Matti Hamalainen <ccr@tnsp.org>

	* tools/lib64gfx.h: Add a c64 image/format flag for formats that
	  use the border area. Not used yet.
	* tools/64vw.c tools/lib64fmts.c tools/lib64gfx.c
	  tools/lib64gfx.h: Change c64 format probing API to use DMGrowBuf.
	* tools/lib64fmts.c: Add support for another plain multicolor
	  variant, "Wigmore Artist 64". As a sidenote - that program is
	  horrible to use, btw.
	* tools/lib64fmts.c: Possibly fix FunPaint 2 unpacked format
	  saving.
	* tools/lib64fmts.c: Improve probing of FunPaint 2 packed vs.
	  unpacked format variants.
	* tools/lib64fmts.c: Theoretically fix Gun Paint format writing.
	* tools/64vw.c tools/gfxconv.c tools/lib64fmts.c tools/lib64gfx.c
	  tools/lib64gfx.h: Refactor the c64 bitmap format definitions
	  handling to be more flexible. Again.
	* tools/lib64gfx.c tools/lib64gfx.h: Move dmC64ProbeBMP() to more
	  logical place in the source.
	* tools/lib64fmts.c: Debug print cleanup.
	* tools/lib64fmts.c: Improve Saracen Paint support by adding a
	  probe function that accounts for some variance in the file sizes.
	* tools/lib64fmts.c: Adjust some probe scores.
	* tools/lib64fmts.c: Add partially broken support for Blazing
	  Paddles multicolor format. The background color is obviously
	  incorrect currently.
	* tools/lib64fmts.c: Add support for Saracen Paint multicolor
	  format.
	* tools/lib64fmts.c: Amica Paint common format definition is same
	  as Koala Paint, so use the Koala Paint definition.
	* tools/lib64fmts.c: Change "PMG crippled multicolor" to "Paint
	  Magic crippled MC", as it should be.
	* tools/lib64fmts.c: Clean up fmtGetPixelCrestHIFLIorCDHM().
	* tools/lib64fmts.c: Rename Image System format to Image System MC.
	* tools/lib64fmts.c tools/lib64gfx.c tools/lib64gfx.h: Implement
	  fake X raster position for the pixel getting functions. At some
	  point this will be turned into real fullscreen raster position.
	* tools/lib64fmts.c: Implement Rainbow Painter format support.

2018-06-11  Matti Hamalainen <ccr@tnsp.org>

	* tools/lib64fmts.c: Implement support for "PMG" format, a
	  crippled variant of standard c64 multicolor that has constant
	  value color RAM.
	* tools/64vw.c: Cleanup.
	* tools/lib64fmts.c: Improve fmtProbeECIPacked() probing.
	* tools/64vw.c tools/gfxconv.c tools/lib64fmts.c tools/libgfx.h:
	  Add a format flag for marking formats that have
	  broken/incomplete support and use it.
	* tools/lib64fmts.c: Add mostly working support for unknown
	  unpacked multicolor format "MIL". Hardcoded background color
	  setting.
	* tools/lib64fmts.c: Reorder operator.
	* tools/lib64fmts.c: Silence a warning about unused function
	  argument.
	* tools/lib64fmts.c: Implement support for Image System unpacked
	  format.
	* tools/lib64fmts.c: Implement support for CPU-Paint unpacked
	  format.
	* tools/lib64fmts.c: Attempt to avoid misprobes of some Crest
	  Hires FLI designer files as ECI 1.0 files.
	* tools/lib64fmts.c: Rename a function.
	* tools/lib64fmts.c: Convert fmtDecodeAmicaPaintPacked() to use
	  the new DMGrowBuf functions.
	* tools/lib64gfx.c: More granular error handling in RLE decoding.
	* tools/lib64fmts.c: Apparently Fun Paint 2 also saves one byte
	  less than it should with the packed format .. so we need to
	  extend our buffer.
	* tools/lib64fmts.c: Use the new DMGrowBuf functions in XX2 format
	  buffer enlarging.
	* src/dmgrowbuf.c src/dmgrowbuf.h tools/64vw.c tools/gfxconv.c
	  tools/lib64fmts.c tools/lib64gfx.c: Change DMGrowBuf API
	  somewhat and implement more copy operations.

2018-06-10  Matti Hamalainen <ccr@tnsp.org>

	* tools/lib64fmts.c: Improve ECI packed format probing.
	* tools/lib64fmts.c: Improve Amica Paint format probing.
	* src/dmgrowbuf.c tools/lib64gfx.c: Fix unitialized data accesses.
	* src/dmargs.c: Adjust indentation output of commandline help
	  printing.

2018-06-09  Matti Hamalainen <ccr@tnsp.org>

	* Makefile.gen src/dmargs.c src/dmargs.h src/dmargs_int.c
	  tools/packed.c: Bring in changes from the th-libs version of
	  commandline argument handling.
	* tools/lib64gfx.c: Actually fix the warnings .. sigh.
	* tools/lib64gfx.c: Silence a warning about unused function
	  argument.
	* tools/lib64fmts.c: Implement support for ECI packed format.
	* editor/edmain.cpp editor/edtimeline.cpp editor/edtlobj.cpp
	  editor/edview.cpp: Cleanups.

2018-06-08  Matti Hamalainen <ccr@tnsp.org>

	* tools/lib64gfx.c: Fix a potential uninitialized variable.
	* tools/lib64gfx.c: Oops, left in wrong variable name. :S
	* tools/lib64fmts.c: Implement support for hires FLI interlaced
	  "ECI Graphic Editor 1.0 (unpacked)" format.
	* tools/libgfx.h: Make some palette allocation functions public.
	* tools/lib64gfx.c tools/lib64gfx.h: Add
	  dmSetMixedColorC64Palette() for setting a 256 entry "mixed
	  color" palette, which consists of averaged 16 x 16 matrix of C64
	  palette. This can be used for rendering images that use color
	  interlace.
	* tools/lib64fmts.c tools/lib64gfx.c: Move dmDefaultC64Palette
	  back to lib64gfx.c
	* tools/64vw.c tools/gfxconv.c tools/lib64gfx.c tools/libgfx.c:
	  Use the default C64 palette whenever we need it, but make it
	  possible to override it.

2018-06-07  Matti Hamalainen <ccr@tnsp.org>

	* tools/64vw.c: Add new option -i for printing information about
	  the images that replaces the old misnamed -p ("probe only")
	  option. However, -p option is retained, but changes its meaning
	  to actually perform probing only and no actual image data
	  decoding per se.
	* tools/lib64gfx.c: Allow image pointer argument to be NULL for
	  dmC64ImageDump().
	* tools/lib64gfx.c: Improve error messages in the RLE decoder.
	* tools/lib64gfx.c tools/lib64gfx.h: Implement operator types
	  DO_SET_MEM_HI and DO_SET_MEM_LO. Not used yet.
	* tools/lib64gfx.c: Return size of subject in dmC64GetOpSize()
	  despite what the operator type is.

2018-06-06  Matti Hamalainen <ccr@tnsp.org>

	* tools/lib64fmts.c: Cleanups.
	* tools/lib64fmts.c: Allow writing of xx1 and xx2 formats, as
	  useless that is.
	* tools/lib64fmts.c tools/lib64gfx.c tools/lib64gfx.h: Refactor
	  fmtDecodeTruePaintPacked() to use more generic DMGrowBuf
	  functions now that they support backwards growing buffers, and
	  get rid of dmReverseGetByte() and dmReversePutByte() helpers.
	* tools/lib64gfx.c: Add one default case error handler.
	* tools/lib64gfx.c tools/lib64gfx.h: Add output buffer cropping to
	  dmFinishRLEBuffers() and the flags and fields to DMGrowBuf.
	* tools/lib64gfx.h: Make dmEncodeGenericRLESequence() a public
	  function.
	* tools/lib64gfx.c: Fix a commit blunder here ..
	* tools/lib64gfx.c: Use dmFinishRLEBuffers() in
	  dmDecodeGenericRLE()
	* tools/lib64gfx.c: Improve error handling of
	  dmEncodeGenericRLESequence() and use dmGenericRLEOutputRun()
	  here as well.
	* tools/lib64gfx.c: Use dmGenericRLEOutputRun().
	* tools/lib64fmts.c: Improve a comment on TruePaint encoding.
	* tools/lib64gfx.c tools/lib64gfx.h: Add few RLE helper functions.
	* tools/lib64fmts.c: Indentation cosmetics.
	* tools/lib64fmts.c tools/lib64gfx.h: Add function name field to
	  DMCompParams struct and set it in places where we use
	  DMCompParams.
	* tools/lib64gfx.c: Use buf->len instead of tmp.len, as it might
	  not be initialized.
	* tools/lib64gfx.h: Change two constant flag values.

2018-06-05  Matti Hamalainen <ccr@tnsp.org>

	* tools/gfxconv.c: Do not apply input skip offset here anymore,
	  it's handled more generally elsewhere.
	* src/dmgrowbuf.c tools/64vw.c tools/gfxconv.c tools/lib64fmts.c
	  tools/lib64gfx.c tools/lib64gfx.h: More consistently use
	  DMGrowBuf in the lib64gfx APIs, and implement "backwards" RLE
	  decoding and encoding (optionally regards input/output). Not
	  tested very much yet, there may be bugs.
	* src/dmgrowbuf.c: Ehm .. the boolean logic conditions used in
	  dmGrowBufPutU{16,32}{LE,BE}() were reversed due to brainfart.
	  Fixed.
	* src/dmgrowbuf.c: Fix offset check in dmGrowBufGetU8().
	* src/dmgrowbuf.h: Add helper function dmGrowBufCreateFromOffs().
	* src/dmgrowbuf.c: Clarify dmGrowBufGetU8() a bit.
	* src/dmgrowbuf.c: Explicitly initialize some DMGrowBuf fields for
	  clarity, though they are already cleared previously by memset().
	* src/dmgrowbuf.c: Fix DMGrowBuf debugging.
	* src/dmgrowbuf.c src/dmgrowbuf.h: Implement dmGrowBufConstCopy()
	  and dmGrowBufCreateFrom(), and also DMGrowBuf::is_const flag,
	  that marks a buffer "unmodifiable", though obviously that is not
	  strictly enforced.
	* src/dmgrowbuf.c src/dmgrowbuf.h: Implement dmGrowBufGetU8().
	* tools/libgfx.c: Use img->ctransp for IFF ILBM mask, if set.
	* src/dmgrowbuf.c src/dmgrowbuf.h tools/lib64fmts.c
	  tools/lib64gfx.c: Refactor DMGrowBuf so that there can be
	  buffers that grow "backwards". This also removes some support
	  functions like the buffer state push/pop.
	* tools/gfxconv.c: When writing a C64 bitmap output, inform the
	  user about the output file size.
	* src/dmfile.c: Improve error checking in dmWriteDataFile().
	* src/dmgrowbuf.c src/dmgrowbuf.h tools/gfxconv.c: Backed out
	  changeset 9611ecd2c4fb
	* src/dmgrowbuf.c src/dmgrowbuf.h: Get rid of dmGrowBufResize().
	* src/dmgrowbuf.c src/dmgrowbuf.h tools/gfxconv.c: Get rid of
	  dmGrowBufInit().
	* src/dmfft.c: Cleanups.

2018-06-04  Matti Hamalainen <ccr@tnsp.org>

	* src/dmlib.c: Minor NULL check cleanup.
	* src/dmlib.c: Remove newline from start of the banner.

2018-06-01  Matti Hamalainen <ccr@tnsp.org>

	* src/dmengine.h: Add few comments.
	* src/dmgrowbuf.c src/dmgrowbuf.h: Cosmetics.

2018-05-31  Matti Hamalainen <ccr@tnsp.org>

	* src/dmlib.h: "Fix" issues with DM_PRI* defines when compiling
	  for Windows via MinGW.
	* tools/fanalyze.c: Various fixes in fanalyze.
	* tools/lib64fmts.c: Rename function variable.
	* tools/fanalyze.c: Use DM_PRIu_SIZE_T for size_t type.
	* Makefile.gen tools/fanalyze.c: Add simple and naively
	  implemented multi-file bindiff type file analyzer utility
	  'fanalyze'.
	* tools/objlink.c: Rename some constants.
	* tools/libgfx.c: Adjust ILBM loader to show BMHD data at lower
	  verbosity level.
	* tools/objlink.c: Clean up and improve error handling.
	* tools/objlink.c: Cleanups.
	* tools/objlink.c: Bump copyright year and version.
	* tools/objlink.c: Constify.
	* tools/objlink.c: Improve error handling and plug filehandle
	  leaks.
	* tools/objlink.c: Rename varibles.
	* tools/objlink.c: Cleanups.
	* tools/lib64gfx.c: Cleanup.
	* tools/lib64fmts.c: Add support for a plain hires format at $2000.
	* tools/lib64fmts.c: Implement hires Mono Magic support.
	* tools/lib64fmts.c: Cosmetic fixes.
	* tools/gfxconv.c tools/lib64fmts.c tools/lib64gfx.c
	  tools/lib64gfx.h: Big overhaul to the enc/dec operator system to
	  be more flexible.

2018-05-30  Matti Hamalainen <ccr@tnsp.org>

	* tools/64vw.c tools/gfxconv.c: Display number of supported C64
	  image formats in --formats list of 64vw and gfxconv.
	* tools/64vw.c: Add option to 64vw to list only filenames of
	  recognized files (-l). Implies probe (-p).
	* tools/lib64fmts.c: Enable BDP5 encoding support.
	* tools/gfxconv.c: Fix a minor memory leak and file descriptor
	  leak.
	* tools/lib64fmts.c: Add support for BDP5 format encoding.
	* tools/lib64fmts.c: Cleanups.
	* tools/lib64fmts.c: RLE analyze was ran before setting up the
	  compression config. Oops. Fixed.
	* tools/lib64fmts.c tools/lib64gfx.c tools/lib64gfx.h: More work
	  on improving the generic RLE decoder/encoder.
	* tools/libgfx.c: Micro-optimization.
	* tools/libgfx.c: Rename function argument.
	* tools/libgfx.c: Split IFF chunk id string from id creation into
	  separate function.
	* tools/libgfx.c: Get rid of a basically redundant function in IFF
	  reader.
	* tools/libgfx.c: Cleanups.
	* tools/libgfx.c: Improve IFF reader error handling.
	* tools/lib64fmts.c: Add missing interlace type setting to
	  GunPaint decoding.
	* tools/lib64fmts.c: BDP5 memory format is same as Koala, so reuse
	  that.
	* tools/lib64fmts.c: Implement support for Boogie Down Paint 5
	  (packed) format.
	* tools/lib64fmts.c tools/lib64gfx.c tools/lib64gfx.h: Refactor
	  RLE encoding a bit, and add support for 16bit run counts and
	  make things more configurable.
	* tools/lib64fmts.c: Clean up fmtDecodeTruePaintPacked() a bit,
	  and fix GCC warnings about (intentional) switch/case
	  fallthroughs.
	* tools/lib64fmts.c: Set interlace type for FunPaint2 images, so
	  tha they work again.
	* tools/lib64gfx.c tools/lib64gfx.h: Add sanity check for
	  interlaced formats: check that the interlace type flags are set.
	* tools/lib64fmts.c: Implement support for packed TruePaint images.
	* tools/lib64gfx.c tools/lib64gfx.h: Add helper functions
	  dmReverse{Get,Put}Byte().
	* tools/lib64gfx.c tools/lib64gfx.h: Reorder some functions.

2018-05-28  Matti Hamalainen <ccr@tnsp.org>

	* tools/packed.c: Refactor "packed" utility. This breaks
	  commandline backwards compatibility.
	* tools/libgfx.c: Return actual error code instead of forcing
	  DMERR_FOPEN.
	* tools/gfxconv.c: Add '-F' short option alias for '--formats'.
	* tools/64vw.c: Add --formats option to 64vw and remove the format
	  listing from --help.
	* tools/gfxconv.c: Adjust "gfxconv --formats" output.

2018-05-25  Matti Hamalainen <ccr@tnsp.org>

	* tools/lib64gfx.h: Add some comments.
	* tools/lib64fmts.c: Fix packed Koala Painter probing.
	* tools/lib64fmts.c: Cosmetic.
	* tools/lib64fmts.c: Adjust BFLI format spec slightly. Still
	  broken tho.
	* tools/lib64fmts.c: Cleanups.
	* tools/lib64gfx.c: Use C64 encdec operator specified size for the
	  element if it is larger than the default size.
	* tools/lib64gfx.c: Remove useless assignation.

2018-05-24  Matti Hamalainen <ccr@tnsp.org>

	* tools/gfxconv.c: Improve autoprobing error handling a bit.
	* tools/gfxconv.c: gfxconv bailed out prematurely for probed
	  inputs. Fixed.

2018-05-16  Matti Hamalainen <ccr@tnsp.org>

	* tools/libgfx.c tools/libgfx.h: Add image aspect ratio
	  information.
	* tools/libgfx.c: Cleanup.
	* tools/libgfx.c: Remove some code duplication.
	* tools/libgfx.c: Print an error/warning about PBM files that have
	  half-brite set.
	* tools/libgfx.c: Remove unused message argument.
	* tools/libgfx.c: fext =~ s/lbm/ilbm/
	* tools/libgfx.c: Cleanups.
	* tools/libgfx.c: Fix a comment.
	* tools/libgfx.c: Rename dmReadIFFChunk() to dmReadIFFChunkHdr().
	* tools/libgfx.c: Remove slight code duplication.
	* tools/libgfx.c: Cleanup.

2018-05-15  Matti Hamalainen <ccr@tnsp.org>

	* tools/gfxconv.c: Bump gfxconv version.
	* tools/gfxconv.c tools/libgfx.c tools/libgfx.h: Refactor the
	  format handling a bit.
	* tools/libgfx.c: Constify.
	* tools/libgfx.c: Cleanup.
	* tools/libgfx.c: Move format probe functions near to their other
	  functions.
	* src/dmzlib.c: Cleanups.
	* src/dmtext_ttf.c: NULL check.
	* tests/fptest.c: Slight improvements to fptest.

2018-05-14  Matti Hamalainen <ccr@tnsp.org>

	* tools/gfxconv.c tools/libgfx.c tools/libgfx.h: Convert libgfx
	  file format routines to use DMResource instead of stdio FILE.
	  Also do necessary changes in gfxconv due to these API changes.
	* src/dmres.c src/dmres.h: Implement dmfputs() in DMResource
	  subsystem.
	* src/dmres.c src/dmres.h src/dmresw.c src/dmresw.h: Cleanups.
	* editor/edtlobj.cpp src/dmres.c src/dmres.h src/dmsimple.c
	  tests/plrtest.c tools/dumpmod.c tools/fontconv.c tools/mod2wav.c
	  tools/ppl.c tools/xm2jss.c: Rename dmf_create_*() functions to
	  dmf_open_*().
	* src/dmlib.h: Bump copyright years.
	* tools/gfxconv.c: Typofix.
	* tests/plrtest.c: Cleanup plrtest.
	* tools/ppl.c: Minor optimizations.
	* src/dmblit.c src/dmlib.h: Change dmConvertScaledSurface()
	  interface by remove flags.
	* tools/lib64gfx.c: Fix some uninitialized variable warnings.
	* COPYING README.txt: Bump copyright years.
	* tools/lib64fmts.c: Adjust Fun Paint 2 decoding now that the RLE
	  decoding is fixed.
	* tools/lib64gfx.c: Fix RLE decoder bounds checks for compressed
	  sequences.
	* tools/64vw.c: Bump 64vw version.
	* tools/64vw.c: Add arrow up and down keys as alias controls to
	  left and right.
	* tools/lib64fmts.c: Implement packed Koala Painter probing.
	* tools/lib64fmts.c: Oops, missed this from the last commit.
	* tools/lib64fmts.c tools/lib64gfx.h: Implement common encdec ops
	  lists for sharing oplists between formats that use the exact
	  same ops.
	* tools/gfxconv.c tools/lib64gfx.c tools/lib64gfx.h: Add inline
	  helper function fmtGetEncDecOp() and use it.
	* tools/lib64fmts.c: Add commas after macro blocks in the format
	  array.
	* tools/lib64fmts.c: Reorder some format operators by address.
	* tools/gfxconv.c tools/lib64fmts.c tools/lib64gfx.c
	  tools/lib64gfx.h: Refactor the c64 format memory handling a bit
	  for more flexibility.
	* tools/lib64fmts.c tools/lib64gfx.c tools/lib64gfx.h: Rename
	  DT_BITMAP to DT_BITMAP_RAM.
	* tools/gfxconv.c: Improve error handling.
	* tools/gfxconv.c tools/lib64gfx.h: Remove some useless constants.
	* tools/libgfx.c: Cleanup.

2018-05-13  Matti Hamalainen <ccr@tnsp.org>

	* tools/lib64fmts.c: Add somewhat broken support for "Big FLI" aka
	  BFLI files. Needs more work.
	* tools/lib64fmts.c: Rename a function.
	* tools/lib64gfx.c: Add NULL check for growbuf pointer.
	* tools/lib64fmts.c: Improve and simplify Fun Paint 2 format
	  support.
	* tools/lib64fmts.c: Add support for packed Koala Painter files,
	  though without probing now.
	* tools/lib64fmts.c tools/lib64gfx.h: Get rid of some code
	  duplication by merging functionality of certain pixel decoding
	  functions into the generic one.
	* tools/64vw.c: Make home/end keys to go to first and last file
	  respectively in 64vw.
	* tools/lib64fmts.c: Fix Koala Painter background color decoding.
	* tools/lib64fmts.c: Add support for "Picasso 64" and "Vidcom 64"
	  multicolor formats.
	* tools/lib64fmts.c tools/lib64gfx.c tools/lib64gfx.h: Implement
	  another RLE variant, with different ordering of marker, count
	  and data bytes.
	* tools/64vw.c: Try to make the window title more informative.
	* tools/64vw.c: Use C64_SCR_* constants instead of hardcoded
	  number values in creating surface.
	* tools/64vw.c: Instead of specifying forced input format (-f) as
	  a number in 64vw, use format extension like it is done in
	  gfxconv.
	* tools/gfxconv.c: Minor cleanup.
	* tools/ppl.c: Rename some variables to be more meaningful.
	* tools/64vw.c: Add fullscreen toggle support.
	* tools/64vw.c: Use SDL_CreateRGBSurfaceWithFormat().
	* tools/64vw.c: Fix page up/down skip amounts.
	* tools/ppl.c: Oops, 8 vs 32bits. Didn't seem to matter anyhow,
	  though.
	* .hgtags: Added tag last_SDL1 for changeset 8f06c23e197d
	* tools/ppl.c: Bump version and copyright of PPL/CBP.
	* tools/ppl.c: Make texture/surface creation better.
	* src/dmimage.c src/dmimage.h: Cleanup some remnants of SDL1 code.
	* tools/ppl.c: Fix colours by creating a correctly ordered surface.
	* README.txt: Few fixes in the README.
	* Makefile Makefile.cross-mingw Makefile.gen README.txt
	  src/dmengine.c src/dmengine.h src/dmimage.c src/dmimage.h
	  src/dmlib.h src/dmmutex.h src/dmsimple.c src/dmtext_bm.c
	  tools/64vw.c tools/fontconv.c tools/ppl.c: Initial port to SDL2.
	  Many things will not work now.
	* tools/ppl.c: Cosmetics.
	* tools/ppl.c: Remove useless dmCol() calls.
	* src/dmargs.h src/dmlib.h: Add some missing includes.
	* tools/64vw.c: Oops, reverse the meaning of PageUp and PageDown.
	  :D
	* tools/64vw.c: Add Page Up and Down keys to 64vw controls.
	* Makefile.gen tests/dzlib.c tests/dzlibtest.c tests/efu.c
	  tests/testeval.sh tests/tnsp.png: Do some vetting on the tests,
	  which are rather crappy anyway.
	* tools/gfxconv.c: Cleanups.

2018-05-12  Matti Hamalainen <ccr@tnsp.org>

	* Makefile.gen: Fix font conversion in build.
	* tools/lib64gfx.c: Check C64 bitmap format flags in encode/decode
	  functions.
	* tools/lib64fmts.c: Remove encode stub function, it's not used
	  now.
	* tools/gfxconv.c: Constify.
	* tools/gfxconv.c tools/lib64fmts.c tools/lib64gfx.h
	  tools/libgfx.h: Improve how format read/write capabilities are
	  marked and shown.
	* tools/libgfx.h: Cleanups.
	* tools/gfxconv.c tools/libgfx.c tools/libgfx.h: Rename libgfx
	  IMGFMT_* constants to DM_IMGFMT_*.
	* tools/lib64fmts.c tools/lib64gfx.c: Implement
	  dmGenericRLEAnalyze() and use it where appropriate.
	* tools/lib64fmts.c: Fix FunPaint2 packed format decoding.
	* tools/lib64fmts.c: Fix Amica Paint decoding off-by-one.
	* tools/lib64fmts.c: Cleanup.
	* tools/lib64fmts.c: Implement Amica Paint packed format encoding.
	* tools/gfxconv.c tools/lib64gfx.c tools/lib64gfx.h: Tiny
	  improvement in MC->FLI upconversion.
	* src/dmgrowbuf.c: Add compile-time debugging information to
	  DMGrowBuf.
	* tools/lib64fmts.c: Fix DrazLace encoding.
	* tools/lib64gfx.c: Use the DMGrowBuf push/pop functionality to
	  better implement the stacked generic encoding of c64 bitmap
	  formats.
	* src/dmgrowbuf.h: Cosmetic.
	* tools/gfxconv.c: Cleanup.
	* src/dmgrowbuf.c src/dmgrowbuf.h: Implement current len/offs
	  push/pop for growbuf.
	* src/dmgrowbuf.c: Add helper function dmGrowBufRealloc() to
	  handle the common case of reallocating the grow buffer in
	  various enlargement functions.
	* tools/lib64fmts.c: Rename some decoder functions.
	* tools/lib64gfx.c: Set size for DT_{DEC,ENC}_FUNCTION opcodes.

2018-05-11  Matti Hamalainen <ccr@tnsp.org>

	* Makefile.gen src/dmeval.c src/dmeval.h src/dmevalw.c
	  tests/evaltest.c tools/auval.c: Remove auval and dmeval stuff.
	* tools/gfxconv.c: Oops. Actually use the generated filename for
	  writing the output files in here.
	* tools/gfxconv.c: Improve some error messages in gfxconv.
	* tools/gfxconv.c: Fix uninitilized variable.
	* src/dmfile.c: Fix a warning in dmWriteDataFile().
	* tools/gfxconv.c: Clarify the "probed" messages of gfxconv.
	* tools/lib64gfx.c: Another encoding fix ..
	* tools/lib64gfx.c: Remove unused variable.
	* tools/lib64gfx.c: Fix c64 bitmap encoding / decoding bounds
	  checks.
	* tools/lib64gfx.c: Improve error handling of RLE encoder.
	* tools/64vw.c: Always show current filename in the window title.
	* tools/64vw.c: Better leak fix. :D
	* tools/64vw.c: Plug some memory leaks in 64vw.
	* tools/gfxconv.c: Plug some minor memory leaks in gfxconv.
	* tools/lib64gfx.c: Remove insane troll logic from
	  dmC64GetOpSize().
	* tools/lib64gfx.c: Initialize previous data value in RLE encoder.
	* tools/lib64gfx.c: Fix an error message, should be "Encode", not
	  "Decode".
	* tools/lib64gfx.c: Urgh. 1000L idiotic mistake: a
	  dmGrowBufAlloc() call had been left in dmEncodeGenericRLE(),
	  causing a memory leak.
	* src/dmgrowbuf.c: Add few comments to clarify things.
	* src/dmgrowbuf.c: Initialize the memory in growbuf.
	* tools/lib64gfx.c: Oops, left in a debug print.
	* tools/lib64gfx.c: Fix handling of predefined DMGrowBuffer in
	  dmC64EncodeGenericBMP().
	* tools/lib64fmts.c tools/lib64gfx.c tools/lib64gfx.h: Change the
	  passing of RLE compression/decompression parameters to be in a
	  dedicated struct.
	* Makefile.gen: Oops, forgot to include build system changes in
	  the previous commit.
	* tools/lib64fmts.c tools/lib64gfx.c tools/lib64gfx.h: Factor all
	  the c64 file format specific things into lib64fmt.c
	* tools/gfxconv.c: Fix gfxconv help.
	* tools/lib64gfx.c: Add static const global for FunPaint 2 magic
	  ID string.
	* tools/lib64gfx.c: Fix some blunders in encode/decode error
	  messages.
	* tools/lib64gfx.c tools/lib64gfx.h: Simplify some encoding bits.
	* tools/lib64gfx.c: Move encoding stub function to better place.
	* tools/lib64gfx.c: Implement rudimentary support for writing RLE
	  compressed DrazPaint 1.4/2.0 and DrazLace 1.0 files.
	* tools/lib64gfx.c: Work on the RLE encoding.
	* tools/lib64gfx.h: Clarify a comment.
	* tools/64vw.c tools/gfxconv.c tools/lib64gfx.c tools/lib64gfx.h:
	  Add short format attribute names to dmC64GetImageTypeString().
	* tools/gfxconv.c: Some dabbling work on basic C64 bitmap
	  conversion.
	* tools/lib64gfx.c: Set DMC64Image::type in dmC64ImageAlloc() from
	  format type.
	* tools/lib64gfx.c: Reindent polishing.
	* tools/gfxconv.c: Begin restructuring how C64 bitmaps are
	  converted.
	* tools/lib64gfx.c tools/lib64gfx.h: Move one function to a better
	  place in the code.
	* tools/64vw.c tools/lib64gfx.c tools/lib64gfx.h: Factor the C64
	  bitmap image format info dump function to lib64gfx and use it
	  from 64vw.
	* tools/lib64gfx.c: Various fixes to dmC64EncodeGenericBMP().
	* tools/lib64gfx.c tools/lib64gfx.h: Add DMC64ImageFormat to C64
	  bitmap format encoding/decoding ops function parameters.
	* tools/lib64gfx.c: Oops. Fix dmC64EncodeBMP() to add loading
	  address to total data size.
	* src/dmgrowbuf.c: Fix dmGrowBufPut() to not include extra byte.
	* tools/64vw.c tools/lib64gfx.c: Improve dmC64GetImageTypeString()
	  and use it also in 64vw.
	* tools/64vw.c tools/lib64gfx.c tools/lib64gfx.h: Rename some
	  struct members, and sanitize handling of DMC64Image allocation
	  more.
	* tools/gfxconv.c: Sanitize dmWriteBitmap().
	* tools/gfxconv.c: Change some message priorities.
	* tools/gfxconv.c: Improve how input skipping is done. This,
	  however, currently breaks skipping for non-c64 image format
	  inputs.
	* tools/lib64gfx.c: More work on RLE encoding/decoding.
	* src/dmgrowbuf.c src/dmgrowbuf.h: Rename one of the growbuf
	  functions.
	* tools/lib64gfx.c: Cleanup the RLE decoder.
	* tools/lib64gfx.c: Reorder format list.
	* src/dmfile.c src/dmfile.h: Add dmWriteDataFile() helper function.
	* src/dmfile.c src/dmfile.h: Cleanup dmReadDataFile() helper
	  function.

2018-05-10  Matti Hamalainen <ccr@tnsp.org>

	* tools/lib64gfx.c: Improve error handling and checking.
	* tools/lib64gfx.c: Add stub function to prevent attempts to
	  encode formats that do not support encoding yet.
	* tools/gfxconv.c: Use dmC64EncodeBMP() in gfxconv.
	* tools/lib64gfx.c: Various fixes in bmp encoding.
	* .hgsigs: Added signature for changeset 32203356c652
	* tools/lib64gfx.c tools/lib64gfx.h: Add some new functions that
	  are mostly just stubs and not working tho.
	* tools/lib64gfx.c: More work on RLE decoder/encoder changes.
	* tools/gfxconv.c tools/lib64gfx.c tools/lib64gfx.h: Change
	  dmC64EncodeGenericBMP() to use DMGrowBuf, and make the necessary
	  changes in gfxconv as well.
	* tools/gfxconv.c: Improve one error message by showing the error
	  code.
	* tools/lib64gfx.c: Change dmDecodeGenericRLE() to use DMGrowBuf
	  as output. Also add support for two different common types of
	  RLE encoding. Add stub function of dmEncodeGenericRLE(), not
	  implemented yet. Change functions using dmDecodeGenericRLE to
	  use the new API. Also fix a problem in Amica Paint RLE decoding
	  as the format seems to save one byte less than is necessary.
	* tools/lib64gfx.c: Fix memory leaks by freeing more things in
	  dmC64ImageFree().
	* tools/lib64gfx.c: Cosmetic.
	* tools/lib64gfx.c: Improve error handling.
	* src/dmgrowbuf.c: More work on growbuf.
	* src/dmgrowbuf.c src/dmgrowbuf.h: Adjust semantics of growbuf and
	  add new function.
	* tools/gfxconv.c tools/lib64gfx.c tools/lib64gfx.h: Add function
	  to set DMImage's palette to default C64 palette and use it.
	* tools/lib64gfx.c tools/lib64gfx.h: Bump copyrights.
	* src/dmgrowbuf.c src/dmgrowbuf.h: Add dmGrowBufCheckGrow()
	  function.
	* Makefile.gen src/dmgrowbuf.c src/dmgrowbuf.h: Add a growable
	  buffer implementation.
	* src/dmlib.h: Add missing dmFreeRReal() function prototype.
	* src/dmlib.c src/dmlib.h: Add dmFreeR() macro/function.
	* src/dmlib.c src/dmlib.h: Cleanups.
	* tools/libgfx.c: 24bit PCX writing does not work correctly, so
	  return DMERR_NOT_SUPPORTED in the writer function. At least
	  until the problem is analysed and fixed.
	* tools/lib64gfx.h: Oops, non-matching function prototype
	  committed. Fixed.
	* tools/lib64gfx.c: Do not insert load address to the buffer
	  beginning in dmC64EncodeGenericBMP().
	* tools/lib64gfx.c: Rename labels.
	* tools/lib64gfx.h: Cosmetics.
	* tests/efu.c: Cosmetics.
	* tests/efu.c: Add dmSmoothMap() function to efu test.
	* tools/lib64gfx.c: Cosmetics.
	* tools/lib64gfx.c tools/lib64gfx.h: Cleanups.
	* tools/gfxconv.c: Cleanups.
	* tools/gfxconv.c: Cleanups.
	* tools/gfxconv.c: Constify.

2018-04-22  Matti Hamalainen <ccr@tnsp.org>

	* src/stb_image.c: Fix a warning.

2017-12-12  Matti Hamalainen <ccr@tnsp.org>

	* tools/64vw.c: Also do some renaming in here ..
	* Makefile.gen: Fix build.
	* tools/64vw.c tools/view64.c: Rename view64 to 64vw.

2017-11-22  Matti Hamalainen <ccr@tnsp.org>

	* tools/mod2wav.c: Get rid of another direct 'errno' usage.
	* tests/vecmattest.c tools/data2inc.c tools/gfxconv.c
	  tools/lib64gfx.c: Cosmetics.
	* Makefile Makefile.cross-mingw Makefile.gen src/dmmutex.h
	  src/dmtool.h tests/evaltest.c tests/fptest.c tests/vecmattest.c
	  tools/data2inc.c tools/dumpmod.c tools/gentab.c tools/gfxconv.c
	  tools/mod2wav.c tools/objlink.c tools/packed.c tools/xm2jss.c:
	  Improve build, so that we can build the tools and tests with
	  minimal depencies (e.g. without libSDL linking when possible.)
	  And this also on Win32 MinGW.
	* tools/objlink.c tools/xm2jss.c: Get rid of direct 'errno' usage.

2017-11-15  Matti Hamalainen <ccr@tnsp.org>

	* .hgignore: Remove tests/ subdir from ignores.
	* tools/data2inc.c: Cleanup.
	* tools/data2inc.c: Get rid of direct errno usage.
	* Makefile.gen: s/DM_ZLIB_LDFLAGS/ZLIB_LDFLAGS/g
	* tools/gfxconv.c tools/lib64gfx.c tools/lib64gfx.h
	  tools/view64.c: Rename global dmC64Palette to
	  dmDefaultC64Palette.
	* tools/lib64gfx.c: Simplify dmC64GetImageTypeString().

2017-11-08  Matti Hamalainen <ccr@tnsp.org>

	* tools/view64.c: Remove useless line.
	* tools/view64.c: Fix view64 window title updating.
	* minijss/jssplr.c: Cosmetic.

2017-11-06  Matti Hamalainen <ccr@tnsp.org>

	* Makefile: Stray whitespace at line end.
	* tools/view64.c: Cleanups.

2017-11-05  Matti Hamalainen <ccr@tnsp.org>

	* tools/lib64gfx.c: Better fix for the RLE decoding bounds issue,
	  not changing dmDecodeGenericRLE() API.
	* tools/lib64gfx.c: Backed out changeset 3baed76155a1
	* tools/view64.c: Oops, the check for maximum filename index was
	  wrong.
	* tools/lib64gfx.c: Fix dmDecodeGenericRLE() source/read bounds
	  check.
	* tools/view64.c: Remove useless SDL_SetColors() call.
	* tools/view64.c: Implement multi file support in view64.
	* tools/dumpmod.c: No need to include errno.h here.
	* tools/lib64gfx.c: Use Uint8 instead of int in the rle decoder.
	* tools/lib64gfx.c: Cleanups.
	* tools/view64.c: Rename a label.
	* tools/ppl.c: Increase default mixer volume to 255.
	* tools/ppl.c: Add +1 to the displayed module order number.
	* tools/packed.c: Rename dm_strmatch() to dmStrMatch().
	* tools/packed.c: Indentation cosmetic.

2017-11-04  Matti Hamalainen <ccr@tnsp.org>

	* minijss/jssplr.h: Clarify function prototypes in the header.

2017-10-30  Matti Hamalainen <ccr@tnsp.org>

	* tools/view64.c: Improve error checking.
	* minijss/jssmix.c minijss/jssmod.c minijss/jssplr.c:
	  Modernization cleanups.
	* minijss/jloadxm.c minijss/jssmod.c minijss/jssmod.h: Make
	  JSSExtInstrument.instConvSamples dynamically allocated and add
	  check for XM_MaxInstSamples in XM loader.
	* minijss/jssmod.c: Fix jssASCIItoStr() bounds check.
	* minijss/jloadxm.c: Improve error checking and resiliency a bit.
	* tools/dumpmod.c: Fix commandline option mixup -g vs -e

2017-10-28  Matti Hamalainen <ccr@tnsp.org>

	* Makefile Makefile.cross-mingw: Use $(shell ..) instead of
	  backtics.
	* minijss/jloadxm.c: Indentation cosmetics.

2017-10-16  Matti Hamalainen <ccr@tnsp.org>

	* tools/lib64gfx.c: Cosmetic.

2017-09-25  Matti Hamalainen <ccr@tnsp.org>

	* tools/view64.c: If probe mode is specified, increase verbosity
	  to required level.
	* tools/lib64gfx.c: Add support for Crest Hires FLI Designer
	  format.
	* tools/lib64gfx.c: Make screen ram definition macros more
	  flexible, for possible future use cases.

2017-09-24  Matti Hamalainen <ccr@tnsp.org>

	* tools/lib64gfx.c: Cleanups, support another variant of FLI
	  Designer format.
	* tools/view64.c: Add "probe only" mode to view64.
	* tools/lib64gfx.c: FunPaint2 decoding fixes.
	* tools/lib64gfx.c: Implement GunPaint support. Possibly not
	  working correctly.
	* tools/lib64gfx.c: Simplify some image format definitions by
	  using macro to define screen ram blocks.
	* tools/lib64gfx.c: Oops, 100L. Had forgotten to change
	  singlecolor mode handling pixel getter argument order ..
	* tools/view64.c: Print number of banks.
	* tools/lib64gfx.c: #undef a macro that needs to be redefined in
	  order to avoid a warning.
	* tools/lib64gfx.c: Implement (buggy) support for packed and
	  unpacked FunPaint II images in lib64gfx.
	* tools/gfxconv.c: Oops, missed some necessary changes to gfxconv
	  due to lib64gfx changes. Fixed.
	* tools/lib64gfx.c: Cosmetics.
	* tools/lib64gfx.c: Move things around a bit.
	* tools/lib64gfx.c tools/lib64gfx.h: Cosmetics.
	* tools/lib64gfx.h: Increase maximum number of enc/dec operations
	  for C64 images.
	* tools/lib64gfx.c tools/lib64gfx.h: Make c64 image bank
	  allocation dynamic.
	* tools/lib64gfx.c: Cosmetic.
	* tools/lib64gfx.c tools/lib64gfx.h tools/view64.c: More work on
	  making various FLI etc. format decoding more flexible.
	* tools/lib64gfx.c tools/lib64gfx.h tools/view64.c: Implement more
	  flexible generic format decoding by separating the pixel
	  decoding functions into function pointers.
	* tools/lib64gfx.h: Forward declare typedef struct _DMC64Image;
	* tools/lib64gfx.c tools/lib64gfx.h: Improve handling of extra
	  data.
	* tools/lib64gfx.c: Variable name cleanup.
	* tools/lib64gfx.c: Cleanups.
	* tools/lib64gfx.c: Add support for Interpaint Multicolor
	  (unpacked) images.
	* tools/lib64gfx.c: Cleanups.

2017-09-23  Matti Hamalainen <ccr@tnsp.org>

	* tools/view64.c: Use dmPrint() instead of dmMsg() for the info
	  dumps.
	* tools/view64.c: Add some information dumping to view64.
	* tools/lib64gfx.c: Return DMERR_NOT_SUPPORTED for decoding
	  color-interlaced images, for now (not sure how to handle those,
	  really.)
	* tools/lib64gfx.c tools/lib64gfx.h: Remove hardcoded
	  encoding/decoding operator counts from the structures, use a
	  sentinel instead.

2017-09-22  Matti Hamalainen <ccr@tnsp.org>

	* tools/lib64gfx.c: Cleanup.
	* tools/view64.c: Adjust view64 display aspect calculations.
	* tools/lib64gfx.c: Better handling of resolution interlaced
	  pictures.
	* tools/lib64gfx.c: Cosmetics.
	* tools/gfxconv.c: Make image palette remapping use a destination
	  image instead of doing remapping on the source image.

2017-08-30  Matti Hamalainen <ccr@tnsp.org>

	* src/dmtimeline.c: Cleanups.

2017-08-25  Matti Hamalainen <ccr@tnsp.org>

	* tools/fontconv.c: Remove useless -o option from fontconv.

2017-08-23  Matti Hamalainen <ccr@tnsp.org>

	* README.txt: Add another gfxconv example.
	* minijss/jmix_c_in.c: Cleanup.
	* README.txt: Documentation adjustments.

2017-08-22  Matti Hamalainen <ccr@tnsp.org>

	* tools/view64.c: Cleanup.
	* tools/xm2jss.c: Improve verbose output cosmetics.
	* tools/ppl.c: Cleanup, update copyright.
	* minijss/jloadjss.c: Silence warnings about unused function
	  arguments.
	* minijss/jloadjss.c minijss/jssmod.h: Fix loading of instrument
	  relative note, finetune and panning values, which should be
	  signed.
	* tools/dumpmod.c: Cleanup.
	* tools/xm2jss.c: Cleanups.
	* tools/dumpmod.c: Add -a/--all option to show all information
	  about the module.
	* tools/dumpmod.c: Cleanups.
	* tools/xm2jss.c: Print out order list pattern remapping stuff if
	  verbose enough.
	* tools/xm2jss.c: Fix dupe pattern detection.
	* tools/xm2jss.c: Constify and move effect conversion back to
	  where it was.
	* tools/libgfx.c tools/libgfx.h: Constify.
	* tools/gfxconv.c: Add some comments.
	* tools/libgfx.c: Cleanups.
	* tools/ppl.c: Do not go past number of module channels with the
	  active channel.
	* tools/xm2jss.c: Cleanups.
	* tools/xm2jss.c: Cleanups.
	* tools/xm2jss.c: Add informational message about used/unused
	  channels.
	* tools/xm2jss.c: Comments.
	* tools/xm2jss.c: Possibly make dupe pattern elimination work.
	  Still needs some testing.
	* tools/xm2jss.c: Cleanup unused variable.
	* minijss/jloadjss.c: Fix a envelope "sanity check" in jmod loader.
	* tools/gfxconv.c: Clarify help.
	* tools/gfxconv.c: Clarify --formats help slightly.
	* Makefile.gen: Fix build for disabled bitmapped text.
	* Makefile.gen tools/auval.c tools/libgutil.c tools/libgutil.h
	  tools/ppl.c: Move common functions to libgutil.
	* src/dmsimple.c: Add dmFillRect() to dmsimple.
	* Makefile.gen: Oops, forgot to commit Makefile changes for dmgfx
	  removal.
	* config.mak.in: dmgfx module is no more.
	* src/dmgfx.c src/dmlib.h tools/auval.c tools/ppl.c: Remove dmgfx
	  and move the functions used to PPL and Auval.

2017-08-21  Matti Hamalainen <ccr@tnsp.org>

	* minijss/jloadxm.c: Silence some unused function argument
	  warnings (unused due to debug not being enabled.)
	* src/dmengine.h src/dmsimple.c: Cleanup the dmsimple engine setup
	  system a bit, move bits out of DMEngine struct to local global
	  variables in dmsimple.

2017-08-20  Matti Hamalainen <ccr@tnsp.org>

	* tools/xm2jss.c: Cleanups.
	* tools/xm2jss.c: Bump version.
	* tools/xm2jss.c: Add a message.
	* tools/xm2jss.c: Add checking of duplicate patterns in the
	  optimization pass of xm2jss. Not actually removing the dupes yet.
	* minijss/jloadjss.c: Comment clarifications.
	* tools/xm2jss.c: Fix jssmod sample conversion flags storing ..
	  urgh.
	* minijss/jloadjss.c: Cleanups.
	* tools/xm2jss.c: Cleanups.
	* minijss/jloadjss.c: Clearer flag check.
	* minijss/jloadjss.c: Fixes to jssmod loader.
	* minijss/jloadjss.c tools/xm2jss.c: Add some blocks, cosmetics.

2017-08-19  Matti Hamalainen <ccr@tnsp.org>

	* Makefile.gen src/dmbstr.c src/dmbstr.h tools/libgfx.c
	  tools/libgfx.h: Move bitstream reading functions to libgfx, as
	  they were only used there.
	* tools/lib64gfx.c tools/libgfx.c: Update header blurps and
	  copyrights.
	* Makefile.gen src/libgfx.c src/libgfx.h tools/libgfx.c
	  tools/libgfx.h: Moved libgfx to tools/ as it's not really a very
	  generic piece of code that belongs to the engine ..
	* src/dmvecmat.c: Remove SSE2 SIMD vector math paths, apparently
	  they no longer work (segfault).. maybe a 32bit/64bit issue.
	* src/dmblitfunc.h: A macro was missing a \ .. fixed.
	* src/libgfx.c: Fix a warning about potentially clobbered variable
	  due to setjmp() use.
	* src/libgfx.c tools/gfxconv.c: Cleanups.
	* src/libgfx.c: Now with "almost" working 24bit PCX output. Almost.
	* src/libgfx.c src/libgfx.h: Constify.
	* src/libgfx.c: "Fix" the PNG/ILBM decoding to not use actual
	  bitdepths for indexed images, but force 8bits.
	* src/libgfx.c: Aaand some more work on PCX loader. Actually works
	  with 4/1 planes/bpp images now.
	* src/libgfx.c: Some cleanups.
	* src/libgfx.c: More work on PCX writer.
	* src/libgfx.c: More work on PCX reader.

2017-08-18  Matti Hamalainen <ccr@tnsp.org>

	* src/libgfx.c: Fix isPaletted check in PCX reader :P
	* src/libgfx.c: Improve error checking in PCX writer.
	* tools/gfxconv.c: Oops, two options were overlapping, fixed.
	* src/libgfx.c: Cleanup.
	* src/libgfx.c src/libgfx.h tools/gfxconv.c: More work on libgfx
	  etc.
	* src/libgfx.c src/libgfx.h tools/gfxconv.c: Rename struct
	  DMImageSpec to DMImageConvSpec.
	* tools/lib64gfx.c: Fix.
	* src/libgfx.c src/libgfx.h tools/gfxconv.c: More work on libgfx.
	* src/libgfx.c: Adjust debug messages and debug message levels in
	  libgfx.
	* src/libgfx.c src/libgfx.h: Work on libgfx.
	* src/libgfx.c src/libgfx.h: Make libgfx error mode a global
	  variable, at least for now.
	* src/libgfx.c: More work on PCX loader.
	* src/libgfx.c: Oops, forgot to adjust the writing and reading
	  when adding two members to the PCX header struct.
	* src/dmres.c: Improve fgets() implementation in dmres.
	* src/libgfx.c: Use define instead of magic number.
	* src/libgfx.c tools/gfxconv.c: Bump version and copyright.
	* src/libgfx.c: Somewhat improve PCX read support in libgfx.
	* tools/gfxconv.c: Fix a segfault by initializing the cfmt struct
	  pointer to NULL. Duh.

2017-04-21  Matti Hamalainen <ccr@tnsp.org>

	* COPYING README.txt src/dmlib.h: Update copyright.

2017-03-16  Matti Hamalainen <ccr@tnsp.org>

	* src/stb_image.c: Fix and silence some (useless) gcc warnings.

2016-10-03  Matti Hamalainen <ccr@tnsp.org>

	* Makefile.gen: Oops, do not default to -march=corei7 :S
	* src/dmres.c: Clarify certain initialization failure situations.
	* src/dmlib.c src/dmlib.h src/dmpack.c src/dmsimple.c: Improve
	  error handling and reporting slightly.

2016-05-19  Matti Hamalainen <ccr@tnsp.org>

	* Makefile Makefile.gen tools/fontconv.c: Fix build process.

2015-06-03  Matti Hamalainen <ccr@tnsp.org>

	* minijss/jloadjss.c: Cosmetic.
	* src/dmimage.h: Update copyright.
	* minijss/jssmix.c minijss/jssmix.h: Comments, cleanups.

2015-06-01  Matti Hamalainen <ccr@tnsp.org>

	* minijss/TODO.jss: Update TODO for miniJSS.

2015-05-27  Matti Hamalainen <ccr@tnsp.org>

	* tools/packed.c: Fix handling of -x option in packed.

2015-05-25  Matti Hamalainen <ccr@tnsp.org>

	* src/libgfx.c: Improve IFF FORM validity error message.
	* src/libgfx.c: Oops, when did I break this? IFF ILBM reader
	  should now work again.

2015-05-22  Matti Hamalainen <ccr@tnsp.org>

	* src/dmengine.c src/dmengine.h src/dmsimple.c: Fix audio sync
	  with nosound.

2015-05-21  Matti Hamalainen <ccr@tnsp.org>

	* src/dmengine.c: Improve error messages for resource not found
	  situations.

2015-03-10  Matti Hamalainen <ccr@tnsp.org>

	* minijss/jloadxm.c: Only initialize defpannings up to nchannels.
	* minijss/jloadxm.c: Cosmetics.

2015-03-09  Matti Hamalainen <ccr@tnsp.org>

	* tools/ppl.c: Add some extra error checking.
	* minijss/jloadjss.c minijss/jloadxm.c: Cosmetics.
	* minijss/jloadjss.c minijss/jloadxm.c: Rename variable.

2015-03-08  Matti Hamalainen <ccr@tnsp.org>

	* minijss/jloadjss.c: Some work on JSSMOD loader.
	* minijss/jloadxm.c: Add extra sanity checking to 16-bit sample
	  instruments in XM loader.

2015-03-07  Matti Hamalainen <ccr@tnsp.org>

	* minijss/jssmod.h: Change one JSSMOD struct type Sint16 -> Uint16.
	* src/dmfft.c: Cleanup.
	* README.txt: Update copyright.
	* minijss/jloadjss.c: Some more work on the loader.
	* tools/xm2jss.c: Use jsetDefaultRows here.
	* minijss/jssmod.h: Add define for default number of rows in
	  pattern.
	* minijss/jloadjss.c: Some work on refactoring the JSSMOD loader.
	* minijss/jssmod.h tools/xm2jss.c: Work on improved module
	  conversion.
	* tools/xm2jss.c: Cleanups, more consistent error messages.
	* tools/xm2jss.c: Improve module optimization.
	* tools/xm2jss.c: Cleanups in JSSMOD writing.
	* tools/xm2jss.c: Cleanups.
	* tools/xm2jss.c: Fix hasData handling and include dmfile.h header.

2015-03-06  Matti Hamalainen <ccr@tnsp.org>

	* minijss/jssmod.h: Change a JSSMOD struct member type.
	* minijss/jloadjss.c minijss/jloadxm.c: Cosmetics.
	* minijss/jssmod.c minijss/jssmod.h tools/objlink.c tools/packed.c
	  tools/ppl.c tools/view64.c: Cosmetics.
	* tools/xm2jss.c: Add sanity check to order list writing.
	* minijss/jloadjss.c minijss/jssmod.h: Work on JSSMOD format.
	* tools/auval.c tools/data2inc.c tools/dumpmod.c tools/fontconv.c
	  tools/gentab.c tools/gfxconv.c tools/lib64gfx.c tools/mod2wav.c
	  tools/xm2jss.c: Remove trailing whitespace.
	* minijss/jloadjss.c src/dmres.c: Cosmetics.
	* tools/xm2jss.c: Add some sanity checks.
	* tools/xm2jss.c: Cleanup.
	* minijss/jloadjss.c minijss/jssmod.h tools/xm2jss.c: Cosmetics.
	* minijss/jssmod.h: Bump JSSMOD version.
	* minijss/jssmod.h: Change some JSSMOD struct member types.
	* minijss/TODO.jss: Update notes.
	* minijss/jssmod.c: Simplify jssFreeModule() by using jssFree*()
	  functions for freeing parts of the data.
	* minijss/jloadxm.c: Rename some function arguments to better
	  reflect their meaning.
	* minijss/jloadxm.c: Use module->npatterns instead of
	  jsetMaxPatterns for the special empty pattern.
	* minijss/jssmod.c minijss/jssmod.h: Add functions
	  jssFreeInstrument(), jssFreeExtInstrument() and jssFreePattern().
	* minijss/jssmod.h: Add function argument names to prototypes.
	* minijss/jssmod.c: Rename some variables.
	* minijss/jssmod.h: Change sizes of some JSSMOD structure members.
	* minijss/jssmod.h: Bump up some JSS limits.
	* minijss/jloadjss.c: Add a sanity check for JSSMOD header values.

2015-03-05  Matti Hamalainen <ccr@tnsp.org>

	* minijss/jloadxm.c: Improve some comments.
	* minijss/jloadjss.c minijss/jssmod.h: Cosmetic.
	* minijss/jssmod.h: Bump up some maximum values for JSS module
	  data.
	* minijss/jloadjss.c: s/%i/%d/g.
	* minijss/jloadjss.c: Rename variable, improve two error messages.
	* minijss/jloadjss.c: Cosmetics.
	* tools/xm2jss.c: Cleanup.
	* minijss/jloadjss.c minijss/jssmod.h tools/xm2jss.c: Rename
	  pattern note packing flag COMP_* constants to JM_COMP_*.
	* minijss/jssmod.h tools/xm2jss.c: Cosmetics.
	* minijss/jloadjss.c: Remove some code duplication.
	* tools/xm2jss.c: Rename function arguments.
	* Makefile.gen tests/dzlib.c tests/testdmzlib.c: Rename one module
	  under tests/
	* minijss/jloadxm.c: Oops, left in an unused variable.
	* tests/plrtest.c: Do the file probing stuff here as well.
	* src/dmimage.c tools/fontconv.c: Use dmfreset() instead of
	  dmfseek() to seek to stream start.
	* minijss/TODO.jss: Add note about stereo/panning stuff to be
	  implemented in mixer.
	* tools/xm2jss.c: Comments.
	* tools/dumpmod.c: Cosmetics.
	* tools/dumpmod.c tools/mod2wav.c tools/ppl.c: Improve use of
	  probing in dumpmod, mod2wav and ppl.
	* minijss/jloadjss.c minijss/jloadxm.c: Improve probing.
	* minijss/jloadjss.c: Rename variables.
	* minijss/jloadjss.c: Cosmetics.
	* tools/xm2jss.c: Use %d instead of %i in formats.
	* tools/xm2jss.c: Cosmetics.
	* minijss/jmix_c_in.c minijss/jmix_post_c.h minijss/jmixtmpl_c.h:
	  Bump copyright.
	* minijss/jloadxm.c: Some work on the 0x0102 pattern loader.
	* minijss/jloadxm.c: Fix error message to reflect reality better.
	* minijss/jloadxm.c: Add a NULL pointer check here.
	* minijss/jmix_c_in.c minijss/jmixtmpl_c.h: Adjust mixing macros.
	* minijss/jloadxm.c: Clean up the pattern header parsing.
	* minijss/jloadxm.c: Initialize return variable.
	* minijss/jloadxm.c: It seems that the number of rows in XM format
	  version 0x0102 needs + 1.
	* minijss/jloadxm.c: Version 0x0102 has slightly different pattern
	  header than 0x0104.
	* minijss/jloadxm.c: Rename a variable.
	* minijss/jloadxm.c: Move jssXMLoadPatterns() closer to the
	  pattern unpacking functions.
	* minijss/jloadxm.c: Oops, 100L.
	* minijss/jloadxm.c: Mostly cosmetic change.
	* minijss/jloadxm.c: Some preliminary code for 0x0102 format
	  pattern support.
	* minijss/jloadxm.c: Move variable definitions closer to where
	  they are used.
	* minijss/jssmod.h: Oops, forgot to commit this change to add the
	  conversion table to JSSExtInstrument structure.
	* minijss/jloadxm.c: Some support for 0x0102 version of the XM
	  format. Does not work fully yet, probably due to different
	  pattern data storing method or something.
	* minijss/jloadxm.c: Revamp instrument sample loading somewhat.
	* minijss/jloadxm.c: Rename a variable.
	* minijss/jloadxm.c: Cosmetics.
	* Makefile.gen: Remove unused build rule.
	* src/dmlib.h: Check for DM_HAVE_STRING_H.
	* minijss/jloadxm.c: Assume that sample type 3 is basically
	  misinterpretation of the field as a bitfield, and accept that
	  has bidi-loop value in the XM loader.
	* editor/edmain.cpp tests/testdmzlib.c: Use dmMemset().
	* tools/dumpmod.c: Eliminate string.h from here.
	* Makefile.cross-mingw: Oops, these build system changes didn't
	  fly. Often CC is set to "cc" by default, thus preventing
	  default-override from working here.
	* minijss/jloadjss.c minijss/jloadxm.c minijss/jssmix.c
	  minijss/jssmod.c minijss/jssplr.c src/dmengine.c src/dmeval.c
	  src/dmfft.c src/dmpack.c src/dmperlin.c src/dmres.c
	  src/dmsimple.c src/dmvecmat.c src/dmzlib.c src/libgfx.c
	  tools/auval.c tools/gfxconv.c tools/lib64gfx.c tools/objlink.c
	  tools/packed.c tools/ppl.c tools/xm2jss.c: Use dmMemset().
	* Makefile Makefile.cross-mingw src/dmlib.c src/dmlib.h: Add
	  dmMemset().
	* src/dmimage.c src/stb_image.c: Use dmMemset, dmMalloc, dmRealloc
	  and dmFree directly. Use Uint8 instead of unsigned char.
	* src/stb_image.c: Get rid of string.h dependency in stb_image.
	* minijss/jloadjss.c minijss/jss.c minijss/jss.h minijss/jssmix.c
	  minijss/jssmix.h minijss/jssmod.c minijss/jssmod.h
	  minijss/jssplr.c minijss/jssplr.h: Bump copyright years.
	* minijss/jloadxm.c: Cosmetics.
	* minijss/jloadxm.c: Check header size against the known values.
	  Bail out if it's too small, and skip unknown data if header
	  specifies larger value than what we read.
	* minijss/jloadxm.c: Add XM format version check.
	* minijss/jloadxm.c: Add a meaningful error message for instrument
	  header read failure.
	* minijss/jloadxm.c: Rename a function.
	* minijss/jloadxm.c: Clean up the sample data loading a bit.
	* Makefile Makefile.cross-mingw: Change direct assignments to ?=,
	  so that those Makefile variables can be overridden.
	* src/dmimage.c: Add note about the 24-bit RGBA masks being
	  different.
	* src/dmimage.c: Move RGBA mask definitions to static global
	  variables that are chosen at compile time based on endianess.
	* src/dmengine.h: Comments, cosmetics.
	* src/libgfx.c: This should not be needed, actually.
	* src/dmres.c: Add extra debugging to resource node de-allocation
	  by checking refcount in dmResourceFree().
	* src/dmres.c: Fix use-after-free case.
	* minijss/jloadxm.c: Rename some function arguments for clarity.
	  One letter variable names are generally not so good.
	* minijss/jloadxm.c: Comments and cosmetics.
	* tests/fptest.c: Use DM_PRI* format specifiers here.
	* src/dmlib.h: Plurality.
	* src/dmlib.h: MinGW does not define PRI* format specifiers, so
	  define them ourselves :S
	* src/dmres.c: Use DM_WINDOWS check here instead of _WIN32.
	* src/dmlib.h: Check if we are compiling for Windows and if we are
	  compiling under MINGW.
	* Makefile.gen: Add necessary flag substitutions to where they are
	  needed.
	* Makefile.cross-mingw: Remove useless linker flags from
	  SDL_LDFLAGS.

2015-03-04  Matti Hamalainen <ccr@tnsp.org>

	* Makefile.cross-mingw Makefile.gen: Cross-build process fixes.
	* Makefile.cross-mingw: Do not specify certain linker flags by
	  default.
	* src/dmimage.c: Define STBI_ASSERT(x) as dummy if DM_DEBUG is not
	  enabled.
	* src/stb_image.c: Add #ifdef guards for stbi__get{16,32}le() for
	  cases where they are not needed (only GIF, TGA and BMP loaders
	  use them.)
	* minijss/jss.h: Oops, duped a macro argument name. Fixed.
	* src/dmimage.c: Disable formats other than PNG and JPEG from
	  stb_image.
	* minijss/jss.h minijss/jssplr.c src/dmzlib.c src/libgfx.c
	  src/stb_image.c tests/testdmzlib.c tools/lib64gfx.c
	  tools/xm2jss.c: Various fixes for issues reported by clang
	  static analyzer.
	* minijss/jss.c minijss/jss.h: #ifdef out code that is not needed
	  or used if JSS_LIGHT is defined.
	* minijss/jloadxm.c: Modularize some more.
	* minijss/jloadxm.c: Split envelope reading to tiny helper
	  function.
	* minijss/jloadxm.c: Split instrument sample data loading to
	  another function in XM loader.
	* minijss/jloadjss.c minijss/jssmod.c minijss/jssmod.h: Change API
	  of jssDecodeSample{8,16}() functions to return dmlib error codes
	  instead of plain boolean value. Change some of the relevant
	  places to use this return value.
	* tools/packed.c: Add informative message to packed.
	* minijss/jloadjss.c minijss/jloadxm.c minijss/jmix_c_in.c
	  minijss/jmixtmpl_c.h minijss/jssmix.c minijss/jssmix.h
	  minijss/jssmod.c minijss/jssmod.h minijss/jssplr.c
	  minijss/jssplr.h: Cosmetics pass, remove excess and trailing
	  whitespace.
	* minijss/jloadxm.c: Cosmetics.
	* minijss/jloadxm.c: Bump copyright.
	* minijss/jloadxm.c: Modularize the XM loader somewhat by
	  splitting to more functions.
	* src/stb_image.c: Oops, 100L in dmzlib context init in image
	  loader .. fixed.
	* src/dmres.c src/dmsimple.c: Cosmetics.
	* src/dmres.c src/dmzlib.c src/dmzlib.h src/stb_image.c
	  tests/testdmzlib.c: Rename some dmzlib functions and add context
	  init/close functions.
	* tools/packed.c: Fix '-n' option handling for packed.
	* src/dmpack.c src/dmsimple.c: Enable some error messages also in
	  not-debug-build.
	* minijss/jloadjss.c tools/xm2jss.c: Fix sNumForNotes
	  conversion/handling in JSSMOD loader and xm2jss.
	* Makefile.gen tools/dumpmod.c: Improve dumpmod output some more.
	* tools/xm2jss.c: Cosmetics.
	* tools/xm2jss.c: Rename a variable.
	* tools/xm2jss.c: Free the source module data at end.
	* tools/xm2jss.c: Comments, cosmetics, combine one error message.
	* tools/dumpmod.c: Various improvements in dumpmod output.
	* tools/xm2jss.c: Adjust messages to show user-visible (1 based)
	  instrument numbers.
	* tools/dumpmod.c: Improve output of dumpmod.
	* tools/xm2jss.c: Comment.
	* src/dmpack.c tests/testdmzlib.c tools/packed.c tools/xm2jss.c:
	  More fixes.
	* tools/data2inc.c: Minor fix.
	* src/dmlib.h src/dmres.c src/dmres.h: Hmm .. back out the Sint64
	  changes for now.
	* tests/testdmzlib.c: Fix ZLIB decompressor mode.

2015-03-03  Matti Hamalainen <ccr@tnsp.org>

	* tests/testdmzlib.c: Add header skip option to the dmzlib test.
	* src/dmpack.c src/dmres.c: Fix use of DM_FSEEK64().
	* src/dmargs_int.c src/dmblit.c src/dmblitfunc.h src/dmbstr.c
	  src/dmdrawline.h src/dmengine.c src/dmeval.c src/dmeval.h
	  src/dmfft.c src/dmfile.c src/dmgfx.c src/dmimage.c src/dmlib.c
	  src/dmlib.h src/dmlineclip.h src/dmpack.c src/dmres.c
	  src/dmscaledblit.h src/dmsimple.c src/dmstring.c src/dmtext_bm.c
	  src/dmtext_ttf.c src/dmtimeline.c src/dmtimelinew.c
	  src/dmunscaledblit.h src/dmvecmat.c src/dmwav.c src/dmwav.h
	  src/dmzlib.c src/libgfx.c src/stb_image.c: Cosmetics pass:
	  Remove excess whitespace.
	* tools/xm2jss.c: Improve messages.
	* tools/xm2jss.c: Improve comments.
	* tools/xm2jss.c: Cleanup.
	* tools/ppl.c: Cleanup.
	* tools/xm2jss.c: Code cleanup, in preparation for bug hunting.
	* tools/ppl.c: Bump copyright year.
	* Makefile.gen config.mak.in: Do not enable JSS_DEBUG when
	  DM_DEBUG is enabled, it's a bit too spammy even for that.
	* tools/xm2jss.c: Cosmetics.
	* tools/xm2jss.c: Cosmetic.
	* tools/dumpmod.c: Change dumpmod short format sample instrument
	  output.

2015-03-02  Matti Hamalainen <ccr@tnsp.org>

	* src/dmbstr.c: Move functions around for saner order.
	* src/dmbstr.h: Cosmetic.
	* src/dmbstr.c src/dmbstr.h: Cleanup, rename some variables, etc.
	* src/dmres.c src/dmres.h src/dmresw.c src/dmresw.h: Cleanups for
	  file endianess read/write helper functions.
	* src/dmfile.c src/dmres.c src/dmres.h: Cosmetic.
	* src/dmres.c src/dmres.h: Constify.
	* src/dmbstr.h: Add missing C++ guard.
	* src/dmcurves.h: The module header description was incorrect (due
	  to copypaste), fixed.
	* src/stb_image.c: Silence a warning.
	* src/dmzlib.c: Make one error message debug.
	* src/dmcurves.c src/dmcurves.h: Make bspline functions more
	  flexible.
	* src/dmimage.c: Change message to debug.
	* Makefile.gen config.mak.in src/dmsimple.c: Make the built in
	  setup font/screen image/bar bitmap optional.
	* src/dmzlib.c: Check for end of input data, there might be no
	  "final" bit set in the stream.
	* src/dmzlib.c: Cosmetics.
	* src/dmres.c src/stb_image.c tests/testdmzlib.c: Also initialize
	  DMZLibContext.inBufferStart where needed.
	* src/dmzlib.c: Comments, cosmetics.
	* src/dmres.c src/dmzlib.c src/dmzlib.h src/stb_image.c
	  tests/testdmzlib.c: Rename dmzlib structure members.
	* src/dmzlib.c: No need to handle literal copy of length zero.
	* src/dmzlib.c: Error message improvement.
	* src/dmzlib.c: Use size_t here.
	* src/dmzlib.c: Improve error handling.
	* src/dmzlib.c src/dmzlib.h: Comments, cleanups.
	* tests/testdmzlib.c: Oops, fix a nasty bug.
	* tests/testdmzlib.c: Initialize output and input size variables.
	* tests/testdmzlib.c: Cosmetics.
	* tests/testdmzlib.c: Work on testdmzlib.
	* Makefile.gen tests/testdmzlib.c: Add dmzlib / zlib test utility.
	* src/dmlib.c: Adjust program banner printing.
	* src/dmzlib.c src/dmzlib.h: Add some constants and make
	  initialization one-time only.
	* src/dmzlib.h: Clarify.
	* src/dmzlib.c src/dmzlib.h: Rename constants.
	* src/dmzlib.c: Rename a variable.

2015-03-01  Matti Hamalainen <ccr@tnsp.org>

	* src/dmzlib.c: Rename a macro.
	* src/dmsimple.c: Fix init messages.
	* src/dmres.c: Oops, remove debugging code.
	* src/dmsimple.c: Improve error handling.
	* src/dmsimple.c src/dmzlib.c src/dmzlib.h: Work on dmzlib.
	* src/dmzlib.c: Add some clarifying comments.
	* src/dmres.c: Corner case fix in resource preloading.
	* src/dmres.c: Typofix.
	* src/dmres.c: Cleanups.
	* Makefile.gen config.mak.in src/dmengine.c src/dmsimple.c: Make
	  more error message fall under DM_DEBUG.
	* Makefile.gen config.mak.in src/dmimage.c src/dmlib.h
	  src/dmres.c: Finishing touches to the DM_DEBUG stuff.
	* src/dmlib.h src/dmres.h: Move DM_FSEEK64() and DM_FTELL64()
	  macro definitions to dmlib.h
	* src/dmimage.c src/dmlib.h src/dmpack.c src/dmres.c src/dmzlib.c:
	  Add special debug error message function/macro that can be
	  disabled and compiled out.
	* src/dmres.c: Improve error message.
	* src/dmres.c: Sanitize resource data freeing.
	* src/dmengine.c: Cleanups.
	* src/dmimage.c: Image resources may get decoded multiple times,
	  so seek to node start.
	* src/dmres.c tools/packed.c: Cosmetic.
	* src/dmres.c src/dmres.h: Work on resource handling.
	* tools/packed.c: Remember to set the "compressed" size field for
	  raw nodes too, as we check it.
	* src/dmres.c: Oops, 100L.
	* src/dmpack.c src/dmpack.h tools/packed.c: Change PACK file
	  format to use 64 bit fileoffsets. Also switch some fields around
	  for nicety. This breaks compatibility, so bump version.
	* src/dmres.c src/dmres.h tools/packed.c: Use 64bit file offsets.
	* tools/packed.c: Oops, add a missing semicolon.
	* src/dmpack.h src/dmres.c: Cosmetics.
	* src/dmpack.c src/dmpack.h tools/packed.c: Change handling of
	  filename field in PACKs.
	* tools/packed.c: Implement raw uncompressed data copy.
	* tools/packed.c: Cleanup, remove debug code.
	* src/dmpack.c: Oops.
	* tools/packed.c: Add DMF_COMPRESSED flag to compressed entry node
	  flags.
	* tools/packed.c: Remove practically dead line of code.
	* tools/packed.c: Add option for setting the zlib compression
	  level.
	* tools/packed.c: Clean up the pack file node adding/extracting.
	* tools/packed.c: Comments, cosmetics.
	* tools/packed.c: Use dmMalloc0() instead of dmCalloc(1, ...)
	* tools/packed.c: Oops, missed this from a previous commit. :S
	* tools/packed.c: Cleanup.
	* tools/packed.c: Oops .. the file exclusion option wasn't working
	  correctly due to a silly bug (increasing wrong index variable).
	  Fixed.
	* tools/packed.c: Cosmetics.
	* tools/packed.c: Rename some variables.
	* tools/packed.c: Cosmetic.
	* src/dmres.c src/dmres.h: Add DMF_COMPRESSED flag for resource
	  nodes and support for raw data nodes.
	* src/dmres.c: Comments.
	* src/dmres.c: Error handling consistency.
	* src/dmres.c: Rename variables for consistency.
	* src/dmpack.c src/dmpack.h: Bump copyright.
	* src/dmpack.c: Cleanups and improve error handling.
	* tools/packed.c: Set default verbosity of 'packed' to none.
	* src/dmres.c: Rename label.
	* src/dmres.h: Cosmetic.
	* tools/packed.c: Remove an old hack.
	* tools/packed.c: Oops, a stray fclose() had been left in, causing
	  a double free.
	* src/dmpack.h: Use attribute packed.
	* src/dmzlib.h: Oops, missed this.
	* src/dmzlib.c: Cosmetic.
	* src/dmzlib.c: Rename a function argument.
	* src/dmzlib.c: Rename some variables.
	* src/dmzlib.c: Fix error checking and propagation. 10L.
	* src/dmzlib.c: Rename a variable.
	* src/dmzlib.c: Rename a function argument.
	* src/dmzlib.c: Rename bitreverse functions.
	* src/dmzlib.c src/dmzlib.h: Cosmetics.
	* tools/packed.c: Also here.
	* src/dmpack.h src/dmres.c: Move and rename a constant define.

2015-02-28  Matti Hamalainen <ccr@tnsp.org>

	* tools/packed.c: Clean up packed a bit.
	* src/dmres.c: Some work towards dmzlib decompression support for
	  resources. Not working yet.
	* src/dmzlib.c: Improve error message slightly.
	* src/dmzlib.c: Cosmetics.
	* src/dmzlib.c: Fix one function name.
	* src/dmres.c: Indentation cosmetic.

2015-02-27  Matti Hamalainen <ccr@tnsp.org>

	* Makefile.gen: Change 'make clean' rule so that it ignores
	  possible errors.
	* tools/gfxconv.c: Cleanup gfxconv option help a bit.
	* Makefile.gen config.mak.in: Begin process of making zlib
	  optional for some things. These changes are for build process
	  only, and lack any other implementation.
	* src/dmcurves.c: Comment cleanups.
	* tools/gfxconv.c: Improve help.
	* src/dmtext_bm.c: Oops. 100L fix to bitmapped text rendering.
	* tools/gentab.c: Add missing include.
	* src/dmcurves.h src/dmlib.h: Move dmClamp*() functions back to
	  dmlib.h
	* src/dmperlin.c: Curve macros are needed in dmperlin module.
	* Makefile.gen src/dmcurves.c src/dmlerp.c: Move lerp functions
	  from dmlerp.c to dmcurves.c, too.
	* src/dmengine.h: Include dmcurves.h in dmengine.h.
	* Makefile.gen src/dmcurves.c src/dmcurves.h src/dmlib.h: Add new
	  module dmcurves, that will contain functions for spline
	  generation etc and the LERP functions. Move LERP functions from
	  dmlib.h to dmcurves.h.
	* tools/gfxconv.c: Cosmetics.
	* tools/gfxconv.c: Fix a possibly uninitialized variable warning.
	* tools/gfxconv.c: Bump gfxconv version.
	* tools/gfxconv.c: Error handling cleanups/fixes.
	* src/dmblitfunc.h src/dmlib.h src/dmlinefunc.h src/libgfx.h:
	  Rename DMRGBA32 struct to DMColor and remove the original
	  redundant DMColor struct definition.
	* src/dmzlib.h: Cosmetics.
	* src/dmzlib.c: Rename some functions.
	* src/dmzlib.c: Fix error message.
	* src/dmsimple.c: Remember to initialize dmzlib in the engine.
	* src/stb_image.c: Fixes and cleanups.
	* src/dmzlib.c: Rename a function argument.
	* src/dmzlib.c: Oops, bugfix.
	* src/dmimage.c: Initialize variables so that we don't get garbage
	  in error situations.
	* src/dmsimple.c: Fix dmsimple.
	* src/stb_image.c: Remove the zlib implementation from stb_image.
	* src/dmzlib.c src/dmzlib.h src/stb_image.c: Clean up dmzlib and
	  use it in stb_image.
	* Makefile.gen tests/vptest.c: Remove vptest.
	* src/dmargs.c src/dmengine.c src/dmfile.c src/dmimage.c
	  src/dmlib.c src/dmlib.h src/dmres.c src/dmsimple.c
	  src/dmtimeline.c src/dmzlib.c src/dmzlib.h src/libgfx.c
	  tests/blittest.c tests/efu.c tests/evaltest.c tools/auval.c
	  tools/data2inc.c tools/dumpmod.c tools/fontconv.c tools/gentab.c
	  tools/gfxconv.c tools/lib64gfx.c tools/mod2wav.c tools/objlink.c
	  tools/packed.c tools/ppl.c tools/view64.c tools/xm2jss.c: Add
	  error code parameter to dmError() and dmErrorVA().
	* src/dmlib.c: Oops, forgot to add const in the actual function ..
	  100L.
	* src/dmlib.h: Remove check for GCC >= 3.x, it's only sane to
	  support 4+.
	* src/dmlib.c src/dmlib.h src/dmzlib.c: Cosmetic cleanups.

2015-02-26  Matti Hamalainen <ccr@tnsp.org>

	* src/dmzlib.c: Cleanup.
	* Makefile.gen src/dmq3d.c src/dmq3d.h tools/svg2qd.py: Remove
	  dmq3d stuff, it was for one demo project and belongs in the demo
	  code.
	* Makefile.gen src/dmpackutil.c src/dmpackutil.h tools/packed.c:
	  Remove the dmpackutil module, move the code to packed utility as
	  it is the only place it is used anyway.
	* src/dmzlib.c: Add kludge stbi__err() implementation temporarily
	  until the error handling in dmzlib module is sorted out properly.
	* src/dmimage.c src/stb_image.c: Use dmzlib module in stb_image.
	* Makefile.gen src/dmzlib.c src/dmzlib.h: Initial import of
	  separated zlib decoding routines lifted from Sean Barrett's
	  stb_image module (which is public domain). Still needs work to
	  be more in line with DMLib standards.
	* minijss/jssmod.c minijss/jssmod.h: Constify & cleanup.
	* src/libgfx.h: Delete useless include line.
	* tools/lib64gfx.c: Delete unused format definition.
	* README.txt: Viewmode utility was renamed to dumpmod, so reflect
	  that change in the README as well.
	* tools/lib64gfx.c: Implement multicolor / standard switching
	  support based on color ram value's fourth bit for multicolor
	  char mode decoding.

2015-02-25  Matti Hamalainen <ccr@tnsp.org>

	* tools/lib64gfx.c: Add kludge to allow more lax handling of the
	  "unknown" $2000 format.
	* Makefile.gen tools/dumpmod.c tools/viewmod.c: Rename viewmod
	  utility to dumpmod.
	* tools/view64.c: Adjust aspect ration stuff in view64.
	* tools/gfxconv.c tools/lib64gfx.c tools/lib64gfx.h
	  tools/view64.c: Remove the doubleMC madness completely. Should
	  be replaced with x/y aspect ratio information for display
	  purposes.
	* tools/lib64gfx.c: Fix the multicolor bitmap widths.
	* tools/view64.c: Various fixes in view64.
	* tools/lib64gfx.h: Cosmetics.
	* tools/lib64gfx.h: Remove some unused structures, etc.
	* tools/lib64gfx.c: Allocate somewhat larger initial encoding
	  buffer for C64 image encoders.
	* tools/lib64gfx.c: Cosmetic.
	* tools/gfxconv.c tools/view64.c: Fix some memory leaks etc.
	* tools/lib64gfx.c: Oops, plug a memory leak.
	* tools/gfxconv.c tools/lib64gfx.c tools/lib64gfx.h
	  tools/view64.c: Refactor the DMC64Image handling to be more
	  dynamic, and start work on allowing non 320/160 x 200 formats,
	  and charmode based formats. There is still work to be done, and
	  some problems to sort out.
	* src/libgfx.c: Some cleanups.
	* src/libgfx.c src/libgfx.h: Add size field for allocated data
	  size in DMImage.
	* src/libgfx.c: Use dmMalloc0() instead of dmCalloc() here.
	* tools/lib64gfx.c: Change dmC64DefaultSizes[] array into a
	  function instead.
	* tools/lib64gfx.h: Brackets.
	* tools/lib64gfx.c tools/lib64gfx.h: Cosmetics.
	* tools/lib64gfx.c tools/lib64gfx.h: Add dimension (w/h)
	  information fields to C64 image format struct.
	* tools/lib64gfx.c tools/lib64gfx.h: Cosmetics.
	* tools/lib64gfx.h: Comments, cosmetics.
	* tools/lib64gfx.c tools/lib64gfx.h: Add constant for max number
	  of enc/dec ops in C64 image format struct and check the
	  specified amount against that.
	* tools/lib64gfx.c tools/lib64gfx.h: Bump copyright year.
	* tools/lib64gfx.c: Cleanup.
	* tools/lib64gfx.c: Cosmetic.
	* tools/lib64gfx.c tools/lib64gfx.h: Initial implementation of
	  charmode support in lib64gfx.
	* tools/lib64gfx.c tools/lib64gfx.h: Cosmetics.
	* tools/lib64gfx.c tools/lib64gfx.h: Cosmetic.

2015-02-24  Matti Hamalainen <ccr@tnsp.org>

	* src/dmres.h: Cosmetics.
	* src/dmlib.h: Bump copyright year.
	* Makefile.gen src/lib64gfx.c src/lib64gfx.h tools/lib64gfx.c
	  tools/lib64gfx.h: Moved lib64gfx files under tools, as it's not
	  generic DMLIB module really.

2015-02-23  Matti Hamalainen <ccr@tnsp.org>

	* tools/gfxconv.c: Cosmetic.
	* tools/gfxconv.c: 10L.
	* tools/gfxconv.c: Some work on error handling.
	* src/dmlib.c src/dmlib.h: Add new error code DMERR_DATA_ERROR.
	* tools/gfxconv.c: Rename a variable.
	* src/lib64gfx.c: Added support to gfxconv/view64 for unknown(?)
	  bitmap format found on some Jukka Tapanimaki's archived disks,
	  f.e. Zamzara loading screen pictures and workstages.
	* src/lib64gfx.c: Cosmetic.
	* src/lib64gfx.c: Some dummy code for encfunctions.
	* src/lib64gfx.c src/lib64gfx.h: Implement DT_BGCOLOR_SET decode
	  op.
	* src/libgfx.c src/libgfx.h tools/gfxconv.c: Add separate X and Y
	  scaling to gfxconv and libgfx outputters.
	* src/lib64gfx.c: Actually fix commit 16aa5955dfb5.
	* src/dmimage.c: Cleanup.
	* src/dmimage.c src/stb_image.c: Mangle new stb_image to our
	  purposes.
	* Makefile.gen: Add -lm to mod2wav link stage.
	* tools/gfxconv.c: Add some error handling.
	* tests/blittest.c: Fix perling noise usage.
	* src/dmargs_int.c: Oops, fix argument handling.

2015-02-05  Matti Hamalainen <ccr@tnsp.org>

	* src/stb_image.c: Import newer version of stb_image.
	* COPYING: Update license with exception for stb_image.c

2015-02-17  Matti Hamalainen <ccr@tnsp.org>

	* Makefile.gen tests/efu.c: Link to -lm and fix to match changes
	  in dmperlin.

2015-02-05  Matti Hamalainen <ccr@tnsp.org>

	* README.txt: Remove license duplicate from README.

2015-02-04  Matti Hamalainen <ccr@tnsp.org>

	* src/dmlib.h src/dmperlin.c: Move perlin noise functions to
	  dmperlin.[ch] and make the API re-entrant.
	* src/dmperlin.h: Add new header file.
	* Makefile.gen: Fix build system for empty DEMO_BIN target.
	* Makefile Makefile.cross-mingw: Reorder for clarity.
	* tools/fontconv.c: Change fontconv -s option syntax.
	* src/dmengine.h src/dmtimeline.c: API changes to be used in
	  future.
	* src/dmtext.h: Remove unused function declaration.
	* README.txt: Cosmetics.
	* .hgignore: Update ignores.
	* Makefile.gen: Improve build system.
	* Makefile.cross-mingw: Comments, etc.
	* Makefile.cross-mingw Makefile.w32: Rename Makefile.w32 to more
	  logical Makefile.cross-mingw
	* Makefile Makefile.w32: Use ?= in the Makefiles to accept preset
	  values.
	* Makefile: Use pkg-config for Tremor.
	* src/dmtext_bm.c: Cleanup.
	* tools/fontconv.c: Cleanups in fontconv.

2015-02-03  Matti Hamalainen <ccr@tnsp.org>

	* src/dmlib.h: Oops. 10L.
	* src/dmfiletmpl.h src/dmlib.h src/dmres.c src/dmres.h
	  src/dmresw.c src/dmresw.h: Assume we always have 64bit type.
	* src/dmlib.c src/dmlib.h tools/gfxconv.c tools/objlink.c
	  tools/packed.c: Make value type of dmGetIntVal() unsigned.
	* src/dmimage.c src/stb_image.c: Modify stb_image so that we can
	  eventually lift out the zlib functionality.
	* COPYING README.txt: Update copyrights.
	* src/dmengine.c src/dmengine.h src/dmsimple.c: Possibly improve
	  audio synchronization.

2015-01-08  Matti Hamalainen <ccr@tnsp.org>

	* src/dmengine.c src/dmgfx.c tools/auval.c tools/fontconv.c
	  tools/gfxconv.c: Portability warning fixes.
	* tests/fptest.c tools/data2inc.c: Re-do some portability things.

2015-01-05  Matti Hamalainen <ccr@tnsp.org>

	* minijss/jssmod.h: Use struct packing and specific types for
	  JSSMOD data.
	* tests/fptest.c tools/data2inc.c tools/objlink.c: Portability
	  fixes.

2015-01-01  Matti Hamalainen <ccr@tnsp.org>

	* src/dmargs.h src/dmargs_int.c src/dmblitfunc.h src/dmdrawline.h
	  src/dmengine.c src/dmengine.h src/dmlib.h src/dmres.c
	  src/dmres.h src/dmresw.c src/dmresw.h src/dmscaledblit.h
	  src/dmsimple.c src/dmtimeline.c src/dmtimelinew.c src/dmvecmat.c
	  src/dmvecmat.h: Update copyrights.

2014-11-23  Matti Hamalainen <ccr@tnsp.org>

	* README.txt: Some updates in README.txt

2014-11-22  Matti Hamalainen <ccr@tnsp.org>

	* src/dmsimple.c: Oops, few dmargs* API changes related fixes were
	  missing.
	* src/dmargs.c src/dmargs.h src/dmargs_int.c tests/blittest.c
	  tests/efu.c tests/evaltest.c tests/vptest.c tools/auval.c
	  tools/data2inc.c tools/fontconv.c tools/gentab.c tools/gfxconv.c
	  tools/mod2wav.c tools/objlink.c tools/packed.c tools/ppl.c
	  tools/view64.c tools/viewmod.c tools/xm2jss.c: The argument
	  handling API in dmargs* was synced with th-libs.
	* config.mak.in: Oops, "DM_USE_C" was missing here.

2014-11-21  Matti Hamalainen <ccr@tnsp.org>

	* src/libgfx.c: Fix potential longjmp clobbering of variable.
	* src/lib64gfx.c: Fix c64 multicolor bitmap conversion for
	  !doubleMC case.
	* tools/xm2jss.c: Fix some brain farts in instrument remapping.

2014-10-23  Matti Hamalainen <ccr@tnsp.org>

	* tools/gfxconv.c: Add some code for parsing crop mode option, but
	  the logic itself is not yet implemented (nor the option visible).
	* tools/gfxconv.c: Cleanup some parsing logic.
	* src/dmeval.c src/dmeval.h: Rename a const.

2014-10-21  Matti Hamalainen <ccr@tnsp.org>

	* src/dmsimple.c: Simplify a bit.
	* src/dmengine.c src/dmengine.h: Effects API changes.
	* src/dmengine.h src/dmsimple.c: Add setup data options for menu
	  bar position/size adjustments.
	* src/dmengine.h src/dmsimple.c: Add "enter to start" text for the
	  setup screen.
	* src/dmengine.c src/dmengine.h src/dmsimple.c: Cleanups.
	* src/dmengine.c src/dmsimple.c: Fix audio playback.
	* Makefile.gen: Oops, -DDM_USE_C was not in the build process ...
	* minijss/jssmix.c: Add a better error for no mixing routines
	  compiled in.

2014-07-14  Matti Hamalainen <ccr@tnsp.org>

	* Makefile.gen config.mak.in: Remove obsolete configuration
	  setting.
	* Makefile Makefile.gen Makefile.w32: Improve build process.

2014-07-13  Matti Hamalainen <ccr@tnsp.org>

	* Makefile Makefile.gen Makefile.w32: Add flag variables for
	  SDL_ttf.
	* src/dmvecmat.c: Cleanups.
	* tools/gfxconv.c: Bitmap format specifying option changes.
	* tools/gfxconv.c: Cosmetics.
	* src/dmstring.c: Fix reallocation.
	* tools/gentab.c: Change program name.

2014-07-11  Matti Hamalainen <ccr@tnsp.org>

	* src/dmtimelinew.c src/libgfx.c: Reallocation fixes.
	* src/lib64gfx.c: Fix a 100L :S

2014-06-22  Matti Hamalainen <ccr@tnsp.org>

	* src/dmargs_int.c: Import commandline argument parsing fixes from
	  th-libs.

2014-05-23  Matti Hamalainen <ccr@tnsp.org>

	* src/dmlib.h: Reorder internal error code.

2014-05-17  Matti Hamalainen <ccr@tnsp.org>

	* tools/objlink.c: Bump objlink version.
	* tools/gfxconv.c: Oops, accidentally committed unfinished code :S
	* tools/gfxconv.c tools/objlink.c: Fix a silly segfault.
	* src/lib64gfx.c src/lib64gfx.h tools/gfxconv.c: Rename a function.

2014-05-16  Matti Hamalainen <ccr@tnsp.org>

	* tools/gfxconv.c: Remove dead code.
	* tools/gfxconv.c: Update copyright.
	* tools/gfxconv.c: Cosmetics.
	* tools/gfxconv.c: Oops, missing } from one of the previous
	  commits. 100L.
	* tools/gfxconv.c: Remove -F, leave only --formats option.
	* tools/gfxconv.c: Change -R remap option syntax slightly and
	  document it.
	* tools/gfxconv.c: Use dm_strdup_fext().
	* tools/gfxconv.c: Split dmGetFormatByExt() to
	  dmGetC64FormatByExt().
	* tools/gfxconv.c: Add some online documentation.
	* src/dmstring.c: Add comments.
	* src/dmlib.h src/dmstring.c: Add new utility function.
	* .hgignore: Update ignored files list.
	* tools/gfxconv.c: Bump version for gfxconv.
	* src/dmlib.h src/dmstring.c: Add new utility functions.
	* Makefile.gen dmargs.c dmargs.h dmargs_int.c dmblit.c
	  dmblitfunc.h dmbstr.c dmbstr.h dmdrawline.h dmengine.c
	  dmengine.h dmeval.c dmeval.h dmevalw.c dmfft.c dmfft.h dmfile.c
	  dmfile.h dmfiletmpl.h dmgfx.c dmimage.c dmimage.h dmlerp.c
	  dmlib.c dmlib.h dmline.c dmlineclip.h dmlinefunc.h dmmutex.h
	  dmpack.c dmpack.h dmpackutil.c dmpackutil.h dmperlin.c dmq3d.c
	  dmq3d.h dmres.c dmres.h dmresw.c dmresw.h dmscaledblit.h
	  dmsimple.c dmstring.c dmtext.h dmtext_bm.c dmtext_ttf.c
	  dmtimeline.c dmtimelinew.c dmunscaledblit.h dmvecmat.c
	  dmvecmat.h dmwav.c dmwav.h lib64gfx.c lib64gfx.h libgfx.c
	  libgfx.h setupfont.h setupimage.h setupmenubar.h src/dmargs.c
	  src/dmargs.h src/dmargs_int.c src/dmblit.c src/dmblitfunc.h
	  src/dmbstr.c src/dmbstr.h src/dmdrawline.h src/dmengine.c
	  src/dmengine.h src/dmeval.c src/dmeval.h src/dmevalw.c
	  src/dmfft.c src/dmfft.h src/dmfile.c src/dmfile.h
	  src/dmfiletmpl.h src/dmgfx.c src/dmimage.c src/dmimage.h
	  src/dmlerp.c src/dmlib.c src/dmlib.h src/dmline.c
	  src/dmlineclip.h src/dmlinefunc.h src/dmmutex.h src/dmpack.c
	  src/dmpack.h src/dmpackutil.c src/dmpackutil.h src/dmperlin.c
	  src/dmq3d.c src/dmq3d.h src/dmres.c src/dmres.h src/dmresw.c
	  src/dmresw.h src/dmscaledblit.h src/dmsimple.c src/dmstring.c
	  src/dmtext.h src/dmtext_bm.c src/dmtext_ttf.c src/dmtimeline.c
	  src/dmtimelinew.c src/dmunscaledblit.h src/dmvecmat.c
	  src/dmvecmat.h src/dmwav.c src/dmwav.h src/lib64gfx.c
	  src/lib64gfx.h src/libgfx.c src/libgfx.h src/setupfont.h
	  src/setupimage.h src/setupmenubar.h src/stb_image.c stb_image.c:
	  Move library source under src/ subdirectory.
	* lib64gfx.c: Add some comments.

2014-05-15  Matti Hamalainen <ccr@tnsp.org>

	* lib64gfx.c tools/gfxconv.c: Some work on charset conversion.

2014-05-14  Matti Hamalainen <ccr@tnsp.org>

	* dmblitfunc.h dmlib.h dmscaledblit.h minijss/jmix_c_in.c
	  minijss/jssmix.c tests/fptest.c tools/ppl.c: Add some separate
	  macros for 64/32 precision fixed point types.

2014-05-13  Matti Hamalainen <ccr@tnsp.org>

	* libgfx.c libgfx.h: Use dmlib error code return value in cases
	  where a plain boolean was used before.

2014-05-06  Matti Hamalainen <ccr@tnsp.org>

	* tools/xm2jss.c: Fix some order list and pattern handling things.
	* tools/gfxconv.c: Error handling.
	* COPYING README.txt dmlib.h: Bump copyright years.
	* dmlib.c: Cosmetics.

2014-05-05  Matti Hamalainen <ccr@tnsp.org>

	* lib64gfx.c: Add some parenthesis to the macros.

2013-12-28  Matti Hamalainen <ccr@tnsp.org>

	* .hgsigs: Added signature for changeset 606a7ee88198

2013-12-21  Matti Hamalainen <ccr@tnsp.org>

	* .hgsigs: Added signature for changeset c63e24f9aa9a

2013-11-02  Matti Hamalainen <ccr@tnsp.org>

	* dmbstr.c dmbstr.h libgfx.c: Modularize bitstream reader.

2013-10-30  Matti Hamalainen <ccr@tnsp.org>

	* tools/gfxconv.c: Add some error checking.

2013-10-18  Matti Hamalainen <ccr@tnsp.org>

	* tools/xm2jss.c: Cosmetics.
	* tests/plrtest.c tools/mod2wav.c tools/ppl.c tools/viewmod.c
	  tools/xm2jss.c: Oops, fix some inverted booleans.
	* dmengine.c minijss/jloadjss.c minijss/jloadxm.c minijss/jssmod.h
	  tests/plrtest.c tools/mod2wav.c tools/ppl.c tools/viewmod.c
	  tools/xm2jss.c: Silence some "probing".
	* tools/viewmod.c: Add -d option to viewmod.
	* tests/plrtest.c: Fix non-fallback loading of JSSMod.
	* tests/plrtest.c: Fix a potential NULL pointer usage.

2013-08-04  Matti Hamalainen <ccr@tnsp.org>

	* dmengine.c dmengine.h dmsimple.c: Move audio callback code to
	  dmengine.

2013-08-06  Matti Hamalainen <ccr@tnsp.org>

	* dmfile.c: Cleanup.

2013-08-04  Matti Hamalainen <ccr@tnsp.org>

	* dmsimple.c: Fix compilation.
	* dmengine.c dmsimple.c: Merged.
	* dmengine.h dmsimple.c: Add audio sample size information into
	  the engine structure.

2013-08-03  Matti Hamalainen <ccr@tnsp.org>

	* dmengine.c dmengine.h dmsimple.c: Cosmetics.
	* dmengine.c dmsimple.c: Move a function implementation.

2013-07-30  Matti Hamalainen <ccr@tnsp.org>

	* dmengine.h dmsimple.c: Fix audio support.
	* dmengine.h dmsimple.c: Fix the audio simulation code to actually
	  compile.
	* dmengine.h dmlib.h dmsimple.c: Add initial code for simulating
	  audio playback while in no-sound situation.

2013-05-29  Matti Hamalainen <ccr@tnsp.org>

	* dmfft.h: Cosmetics.

2013-05-24  Matti Hamalainen <ccr@tnsp.org>

	* dmengine.c minijss/jssplr.c: Restore old note frequency
	  calculation for now.
	* minijss/jloadxm.c: Clean up the XM module loader a bit, add more
	  error checking.
	* minijss/jloadjss.c minijss/jssmod.h tests/plrtest.c
	  tools/mod2wav.c tools/ppl.c tools/viewmod.c: Change JSSMOD
	  loader to use DMResources.

2013-05-23  Matti Hamalainen <ccr@tnsp.org>

	* minijss/jssplr.c: Adjust frequency computation formula.
	* minijss/jssplr.c: Silence some warnings.

2013-05-10  Matti Hamalainen <ccr@tnsp.org>

	* dmfft.c: Return the power sum variable in the FFT conversion.
	* dmfft.c dmfft.h: Add some utility functions in the FFT module.
	* tools/svg2qd.py: Add some comments.
	* dmlib.h: Indentation cosmetics.

2013-05-09  Matti Hamalainen <ccr@tnsp.org>

	* dmsimple.c: Fix two 10L: forgot to rename these structure
	  members here.
	* stb_image.c: Use SDL types.
	* dmeval.c: Remove dead code.
	* dmeval.c dmeval.h dmevalw.c: Some more work. Still broken.
	* dmeval.c dmeval.h: Moar work.
	* dmeval.c dmeval.h: More work.
	* dmengine.c: Fix 10L in engine base code.
	* dmeval.c dmeval.h dmevalw.c dmevalw.h tests/evaltest.c
	  tools/auval.c: Large cleanup, breaking everything. Yay.
	* tools/auval.c: Use DMMutex and the appropriate function wrappers.
	* minijss/jmixtmpl_c.h: Silence some warnings.
	* dmdrawline.h: Silence some warnings.

2013-05-08  Matti Hamalainen <ccr@tnsp.org>

	* dmimage.c: Fix 24-bit surface conversions in image loader.

2013-05-05  Matti Hamalainen <ccr@tnsp.org>

	* dmengine.h dmsimple.c: Add some configurable texts to setup
	  screen.
	* dmengine.h dmsimple.c: Add mutex locking to audio stream stuff.
	* dmengine.h dmsimple.c: Rename some variables.
	* dmengine.h dmsimple.c: Add variable for detecting if we are in
	  "native" video resolution.
	* tools/packed.c: Improve packed by adding file exclusion option.

2013-05-04  Matti Hamalainen <ccr@tnsp.org>

	* dmfft.c: Use DM_PI instead of M_PI.
	* dmfft.c dmfft.h: Add two more functions for converting FFT data
	  to frequency and time domains.
	* Makefile.gen dmfft.c dmfft.h: Add FFT routines.
	* dmbstr.c: Remove trailing empty lines.
	* dmeval.c dmeval.h: Rename some constants.
	* tools/ppl.c: Uppercase the strings in PPL for now.
	* dmlib.h dmstring.c: Add implementation of dm_strndup().
	* minijss/jssmod.c minijss/jssmod.h: Cosmetics.

2013-04-22  Matti Hamalainen <ccr@tnsp.org>

	* dmeval.h: Add associativity types enum.
	* dmeval.c: Fix.
	* dmeval.c dmeval.h dmevalw.c: More work on the evaluator. Still
	  broken, of course.

2013-04-21  Matti Hamalainen <ccr@tnsp.org>

	* tests/efu.c tests/evaltest.c: Fix more tests.
	* tests/vptest.c: API changes update.
	* dmres.c: Handle preloading of resources that do not have rops.
	* dmres.c: Set packfile fileops in the appropriate handles.
	* dmpackutil.c: Fix pack file writing.
	* dmres.c: Add some debugging.
	* dmres.c dmsimple.c: Fix resource loading.
	* dmres.c dmres.h: More work.
	* dmres.c dmres.h: Work on getting the resource subsystem working
	  again ..
	* dmq3d.c dmres.c dmres.h dmsimple.c tests/plrtest.c
	  tools/fontconv.c tools/mod2wav.c tools/ppl.c tools/viewmod.c
	  tools/xm2jss.c: More work on resources API.
	* dmres.c dmres.h: More work on resource handling cleanup.
	* dmres.c: Fix function name.
	* dmevalw.c: Cosmetics.
	* dmeval.c dmeval.h dmevalw.c dmevalw.h: Add new header file
	  dmevalw.h
	* Makefile.gen dmeval.c dmevalw.c: Move dm_print_optree() to
	  dmevalw.c
	* editor/edmain.cpp: Update to match API changes.
	* dmengine.c dmengine.h dmpack.c dmpack.h dmpackutil.c
	  dmpackutil.h dmres.c dmres.h dmsimple.c tools/packed.c: Rename
	  many pack & resource handling functions.

2013-04-19  Matti Hamalainen <ccr@tnsp.org>

	* dmpackutil.c: Rename a variable.
	* dmres.c dmres.h: Sanitize some more includes.
	* dmpack.c: Remove unused include.

2013-04-18  Matti Hamalainen <ccr@tnsp.org>

	* dmgfx.c: Slightly optimize h/v-line routines.

2013-04-17  Matti Hamalainen <ccr@tnsp.org>

	* Makefile.gen: Make pre-built header versions of assets not
	  depend on fontconv and data2inc.
	* tests/testeval.sh: Fix path to evaltest binary.
	* Makefile.gen: Improve build system by adding support for
	  separate binary paths for tools and tests, that default to
	  $(DMLIB)tools/ and $(DMLIB)tests/
	* tests/testeval.sh: Don't remove the test source/binary files.
	* tests/testeval.sh: Add tests.
	* tests/evaltest.c: Increase benchmark rounds.
	* tools/auval.c: Cleanups.

2013-04-16  Matti Hamalainen <ccr@tnsp.org>

	* dmeval.c tools/auval.c: Add XOR operator (^, caret) to the
	  parser .. was implemented already otherwise.
	* dmeval.c: Cleanups.
	* dmeval.c: Simplify by merging several pass functions.
	* tests/testeval.sh: Another testcase.
	* tools/auval.c: Remove some remnants of Lua mode.
	* dmeval.c: Fix bitshift << >> operator precedence reordering.
	* dmeval.c: Disable spurious debugging for now.
	* dmeval.c: More fixes in reordering.
	* dmeval.c: Add some debugging.
	* dmeval.c dmeval.h tests/evaltest.c: Add output file stream
	  argument to dm_print_optree().
	* dmeval.c: Constify.
	* tests/evaltest.c: Free some structures in the test program.
	* dmeval.c: Work towards plugging memory leaks.
	* dmeval.c: Cleanup.
	* tests/testeval.sh: Few more tests.
	* dmeval.c: Improve reordering some more, produce less nesting.
	* dmeval.c dmeval.h: More work on evaluator reordering pass.
	* dmeval.c tests/testeval.sh: Fix & precedence vs +.
	* tools/auval.c: Reset keytime and update screen on F2.
	* Makefile.gen tools/auval.c: Added Auval with removed Lua
	  dependancy, using dmeval only.
	* tests/testeval.sh: Add testing script.
	* dmeval.c: Do not free the temporary reordering result.
	* dmeval.c: Set node->subexpr to NULL in free, as we are
	  paranoidly cargo-culting a bit.
	* dmeval.c: No need to process up to DM_MAX_ARGS, we know the
	  actual number of arguments there can be.
	* dmeval.h: Cosmetics.
	* dmeval.c: Remove PARSE_WS, it's not used anymore.
	* tests/evaltest.c: Moar work.
	* tests/evaltest.c: Ok, remove the default formula too.
	* tests/evaltest.c: Lessen verbosity.
	* dmeval.c dmeval.h tests/evaltest.c: More work.
	* dmeval.c dmeval.h tests/evaltest.c: Moar work.
	* dmeval.c: Cleanups.
	* dmeval.c: Set result variables to zero.
	* dmeval.c: Improve parsing.
	* dmeval.c: Cosmetics.
	* dmeval.h: Add some comments.
	* tests/evaltest.c: Set default formula.
	* dmeval.c: And another fix.
	* dmeval.c: And another fix to parsing.
	* dmeval.c dmeval.h: More work on evaluator.
	* tests/evaltest.c: Add -f option to evaltest.
	* Makefile.gen tests/evaltest.c: Add evaltest.
	* Makefile.gen tests/plrtest.c tests/testpl.c: Rename testpl to
	  plrtest.
	* Makefile.gen: Clean up build system a bit.
	* dmeval.c dmeval.h: Some more work.
	* dmeval.c dmeval.h: Some minor touches to evaluator code.
	* .hgignore: Update .hgignore.
	* TODO.jss minijss/TODO.jss: Move a TODO doc.
	* Makefile.gen setupfont.h setupimage.h setupmenubar.h: Make
	  converted asset headers have no comment.
	* Makefile.gen: Fix build process depencies for asset conversions.
	* Makefile.gen jloadjss.c jloadxm.c jmix_c_in.c jmix_post_c.h
	  jmixtmpl_c.h jss.c jss.h jssmix.c jssmix.h jssmod.c jssmod.h
	  jssplr.c jssplr.h minijss/jloadjss.c minijss/jloadxm.c
	  minijss/jmix_c_in.c minijss/jmix_post_c.h minijss/jmixtmpl_c.h
	  minijss/jss.c minijss/jss.h minijss/jssmix.c minijss/jssmix.h
	  minijss/jssmod.c minijss/jssmod.h minijss/jssplr.c
	  minijss/jssplr.h: Move miniJSS into a subdirectory.
	* font.ttf tests/font.ttf tests/tnsp.png tnsp.png: Move some more
	  files.
	* testfs.c: Remove unused test.
	* Makefile.gen fontconv.c tools/fontconv.c: Work towards fixing
	  the build.
	* config.mak.in: Add Tremor configuration setting in example
	  config .. somehow forgot that. Oops.
	* Makefile.gen buttons.svg editor/buttons.svg editor/pause.png
	  editor/play1.png editor/play2.png editor/rewind.png
	  editor/stop.png fptest.c pause.png play1.png play2.png
	  rewind.png stop.png tests/fptest.c: More cleanup work. Build is
	  broken for now.
	* tools/data2inc.c tools/gentab.c tools/gfxconv.c tools/mod2wav.c
	  tools/objlink.c tools/packed.c tools/ppl.c tools/svg2qd.py
	  tools/view64.c tools/viewmod.c tools/xm2jss.c utils/data2inc.c
	  utils/gentab.c utils/gfxconv.c utils/mod2wav.c utils/objlink.c
	  utils/packed.c utils/ppl.c utils/svg2qd.py utils/view64.c
	  utils/viewmod.c utils/xm2jss.c: Rename again.
	* blittest.c data2inc.c edgui.cpp editor/edgui.cpp
	  editor/edmain.cpp editor/edmain.h editor/edres.cpp
	  editor/edres.h editor/edtimeline.cpp editor/edtimeline.h
	  editor/edtlobj.cpp editor/edtlobj.h editor/edview.cpp
	  editor/edview.h editor/edwaveform.cpp editor/edwaveform.h
	  edmain.cpp edmain.h edres.cpp edres.h edtimeline.cpp
	  edtimeline.h edtlobj.cpp edtlobj.h edview.cpp edview.h
	  edwaveform.cpp edwaveform.h efu.c gentab.c gfxconv.c mod2wav.c
	  objlink.c packed.c ppl.c svg2qd.py testpl.c tests/blittest.c
	  tests/efu.c tests/testpl.c tests/vecmattest.c tests/vptest.c
	  utils/data2inc.c utils/gentab.c utils/gfxconv.c utils/mod2wav.c
	  utils/objlink.c utils/packed.c utils/ppl.c utils/svg2qd.py
	  utils/view64.c utils/viewmod.c utils/xm2jss.c vecmattest.c
	  view64.c viewmod.c vptest.c xm2jss.c: Move files to various
	  subdirectories.
	* assets/SetupFont.dmf assets/SetupFont.fnt assets/SetupImage.png
	  assets/SetupImage.svg assets/SetupMenuBar.png assets/buttons.svg
	  graphics/SetupFont.dmf graphics/SetupFont.fnt
	  graphics/SetupImage.png graphics/SetupImage.svg
	  graphics/SetupMenuBar.png graphics/buttons.svg: Renamed
	  directory.

2013-04-15  Matti Hamalainen <ccr@tnsp.org>

	* fontconv.c: And another 10L.
	* fontconv.c: Fix fontconv option handling again.
	* fontconv.c: Add linefeed.
	* fontconv.c: Add some help text to fontconv.
	* fontconv.c: Change semantics of fontconv utility.
	* fontconv.c: Bump version.
	* ppl.c: Add SDL.h #include to ppl.
	* dmengine.c dmengine.h dmsimple.c dmtimeline.c dmtimelinew.c: Add
	  comment headers to several files.
	* dmengine.h dmsimple.c: Change how audio configuration works.
	* dmsimple.c: Change audio default setup.
	* dmperlin.c: Cleanups.
	* dmengine.h dmtimeline.c dmtimelinew.c: Some work on the timeline
	  code.
	* dmtext.h: Cosmetics.
	* dmengine.h: Add layer variable to timeline data.
	* dmengine.h dmsimple.c: Add condensed text configuration option
	  to setup screen config.
	* dmtext.h dmtext_bm.c: Add condensed boolean flag to bitmap text
	  rendering functions.
	* fontconv.c: Add color setting option to fontconv.
	* dmsimple.c: Make left/right arrow keys to set
	  windowed/fullscreen.
	* dmsimple.c: Remove the note about TNSP simple demoengine.
	* dmres.c: Win32 compatibility.
	* dmres.c: Do not add randomly dmf_open()'d files that do not
	  exist in resource lib to the lib.
	* dmres.c: Add error message to failed preloading.
	* dmres.c: Cleanups.
	* dmres.c dmres.h: More work on resource management.

2013-04-13  Matti Hamalainen <ccr@tnsp.org>

	* Makefile.gen: Oops, add -O3 back to default CFLAGS again.
	* dmengine.h dmsimple.c: Some more work.
	* dmengine.h: Remove some constants.
	* dmsimple.c: More work.
	* dmengine.h dmsimple.c: More work.

2013-04-12  Matti Hamalainen <ccr@tnsp.org>

	* dmsimple.c: Aaaand some more work on mode selector.
	* dmsimple.c: Adjust menu entry padding.
	* dmsimple.c: Improve resource loading screen.
	* dmsimple.c: A bit slower screen update rate.
	* dmsimple.c: Cosmetics.
	* dmsimple.c: Pre-convert/scale menu background and use direct
	  blitting.
	* dmres.c dmres.h: Add DRF_USE_STDIO flag for resources.
	* dmlib.h: Make certain static inline graphics functions always
	  available, no need to put them inside conditional.
	* dmlib.h: Add new dmCopySurface() helper/wrapper function.
	* dmblit.c dmlib.h: Add new scaled surface conversion function.
	* dmres.c: Fix some resource code checks.
	* dmsimple.c: More work on setup.
	* Makefile.gen gfxconv.c setupmenubar.h: Rename things; Fix build
	  by combining the conflicting rules.
	* Makefile.gen: Add setup menu bar image conversion to build
	  process, move some things around.
	* graphics/SetupMenuBar.png: Added default setup menubar image.
	* dmres.c: Cosmetics.
	* dmres.c dmsimple.c: Fixes in resource management.
	* dmres.c dmres.h: Sanitize resource preloading function a bit.
	* dmlib.h: Change resource directory path DATA/ -> data/
	* dmsimple.c: Cosmetics.
	* dmsimple.c: Use dmres_find() instead of dmf_open().
	* Makefile.gen: Remove setupfont.h and setupimage.h from direct
	  build targets, so that they do not get deleted, only updated
	  when needed by other targets.
	* Makefile.gen dmengine.h dmsimple.c: More work on the video setup
	  screen.
	* dmsimple.c: Add a comment about no-sound support to the relevant
	  part in audio setup error checking.
	* edmain.cpp: Fix some renamed variables in editor code side.
	* dmengine.h dmsimple.c: More work on video setup.
	* setupfont.h setupimage.h: Actually, add these back .. easier for
	  sub-projects that way.
	* dmsimple.c: #include the default setup image and font.
	* graphics/SetupImage.png: More colourful rendition.
	* graphics/SetupImage.svg: Another export.
	* setupfont.h setupimage.h: Remove generated files.
	* Makefile.gen: Fix and improve build process.
	* data2inc.c: Do not add 'const' keyword automatically.
	* pplfont.h: Remove unused file.
	* Makefile.gen ppl.c setupfont.h setupimage.h: Build setupfont.h
	  and setupimage.h from source data files. Use setupfont in PPL.
	* graphics/SetupFont.fnt: Add original TSFONT format version of
	  the setup font.
	* graphics/SetupFont.dmf: Changed the setup font slightly.
	* graphics/SetupFont.dmf graphics/SetupFont.fnt: Rename again.
	* graphics/SetupFont.fnt graphics/SetupImage.png
	  graphics/SetupImage.svg graphics/videosetup.png
	  graphics/videosetup.svg: Rename and add some files.
	* fontconv.c: Remove C source output mode, it is useless.
	* dmengine.h dmsimple.c: Add some initial code for video setup
	  screen.

2013-04-10  Matti Hamalainen <ccr@tnsp.org>

	* graphics/videosetup.png: Add grayscaled indexed (5bpp) rendering
	  of the video setup screen background.
	* graphics/videosetup.svg: Hide the mockup.
	* graphics/buttons.svg graphics/videosetup.svg: Add some graphics
	  source files.

2013-04-05  Matti Hamalainen <ccr@tnsp.org>

	* dmsimple.c: Fix some error messages.
	* Makefile.gen config.mak.in dmengine.c dmengine.h dmsimple.c:
	  Make timeline stuff optional.

2013-03-17  Matti Hamalainen <ccr@tnsp.org>

	* Makefile.gen: Fix build.

2013-02-17  Matti Hamalainen <ccr@tnsp.org>

	* dmsimple.c: Work with no sound as well.

2013-01-05  Matti Hamalainen <ccr@tnsp.org>

	* COPYING README.txt: Update copyright.
	* dmlib.h: Update copyright year.

2013-01-04  Matti Hamalainen <ccr@tnsp.org>

	* dmfile.c dmfile.h lib64gfx.c lib64gfx.h: Move utility function
	  dmReadDataFile() to dmfile module instead.

2012-12-30  Matti Hamalainen <ccr@tnsp.org>

	* gfxconv.c libgfx.c libgfx.h: Add a slightly different raw output
	  format.

2012-12-22  Matti Hamalainen <ccr@tnsp.org>

	* edtimeline.cpp edtimeline.h edwaveform.cpp edwaveform.h: Moar
	  work on the editor (broken).

2012-12-20  Matti Hamalainen <ccr@tnsp.org>

	* dmengine.h dmtimelinew.c: Remove function, to be moved into the
	  editor code completely.
	* Makefile.gen: Fix build by moving moc_* from TARGETS to TMPFILES.

2012-12-04  Matti Hamalainen <ccr@tnsp.org>

	* Makefile.gen: Add zlib LDFLAGS to view64 linking phase.
	* lib64gfx.c: Fix a rather silly buffer reallocation + use after
	  modify case. Urgh.

2012-11-27  Matti Hamalainen <ccr@tnsp.org>

	* dmwav.c: Simplify wav chunk header writing slightly.

2012-11-26  Matti Hamalainen <ccr@tnsp.org>

	* ppl.c: Fix copyright.

2012-11-23  Matti Hamalainen <ccr@tnsp.org>

	* jssplr.c: Update some comments.
	* Makefile.gen gfxconv.c view64.c: Adjust to conform to lib64gfx
	  API changes.
	* lib64gfx.c lib64gfx.h: Improve DMC64Image -> DMImage conversion
	  facilities.
	* jssplr.c: Cosmetics.
	* dmtimeline.c dmtimelinew.c jloadxm.c: Remove useless (Uint8 *)
	  typecasts now that dmf_{read,write}_str() uses void.
	* dmres.c dmres.h dmresw.c dmresw.h: s/Uint8/void/ in
	  dmf_{read,write}_str().
	* jloadxm.c: Rename internal structures, cosmetics.

2012-11-22  Matti Hamalainen <ccr@tnsp.org>

	* gfxconv.c: Bump version.
	* gfxconv.c: Initial support for bitmap -> bitmap conversion in
	  gfxconv.
	* lib64gfx.h: Fix comments to reflect current situation.
	* gfxconv.c: Make dmConvertByte() static.
	* gfxconv.c: Cosmetics.
	* lib64gfx.h: Make encoding function public.
	* lib64gfx.c: Actually return/set the pointer to the encoded image
	  data when done.
	* lib64gfx.c lib64gfx.h: Rename the generic probing function.
	* lib64gfx.c: Add loading address to the encoding functionality.
	* lib64gfx.c: Use size_t instead of int here to avoid signedness
	  issues.
	* lib64gfx.c: Add helper macros for getting hi/lo bytes of 16bit
	  BE words and use them.
	* lib64gfx.c: Change filename extension of DrazPaint 2.0 packed
	  format to avoid conflict with the unpacked format while allowing
	  the user to selecto output format via extension.
	* lib64gfx.c: Free the correct buffer pointer in error situations
	  in the encoder function.
	* lib64gfx.c lib64gfx.h: Rename generic probing function to match
	  the style of other lib64gfx functions.
	* lib64gfx.c: Take loading address into account while encoding, so
	  start other data from offset +2.
	* lib64gfx.c: Add helper macros and use them to set the loading
	  address while encoding.
	* gfxconv.c lib64gfx.c lib64gfx.h view64.c: Begin preparations for
	  improved bitmap conversion support. Breaks lib64gfx API.
	* lib64gfx.c: Adjust packed Amica paint format probe function to
	  return less false positives.
	* lib64gfx.c: Implement initial generic bitmap "encoding"
	  function, that constructs generic bitmap formats as a "reverse"
	  of the decoding process.
	* lib64gfx.c: Add support for converting some FLI formats, such as
	  Blackmail FLI and FLI Designer FLI.
	* gfxconv.c lib64gfx.c lib64gfx.h view64.c: Greatly simplify and
	  also improve the multicolor/hires/lace bitmap->image conversion
	  functionality. This breaks the API, however, adjust gfxconv and
	  view64 accordingly.
	* lib64gfx.c: Combine conversion of interlaced and normal
	  multicolor images to one function.
	* lib64gfx.c: Simplify multicolor/interlaced multicolor decoding
	  by factoring some to a separate function.
	* lib64gfx.c: Add Run Paint MC unpacked format and Art Studio
	  hires format.
	* lib64gfx.c: Add support for Interpaint (unpacked) and Doodle
	  (unpacked) hires formats.
	* lib64gfx.c: Fix hires bitmap conversion to DMImage, the screen
	  colors per bit state were reversed.

2012-11-21  Matti Hamalainen <ccr@tnsp.org>

	* lib64gfx.c: Add Advanced Art Studio format support.
	* lib64gfx.c: Split the RLE decoding from DrazPaint/Lace and Amica
	  paint decoders to a generic function.
	* Makefile.gen: Objects being added twice to the lib archive fixed.

2012-11-19  Matti Hamalainen <ccr@tnsp.org>

	* stb_image.c: Use (void) foo instead of foo = foo to silence the
	  compiler warning about unused argument, better this way.
	* jss.c jss.h: Constify.
	* lib64gfx.c: Cosmetics.
	* lib64gfx.c: Add some comments.
	* lib64gfx.c: Return better error values, using DMERR_* enums.
	* gfxconv.c lib64gfx.c lib64gfx.h view64.c: Constify.
	* lib64gfx.c lib64gfx.h: s/decenc/encdec/g
	* lib64gfx.c: Cleanups.
	* lib64gfx.c: Add sanity checking.
	* lib64gfx.h: Add some structures and enums for future.
	* lib64gfx.c lib64gfx.h: Collapse most of the probing functions
	  into one generic probe, as they only check loading address and
	  file size.
	* lib64gfx.c lib64gfx.h: Start work on making C64 formats encoding
	  possible by changing DMDecodeOps to DMEncDecOps and adding
	  fields and op enums for custom encode functions, renaming, etc.
	  Split generic op sanity checking into a separate function in
	  preparation for its use in generic encoding function.
	* gfxconv.c view64.c: Update gfxconv and view64 to the changes in
	  lib64gfx API.
	* lib64gfx.c: Return DMLIB error values instead of arbitrary
	  0/negatives.
	* lib64gfx.c lib64gfx.h: Add function pointers for encoding and
	  convertTo/convertFrom to the DMC64ImageFormat structure.
	* dmlib.h: Add new error code for internal errors.

2012-11-18  Matti Hamalainen <ccr@tnsp.org>

	* dmargs_int.c: Fix long argument parsing.

2012-11-17  Matti Hamalainen <ccr@tnsp.org>

	* objlink.c: Oops, actually fix the load address setting
	  functionality to work. And make it print some informational
	  messages about what is being done.
	* Makefile: It would be nice if the install target would print out
	  what it is actually installing. Thus, make it so.
	* Makefile Makefile.gen: Add install target for Unix Makefile that
	  installs tool binaries only, to /usr/local/bin by default.
	* objlink.c: Add new -L option for forcing loading address on the
	  destination file, or disabling it completely (aka "raw" output)
	  via -L none.
	* objlink.c: Remove the redundant word 'bytes' from Empty sections
	  in describe output.
	* objlink.c: Fix empty blocks size calculation, was off by one.
	* objlink.c: Describe option did not actually show the
	  unreserved/unused areas of the output file, fixed.
	* objlink.c: Improve and clean up section parsing support.
	* Makefile.gen gentab.c: Add a simple utility for generating
	  different sinus, etc. value tables in c64 assembler format.

2012-11-16  Matti Hamalainen <ccr@tnsp.org>

	* Makefile.gen: Move certain editor related targets to the actual
	  TARGETS variable, and remove them from being separately
	  specified in the "make clean" target, thusly cleaning them only
	  when editor is enabled in build configuration.

2012-11-14  Matti Hamalainen <ccr@tnsp.org>

	* lib64gfx.c: Prevent false positive probes of certain Interpaint
	  files as Amica Paint packed.
	* ppl.c: Use dmlib functions instead of errno/strerror directly.

2012-11-12  Matti Hamalainen <ccr@tnsp.org>

	* gfxconv.c: Add a note to default error message about using
	  --help option.
	* README.txt: Update documentation.
	* gfxconv.c: Bump version.
	* gfxconv.c: Implement simplistic image input to char/sprite
	  splitter conversion.
	* gfxconv.c: Error printing cleanups.
	* gfxconv.c libgfx.c libgfx.h: Move dmCompareColor() to libgfx.

2012-11-11  Matti Hamalainen <ccr@tnsp.org>

	* objlink.c: Clean up PRG/RAW loading.
	* objlink.c: Implement output data cropping option -c, with which
	  the memory area to be stored in output can be specified. For
	  example -c 0x1000-0x2000.
	* objlink.c: Clean up and modularize parsing of some options
	  (specifying sections).

2012-11-07  Matti Hamalainen <ccr@tnsp.org>

	* gfxconv.c: Remove debug printing code.
	* gfxconv.c: Improve remapping.
	* gfxconv.c: Improve remapping option parsing.
	* gfxconv.c: Oops, the option help had \n. Fixed.
	* gfxconv.c: Improve color remapping, add option for removing
	  unused colors from the final output palette.
	* gfxconv.c: Calculate number of remapped colors.
	* gfxconv.c: Add incbin line for ARAW output.
	* gfxconv.c: Fix remapping issues.
	* gfxconv.c: Fix option parsing of mappings.
	* gfxconv.c: Improve color matching, make it possible to ignore
	  alpha values.
	* gfxconv.c: Implement palette remapping option for image outputs.
	* libgfx.c: Oops, the ARAW palette output should use dc.w, not
	  dw.b .. :P

2012-11-04  Matti Hamalainen <ccr@tnsp.org>

	* gfxconv.c: Correct help.
	* README.txt: Update copyright notice.
	* COPYING: Add license.
	* lib64gfx.c: Change c64 palette's alpha values to 0xff to prevent
	  RGBA output from being transparent.
	* libgfx.c: Check for NULL pointers from png_get_tRNS and
	  png_get_PLTE.
	* gfxconv.c: Plug (non-dangerous) memory leaks.
	* gfxconv.c libgfx.c: Adjust verbosity levels.
	* libgfx.c: Add support for IFF PBMs.
	* gfxconv.c: Improve probing.
	* gfxconv.c libgfx.c libgfx.h: Improve ARAW output.
	* libgfx.c: Implement transparent color in IFF ILBM reader and
	  ctransp setting in PNG reader.
	* gfxconv.c libgfx.c libgfx.h: Improve transparent color handling.
	* Makefile.gen vview.c: Remove the rather useless vview utility.
	* README.txt: Add ILBM to supported list.
	* gfxconv.c: Set default scaling to 1.
	* gfxconv.c: Clarify help.
	* gfxconv.c: Bump version, change program description to be more
	  generic than just a "c64 graphics converter".
	* gfxconv.c: Mark PNG as available input format.
	* libgfx.c: Implement PNG (1-8bpp indexed) reading support via
	  libPNG.
	* libgfx.c: Return more sensible error values where appropriate
	  instead of just DMERR_INVALID_DATA.
	* libgfx.c: Modularize palette reading and handling code.
	* README.txt: Update documentation a bit.
	* libgfx.c: Add support for CAMG chunk reading and possibly
	  half-brite handling in IFF ILBM reader.
	* libgfx.c: Add transp mask support to IFF ILBM loader.
	* libgfx.c: Finish initial implementation of IFF ILBM loader. And
	  whoa .. it seems to be working.
	* gfxconv.c: Oops, correct the use of dmImageFormatList[] entry
	  pointer to entry.fext.
	* libgfx.c: Simplify.
	* libgfx.c: Clean up the IFF parser a bit.
	* gfxconv.c libgfx.c libgfx.h: Beginnings of IFF ILBM reader. Not
	  functional, only chunk parsing, BMHD header chunk parsing and
	  CMAP handling implemented.
	* libgfx.c: Fix probing to handle NULL probe functions.
	* gfxconv.c: Improve loading of input images to use the list
	  provided by libgfx.
	* libgfx.c: Close the file after writing.
	* dmres.c: Implement fwrite and fputc in memio resources. They
	  will only operate on pre-allocated memory area, thus not
	  grow-as-write.
	* dmfile.c: Adjust dm_fread_byte() and dm_fwrite_byte() stdio
	  helper functions to match dmf_{write,read}_byte() resource
	  functions.
	* dmres.c dmres.h dmresw.c dmresw.h: Add dmf_{write,read}_byte()
	  convenience functions.
	* libgfx.c: Cosmetics, rename a variable.

2012-11-03  Matti Hamalainen <ccr@tnsp.org>

	* Makefile.gen gfxconv.c lib64gfx.c lib64gfx.h libgfx.c libgfx.h:
	  Modularize some more.
	* dmfile.h: Add C++ guard.
	* lib64gfx.c: Cleanups.
	* gfxconv.c: Improve listing of input/output formats in --help.
	* gfxconv.c: Cosmetics.
	* gfxconv.c: Fix a segfault due to not checking for NULL file
	  extension entries in dmGetFormatByExt().
	* gfxconv.c: Possibly fix 24bit PCX output.
	* gfxconv.c: Cosmetics.
	* TODO.jss: Updated.
	* TODO.jss TODO.txt: Renamed TODO.txt to TODO.jss, as this is only
	  pertinent to JSS parts. And somewhat outdated.
	* README.txt: Add README.
	* Makefile Makefile.gen Makefile.w32: Fix build for Win32.
	* gfxconv.c: Fix image format output.
	* gfxconv.c: Fix bplanes short option, now 'B' instead of 'b', as
	  'b' was already used for 'bformat' option.
	* Makefile Makefile.gen config.mak.in: Fix building with libpng.
	* lib64gfx.c: Fix lingering issue with data reading helper
	  function.
	* gfxconv.c lib64gfx.c lib64gfx.h view64.c: Modularize some
	  functions to lib64gfx, fix bitmap -> image conversion, and
	  implement various cleanups.
	* lib64gfx.h: Update file description.
	* gfxconv.c: Improve error handling.
	* gfxconv.c: Add bitmap and image input selectors to -i option.
	* gfxconv.c: IFFMaster RAW output works now, at least to some
	  extent.
	* dmfile.c dmfile.h: Clear up the file descriptions.
	* dmbstr.c dmbstr.h: Correct the file header comments.
	* Makefile.gen dmbstr.c dmbstr.h: Add simple bitstream writing
	  functions.
	* dmlib.h: Update copyright year.
	* lib64gfx.c lib64gfx.h: Stdint -> SDL types conversion.
	* gfxconv.c: Various improvements and cruft cleanups.
	* Makefile.gen: Add gfxconv to the build.
	* Makefile Makefile.gen data2inc.c gfxconv.c lib64gfx.c lib64gfx.h
	  objlink.c view64.c: Move c64 utilities to the engine lib, as we
	  benefit from a common framework.
	* dmres.c: Use fseeko() and ftello() to ensure 64-bit off_t
	  compatibility in stdio backend.
	* dmfile.c dmfile.h: Implement dm_{read,write}_byte() and constify.

2012-10-22  Matti Hamalainen <ccr@tnsp.org>

	* dmvecmat.c dmvecmat.h: Update copyrights.

2012-10-19  Matti Hamalainen <ccr@tnsp.org>

	* Makefile.gen edgui.cpp edmain.cpp edmain.h edres.cpp edres.h
	  edtimeline.cpp edtimeline.h edtlobj.cpp edtlobj.h edview.cpp
	  edview.h edwaveform.cpp edwaveform.h: Even more work towards the
	  editor.
	* dmengine.h dmtimelinew.c edmain.cpp edtimeline.cpp edtimeline.h:
	  Timeline event drawing prototype works.
	* edgui.cpp edmain.cpp edmain.h edtimeline.cpp edtlobj.cpp
	  edtlobj.h: Fix some segfaults, etc.
	* edmain.cpp edmain.h edwaveform.cpp edwaveform.h: Fix waveform
	  display from going over buffer limit.
	* dmtimeline.c dmtimelinew.c: Fix timeline writing and loading.
	* dmtimelinew.c edgui.cpp edmain.cpp edtimeline.cpp edtimeline.h
	  edview.cpp edview.h edwaveform.cpp: More work.
	* edgui.cpp edmain.cpp edmain.h edtimeline.cpp edtimeline.h
	  edtlobj.cpp: More work towards editor.
	* dmtimeline.c: Fixes.
	* dmengine.h dmtimelinew.c: Implement functions for copying
	  timelines and timeline components.
	* edmain.cpp: Cleanups.
	* edgui.cpp edmain.cpp edmain.h edtimeline.cpp edtimeline.h
	  edwaveform.cpp edwaveform.h: More work towards the editor ..
	* Makefile.gen: Pass parameters to sub-processes of make.
	* edgui.cpp edmain.cpp edmain.h edview.cpp edview.h edwaveform.cpp
	  edwaveform.h: More work on the editor.
	* dmengine.c dmengine.h: Remove adjustTime variable, it is not
	  needed anymore.

2012-10-18  Matti Hamalainen <ccr@tnsp.org>

	* tnsp.png: Add image data for efu.c
	* Makefile.gen: Add edview to the build.
	* edgui.cpp: Twiddling on the GUI elements.
	* edtimeline.cpp edtimeline.h: Add size hints.
	* edview.cpp edview.h: GL display widget skeleton.
	* edmain.cpp edmain.h edwaveform.cpp edwaveform.h: Slowly working
	  on the editor.
	* buttons.svg pause.png play1.png play2.png rewind.png stop.png:
	  Add graphics files for editor control toolbar buttons.

2012-10-17  Matti Hamalainen <ccr@tnsp.org>

	* dmengine.h: Fix extern variables to match what are actually
	  declared in dmengine.c
	* edgui.cpp edmain.h: More work.
	* Makefile.gen: Add EDITOR_HEADERS to the dependency.
	* Makefile.gen eddemoobj.cpp eddemoobj.h edmain.cpp edmain.h
	  edtlobj.cpp edtlobj.h: Rename eddemoobj to edtlobj, etc.
	* eddemoobj.cpp eddemoobj.h edgui.cpp edmain.cpp edmain.h:
	  Cleanups.
	* Makefile.gen: Improve building.
	* Makefile.gen eddemoobj.cpp eddemoobj.h edgui.cpp edmain.cpp
	  edmain.h edtimeline.cpp edwaveform.cpp edwaveform.h: Work
	  towards a working editor .. some day.
	* Makefile.gen: Add demo obj.
	* .hgignore: Update hgignore.
	* dmengine.h: s/DMSIMPLE/DMENGINE/
	* dmengine.h: Oops, the function prototypes were incorrect.
	* Makefile.gen: Fix build process for out of tree builds.
	* dmengine.c dmsimple.c dmtimeline.h edtimeline.h: Re-entrancy.
	* dmengine.c dmengine.h dmtimeline.c dmtimelinew.c: Work towards
	  re-entrancy.

2012-10-16  Matti Hamalainen <ccr@tnsp.org>

	* dmengine.c dmengine.h dmsimple.c: Work towards re-entrancy.
	* dmengine.c dmengine.h dmsimple.c: Work towards base engine
	  re-entrancy.
	* jssplr.c jssplr.h: Refactor volume and panning handling.
	* efu.c: Remove unused function.
	* blittest.c: Remove unused function.
	* fontconv.c: Fix to match with resource subsystem re-entrancy
	  changes.
	* dmengine.h dmsimple.c: Fix engine breakage.
	* dmq3d.c: Fix to match with resource management changes.
	* dmengine.c dmengine.h dmlib.h dmres.c dmres.h dmsimple.c ppl.c:
	  Make resource management re-entrant.
	* jss.h jssmix.h jssmod.h jssplr.h: Add C++ guards.
	* Makefile.gen edtimeline.cpp edtimeline.h edwaveform.cpp
	  edwaveform.h: Work towards Qt based editor.
	* config.mak.in: Gtk+2 -> Qt.
	* Makefile Makefile.gen dmeditor.c gtktimeline.c gtktimeline.h
	  gtkwaveform.c gtkwaveform.h: Work towards Qt-based editor
	  instead.
	* dmeditor.c dmengine.h dmsimple.c: More work on editor, etc.
	* Makefile.gen dmeditor.c: Work towards editor.
	* dmtimeline.c: Add null pointer check to
	  dmFreePreparedTimelineData().
	* dmsimple.c: Should've used engineGetTick() instead of
	  engineGetTime(). Fixed.
	* dmtimeline.c dmtimeline.h dmtimelinew.c: More work on timeline
	  stuff.
	* dmtimeline.h: Add event time parameter to effect rendering
	  function.
	* dmq3d.c dmq3d.h: Constify.
	* dmtimeline.c dmtimeline.h dmtimelinew.c: Cleanups.
	* dmtimeline.c dmtimeline.h dmtimelinew.c: More work on timeline
	  saving and loading.

2012-10-15  Matti Hamalainen <ccr@tnsp.org>

	* dmengine.c dmengine.h dmsimple.c: Work towards timeline support.
	* Makefile Makefile.gen config.mak.in dmeditor.c gtktimeline.c
	  gtktimeline.h gtkwaveform.c gtkwaveform.h: Beginnings of the
	  editor.
	* Makefile.gen: Add dmengine.o module.
	* dmengine.c dmengine.h dmsimple.c dmsimple.h: Separate some demo
	  engine parts to two different modules.
	* dmlib.h: License/copyright.
	* dmtimeline.c: Work on prepared timeline code.
	* dmtimeline.h: Cosmetics.
	* jloadjss.c xm2jss.c: Fixes and improvements in the JMOD saving
	  and loading.
	* xm2jss.c: Change argument handling.
	* dmsimple.c: Add 'F' key to fullscreen toggling, in addition to
	  alt+enter.
	* dmsimple.c dmsimple.h: Fix remains of the debug/devel changes.
	* Makefile.gen: Move -O3 to EXTRA_CFLAGS.
	* Makefile.gen dmsimple.c: Rename DM_DEBUG compile time define to
	  DM_DEVEL, for development mode.
	* dmsimple.c: Clean up video (re)initialization.
	* jloadjss.c: Oops, a silly typo in the JMOD loader.
	* dmtimeline.c dmtimeline.h: And some more work.
	* vptest.c: Remove radial blur code.

2012-10-14  Matti Hamalainen <ccr@tnsp.org>

	* dmtimeline.c dmtimelinew.c: More work.
	* dmtimeline.c dmtimeline.h dmtimelinew.c: More work on the
	  timeline code.
	* Makefile.gen: Add dmtimelinew to the build.
	* dmgfx.c: Remove 15/16 bit support from h/v line drawing.
	* dmtimeline.c dmtimeline.h: More work on the timeline code.
	* Makefile.gen: Add the (unfinished) timeline code to the build.

2012-10-13  Matti Hamalainen <ccr@tnsp.org>

	* config.mak.in: Update example config.mak template.

2012-10-14  Matti Hamalainen <ccr@tnsp.org>

	* dmtimeline.c dmtimeline.h dmtimelinew.c: Add in unfinished
	  timeline code.
	* jmixtmpl_c.h: Cosmetics.
	* dmsimple.h: Remove the DMEffect structure from here, it's being
	  moved elsewhere.
	* dmsimple.h: Add C++ protectors.

2012-10-13  Matti Hamalainen <ccr@tnsp.org>

	* dmsimple.c: Adjust audio buffer size.
	* packed.c: Oops, resource file output was missing a linefeed.
	* packed.c: Improve output.

2012-10-12  Matti Hamalainen <ccr@tnsp.org>

	* jloadxm.c: Cleanup the pattern decoder a bit.
	* dmsimple.c: Change startup messages.
	* dmsimple.h: Add extremely simplistic struct for effects.
	* dmsimple.c dmsimple.h: Fix includes in the dmsimple engine.
	* dmq3d.c: Use normal resources for loading q2d objects.
	* Makefile.gen: Fix building of demo executable, the order of
	  objects for linking was incorrect.

2012-10-11  Matti Hamalainen <ccr@tnsp.org>

	* vptest.c: Delete dead function.
	* dmlib.h: Add mathematical constants DM_PI, DM_PI2 and DM_E.
	* Makefile.gen: Add special rule for demo executables.
	* testpl.c: Fix buffer length.
	* stb_image.c: Silence some warnings.
	* xm2jss.c: Oops, an extra error message was left in. Fixed.
	* mod2wav.c xm2jss.c: Cleanups.
	* jssplr.c: Implement correct handling of 'M' and '3xx' effects
	  together (aka volume column tone portamento and effect column
	  tone portamento on same channel.)
	* Makefile.gen: Add SDL_LDFLAGS to generic binary rule.
	* ppl.c: Make audio buffer smaller, for now.
	* ppl.c: Improve screen update logic.
	* vecmattest.c: Include dmmutex.h for this test.
	* dmlib.c dmlib.h dmmutex.h: Improve mutex debugging facilities.
	* ppl.c: Improve locking.
	* testpl.c: Improve locking.
	* jssmix.c: Increase addbuf size.
	* ppl.c: Improve locking.
	* Makefile.gen: Add SDL_CFLAGS to fontconv build.
	* dmlib.h dmsimple.h: Use more glanular header includes from SDL,
	  enables us to succesfully link binaries without the SDL
	  dependancy (where it is not actually needed) under Windows.
	* jmix_c_in.c jmixtmpl_c.h jssmix.c jssmix.h ppl.c: Use fixed
	  point everywhere in the mixing internals, to avoid going over
	  sample boundaries.
	* jssmod.c: Fix a small memory leak, the special "empty" pattern
	  was not being freed.
	* Makefile.gen dmmutex.h mod2wav.c packed.c viewmod.c xm2jss.c:
	  Don't link libSDL uselessly to utilities that do not actually
	  use it. Provide a fake implementation of SDL mutexes to satisfy
	  the requirement of having the functions around -- as these
	  utilities do not actually use threading, it does not matter if
	  the mutexes actually work.
	* Makefile.gen: Add -msse2 if DM_USE_SIMD is enabled.
	* dmvecmat.c dmvecmat.h: Using SSE inline asm is not worth it in
	  single operations, it hinders compiler optimizations too much.
	* jloadjss.c: Cosmetics.
	* dmvecmat.c: Fix rotation matrix creation.

2012-10-10  Matti Hamalainen <ccr@tnsp.org>

	* dmvecmat.c: Enable W component manipulation.
	* dmvecmat.c: Set the last 1 of the unit matrix as they are now
	  4x4 instead of 3x3.
	* dmsimple.c: Improve locking.
	* dmsimple.c: Add two new functions to the simple demoengine for
	  getting some information about currently playing module (only
	  when JSS is in use.)
	* ppl.c: Fix some possible data races.
	* ppl.c: Cleanups.
	* ppl.c: Add boundary checks for the scope drawing.
	* ppl.c: Cleanups.
	* jssplr.c: XM sample offset effect '9xx' stops note playing if
	  offset is > sample length (or loop endpoint if looped.)
	* jssplr.c jssplr.h: XM effect '9xx' stores its last non-zero
	  parameter.
	* dmvecmat.c: Add (untested) SSE asm version of matrix product
	  (matrix x matrix multiplication).
	* dmvecmat.c dmvecmat.h: Add some new vector and matrix
	  operations, and introduce some SSE inline assembler optimized
	  versions.
	* vptest.c: More testing.
	* dmq3d.c: Add Z checks.
	* dmlineclip.h: Fix a stupid bug in the clipping.
	* dmdrawline.h dmlib.h dmline.c dmlineclip.h: Make line clipping
	  floating point only.
	* dmlineclip.h: Fix the Cohen-Sutherland clipping implementation
	  and add optional compile-time debugging.
	* dmq3d.c: Cleanups, increase line buffer size.
	* dmlib.h dmline.c dmlineclip.h: Clean up the line clipping a bit,
	  in preparation for fixes.
	* vptest.c: More work on the rendering test.
	* dmq3d.c: Etc.
	* dmq3d.c dmq3d.h: Cleanups.

2012-10-09  Matti Hamalainen <ccr@tnsp.org>

	* vptest.c: Joo.
	* svg2qd.py: Error out when bezier segments are found.
	* svg2qd.py: Improve python converter.
	* svg2qd.py: C nodes.
	* dmq3d.c vptest.c: Fix a silly rendering issue.
	* vptest.c: Adjust default distance.
	* dmq3d.c svg2qd.py: Improve converter and adjust parser
	  accordingly.
	* svg2qd.py: Add simplistic SVG to Q3D converter written in Python.
	* dmq3d.c: Various improvements in the .3d parser.
	* vptest.c: Radial blur stuff.
	* vptest.c: Add radial blur function.
	* dmq3d.c: Cleanups.
	* dmq3d.c dmq3d.h vptest.c: Changes in the 3d loader.
	* dmvecmat.h: Constify.
	* dmq3d.c: Improve the parser.
	* Makefile.gen: Add line/sprite renderer to build.
	* dmq3d.c dmq3d.h vptest.c: Move 3D line/sprite renderer to
	  separate module.
	* vptest.c: Remove dead code.
	* dmvecmat.c dmvecmat.h vecmattest.c: Make DMVector 16 bytes in
	  size (4 floats), add SSE optimizations, move some functions to
	  dmvecmat.h as static inline for speed, etc.
	* vptest.c: Beginnings of a lines + sprites "3D" "model" renderer.
	* dmres.c: Oops, another silly issue in dmfgets().
	* dmres.c: Oops, dmfgets() had a nasty think-o and counted the
	  remaining buffer space incorrectly. It also did not return NULL
	  when expected, as per stdlib fgets(). Fixed.

2012-10-08  Matti Hamalainen <ccr@tnsp.org>

	* dmres.c dmres.h: Add dmfgets() function.
	* dmdrawline.h dmlib.h dmline.c dmlineclip.h: Modularize line
	  drawing related templates and functions, add clipping functions
	  to dmlib.h.
	* jmixtmpl_c.h: Cosmetics.
	* Makefile.gen dmblitfunc.h dmdrawline.h dmlib.h dmline.c
	  dmlineclip.h dmscaledblit.h dmunscaledblit.h vptest.c:
	  Modularize line clipping etc. a lot, and export all line drawing
	  and blitting functions.
	* jssplr.c: Improve vibrato implementation. Might not work in
	  Amiga periods mode, tho.
	* jmixtmpl_c.h: Optimize mixing slightly.
	* jmixtmpl_c.h: Remove an extra ';'.
	* jssplr.c: Use jvmReset appropriately, fixes(?) taotao.xm vs.
	  boost.xm vs. vital.xm issues.
	* jssmix.c jssmix.h: Add jvmReset() function for reseting
	  channel's position and pitch.
	* jssplr.c: Oops, a typo. Fixed.
	* jssplr.c: Move multi retrig note code to a separate function.
	* jssplr.c jssplr.h: Move jmpProcessRowEffect() into
	  jmpProcessNewRow(); Fix volume-column tone portamento ('M')
	  effect, the parameter must be * 16. Improve retrig note E9x, so
	  that it also triggers on E90 aka tick 0. Fix tone portamento
	  (and volume column tone portamento) to work with retrig note and
	  multi-retrig.
	* jssplr.c jssplr.h: Implement effect Rxy - multi retrig note.
	* jssplr.c: Implement effect E9x - Retrig note.
	* jssplr.c: Factor note triggering to a separate function.

2012-10-07  Matti Hamalainen <ccr@tnsp.org>

	* jssplr.c: Simplify frame finding in envelope update function.
	* jssplr.c: Fix envelope loops.
	* jssplr.c: Fix arpeggio handling.
	* jssplr.c: Actually stop the sample playing, in addition to
	  setting volume to zero.
	* ppl.c: Rename player, add a copyright note.
	* jssplr.c: Possibly fix new note/instrument handling logic.
	* jssplr.c: Cosmetics.
	* fontconv.c: Add option for specifying the output variable name
	  for C source output mode.
	* fontconv.c: Improve C source output of fontconv.
	* packed.c: Cosmetics.
	* jssplr.c: 10L. Fixed.
	* fontconv.c: Add ability to dump a DMFONT as a binary data in a C
	  header file.
	* dmres.c dmres.h: Make some functions static, some public in the
	  header.
	* Makefile.gen: Add dmwav to the build process.
	* mod2wav.c: Use the routines factored into dmwav module.
	* dmwav.c dmwav.h: Separate the WAV header / chunk writing
	  functions from mod2wav into dmwav.[ch]
	* jloadjss.c: Implement pattern mode 5 in the JMOD jloader.
	* ppl.c: Improve channel mute control. Now shift+M will toggle
	  mute of all channels, ctrl+M will clear all mutes and 'M' alone
	  will toggle one channel.
	* xm2jss.c: Warn about invalid instruments.
	* ppl.c: Optimize pattern drawing a bit.
	* dmtext_bm.c: No need for dynamic allocation here, I think.
	* ppl.c: Enable key repeat in PPL.

2012-10-06  Matti Hamalainen <ccr@tnsp.org>

	* ppl.c: Make 'm' key mute all but selected active channel.
	* jssplr.c: Cosmetic.
	* jssplr.c: Adjust volume ramping logic.
	* jssplr.c: Remove useless includes.
	* jssplr.c: Set new instrument flag only if the instrument differs
	  from previously set one.
	* jssplr.c jssplr.h: Create a separate new frequency flag (vs. new
	  pitch), for future changes.
	* Makefile.gen: Add some depencies.
	* jssplr.h: Initial fadeout volume changed to 32767.
	* ppl.c: Make it possible to mute channels.
	* jssplr.c: Add few comments.
	* jssplr.c jssplr.h: Another cleanup, remove the "future player"
	  data prediction hack, it is not needed.
	* jssplr.c: Sanitize tick handling.
	* jssmix.c jssplr.c: Fix tempo (callback frequency) calculation.
	* mod2wav.c ppl.c: Increase default global volume.
	* xm2jss.c: Add a minor optimization in the conversion.
	* jloadxm.c jssplr.c jssplr.h: Some more player logic cleanups and
	  variable renames.
	* jssplr.c jssplr.h ppl.c: Add a new function jmpChangeOrder() to
	  change orderlist position "on fly", and use it in PPL.
	* jssplr.c: Clean up player logic some more.
	* jssplr.c jssplr.h: Refactoring of the note triggering and other
	  player logic, fixes various issues.
	* ppl.c: Add full screen switching to PPL via 'f' key, and various
	  other improvements.
	* Makefile.gen dmtext_bm.c fontconv.c: Implement TTF to bitmap
	  font conversion (crude).
	* jssplr.c: Cleanup the player logic a bit.
	* ppl.c: Optimize screen updates.
	* jssplr.c: Cosmetic cleanups.
	* jssplr.c: Fix handling of fadeouts when volume envelope is not
	  enabled.
	* jssmix.c: Don't clear mixing interpolation buffers when setting
	  a new sample.
	* jssplr.c: Clear player channel data as well in here.
	* jssplr.c: Remove redundant function.
	* jssplr.c: Cosmetics.
	* jssplr.c: Backed out changeset 21f54947eb18. No, it isn't. :(
	* jssplr.c: It seems instrument fadeout is processed even if
	  volume envelope is not enabled.
	* ppl.c: Implement moving around in order list via pageup/down.
	* Makefile.gen dmres.c: Improve build system granularity.
	* ppl.c: Minor visual improvements.
	* Makefile.gen ppl.c pplfont.h: Add a hardcoded font to PPL.
	* Makefile.gen: Improve build system.
	* dmtext_bm.c: Add some extra debugging stuff.
	* dmtext_bm.c: Fix DMFONT saving.
	* Makefile.gen dmtext.h dmtext_bm.c fontconv.c: Add fontconv tool.
	* ppl.c: Fix sample display.
	* jssmix.c: Improve loop handling in the mixer.
	* jssplr.c: Remove dead code.
	* vptest.c: Additional line to be drawn.
	* jssplr.c: Use dmClamp().
	* jssplr.c: Use dmClamp().
	* dmlib.h: Add dmClamp(value, min, max) for clamping integer
	  values.
	* viewmod.c: Correct the displayed instrument numbers.
	* ppl.c: Various improvements and small optimizations in display
	  drawing/updating.
	* dmgfx.c dmlib.h: Add dmDrawBox3D() and dmFillBox3D().
	* dmlinefunc.h: Hmm, two missing lines. Added back. O_o

2012-10-05  Matti Hamalainen <ccr@tnsp.org>

	* ppl.c: Visual improvements.
	* ppl.c: Various improvements, implement channel muting.
	* jssplr.c: Move variable a bit further into the block where it is
	  actually used.
	* jssplr.c: Cosmetics.
	* jssplr.c jssplr.h: Various improvements in XM replay: implement
	  the 5ms volume fadein and improved volume ramping, etc.
	* jssplr.h: It would seem, based on tests, that the actual
	  starting value for XM ext instrument fadeout is 32768.
	* jssplr.c jssplr.h: Update copyright.
	* jssmix.c jssmix.h: Add function jvmGetMute() to get status of
	  channel mute.
	* jssmix.c: This resetting of volume/pan ramps is not needed here
	  anymore.
	* jmixtmpl_c.h jssmix.c jssmix.h: Improve volume ramping
	  functionality to allow arbitrary length ramps.
	* dmlib.h: A minor improvement to FP_CONV() fixed point macro.
	* ppl.c: Remove toupper() from custom text drawing.
	* jssmix.h jssplr.c jssplr.h: Cleanups.
	* jssplr.c: Implement using of volume ramps in the player code.
	  This MAY or MAY NOT be correct, as we are setting the new value
	  as the current value and target as the new value. Needs to be
	  tested / verified against FT2 .. did it this way because it was
	  easiest (no need to compute future values by peeking upcoming
	  data.)
	* jmix_c_in.c jmixtmpl_c.h jssmix.c jssmix.h: Implement volume and
	  panning ramps (interpolation between callbacks aka "frames") in
	  the mixer.
	* dmdrawline.h dmline.c dmlinefunc.h: Some work on line drawing
	  routines.

2012-10-04  Matti Hamalainen <ccr@tnsp.org>

	* dmtext_bm.c: Add support for loading ancient version of TSFONTs.
	* ppl.c: Move custom bitmap font text rendering functions into PPL
	  code itself.
	* dmtext_bm.c: Cleanup some prototyping code.
	* dmblitfunc.h: Improve transparent GA alpha scaled blitting
	  function.
	* config.mak.in dmsimple.c dmsimple.h: Various improvements in
	  modularity.
	* dmsimple.c: Allow setting audio format settings.
	* dmsimple.c: Add a blurb about used features/3rd party code
	  (zlib, Tremor, SDL).
	* Makefile.gen config.mak.in dmres.c dmres.h: Rename some
	  conditional compilation directives.
	* dmsimple.c: Add engine startup messages showing prod name and
	  "TNSP simple demoengine blurb".
	* dmsimple.c: Add some verbose engine startup messages.
	* dmsimple.c: Move option handling to the simple demo engine.
	* efu.c: Increase delay here a bit.
	* dmgfx.c dmlib.h: Move DM_SWAP() macro to dmlib.h
	* packed.c: Correct help of 'packed' utility.

2012-10-03  Matti Hamalainen <ccr@tnsp.org>

	* efu.c: s/dmClip10/dmClamp10/g
	* packed.c: Prettify pack content listing output.
	* dmres.c dmres.h: Add functions for converting resource flags to
	  symbolic string form and back.
	* dmsimple.c dmsimple.h: Fix some warnings.
	* Makefile Makefile.w32: Add Tremor stuff to default Makefiles.
	* dmsimple.c: Oops, another 10L.
	* dmsimple.c dmsimple.h: Fixes to make the JSS audio subsystem
	  support work again in the engine framework.
	* dmsimple.c: Implement fullscrene toggling via alt+enter
	* dmlerp.c dmlib.h: Move some lerp functions to the header as
	  static inline functions.
	* dmres.c dmres.h: Cleanups.
	* dmlib.h efu.c: Added a new inline function, dmClip10() to clamp
	  values between 0.0 and 1.0.
	* Makefile.gen dmres.h dmsimple.c dmsimple.h dmtext.h: Beging
	  merging of dmsimple2-fork into the main "engine".
	* dmtext_bm.c: Few nasty bugs fixed in TSFONT loading.
	* dmres.h: Add variable rdataSize to DMResource.

2012-10-02  Matti Hamalainen <ccr@tnsp.org>

	* dmtext_bm.c: Oops, 100L :(
	* dmtext_bm.c: Oops, 10L.
	* dmtext.h dmtext_bm.c: Add a function for setting bitmapped font
	  palette.
	* ppl.c: Various minor improvements in PPL.
	* jloadxm.c: Fix XM loading. Oops.
	* jssplr.h: Fix building with debug mode.
	* jloadjss.c: Urgh .. use memset to silence some bogus GCC
	  warnings about using potentially uninitialized values, while
	  that will not actually be possible. In any case, it is annoying.
	* Makefile.gen dmblit.c dmblitfunc.h dmlib.h dmscaledblit.h
	  dmunscaledblit.h: Add unscaled blitting functions.
	* dmsimple.c dmsimple.h: Change some function names, etc.
	* Makefile.gen dmsimple.c dmsimple.h: Add simple (and buggy / not
	  really working) debug mode.
	* dmblitfunc.h: Fix a warning.
	* dmtext.h dmtext_bm.c: Various improvements in the bitmapped font
	  loading and saving functions.
	* dmgfx.c dmlib.h: Move some very tiny gfx functions to the dmlib
	  header as static inline ones.
	* dmtext.h dmtext_bm.c: Various improvements in bitmapped font
	  support, and addition of legacy TSFONT loading support (untested
	  as of now).
	* jloadxm.c: Cleanups.
	* dmscaledblit.h: Cosmetics.
	* xm2jss.c: Use a cast.
	* dmblitfunc.h dmscaledblit.h: Rename some macros.
	* xm2jss.c: Oops, another fix for dmf_create_stdio() changes.
	* mod2wav.c: Cleanups and correct the dmf_create_stdio() issue
	  here as well.
	* dmblit.c: Cosmetics.
	* dmblitfunc.h: Fix 8to8 saturated scaled blit function.
	* ppl.c: Better error messages.
	* viewmod.c: Oops, missed one s/m/mod/ .. fixed.
	* ppl.c: PPL now looks a bit saner, but does not do anything
	  interesting yet.
	* efu.c testpl.c viewmod.c vptest.c: Add the file mode parameter
	  to dmf_create_stdio() calls, and throw in some cleanups.
	* dmtext_bm.c: Cleanups, cosmetics.
	* dmtext.h dmtext_bm.c: Initial implementation of loading and
	  saving of bitmap fonts.
	* dmres.c dmres.h: Add file mode to dmf_create_stdio().

2012-10-01  Matti Hamalainen <ccr@tnsp.org>

	* dmtext_bm.c: Add function for saving a bitmap font.
	* dmres.c dmresw.c dmresw.h: Improve and finish write functions in
	  resource subsystem.
	* Makefile.gen ppl.c: Add a simplistic skeleton of a module player
	  with SDL-based view.
	* dmtext_bm.c: Make BM text work, a bit at least.
	* testpl.c: Add jssClose() in the shutdown.
	* mod2wav.c: Cleanups.
	* testpl.c: Cleanups.
	* dmtext_bm.c: Oops, some function arguments were reversed.
	* dmtext.h dmtext_bm.c: Implement some new functions for bitmapped
	  font handling.
	* Makefile.gen dmtext.c dmtext_bm.c dmtext_ttf.c: More work on the
	  text subsystem.
	* config.mak.in dmtext.c dmtext.h: More work on the text support.
	* blittest.c efu.c vptest.c vview.c: Do include "dmtext.h" where
	  necessary.
	* jssplr.c: Silence some "unused parameter" warnings.
	* Makefile.gen dmlib.h dmtext.c dmtext.h: Initial work for
	  bitmapped fonts and text drawing. Also moved TTF header stuff to
	  dmtext.h.
	* Makefile.gen dmres.c dmres.h dmresw.c dmresw.h: Add resource
	  writing functions (only work for stdio backend)
	* blittest.c: Cleanup.
	* jmix_c_in.c jmixtmpl_c.h jssmix.c jssmix.h: Silly interpolation
	  in mixing.
	* jmix_c_in.c jss.h jssmix.h jssmod.c jssmod.h: Remove the
	  floating point mixing .. it wasn't so good idea after all.
	* jssplr.c jssplr.h testpl.c: Initial round of cleaning up the
	  player code a bit.
	* jssmix.c: Cosmetics.
	* jssmix.c: No need to allocate with dmCalloc, when a plain
	  dmMalloc is fine.
	* jssmix.c: Fix an assert check.
	* Makefile.gen jmix_c_in.c jmixtmpl_c.h jssmix.c jssmix.h
	  jssmod.c: A non-working implementation of floating point audio
	  mixing.
	* efu.c: Cleanups.
	* Makefile.gen config.mak.in jmix_c_in.c jmix_post_c.h
	  jmixtmpl_c.h jssmix.c jssmix.h jssmod.c jssmod.h mod2wav.c
	  testpl.c: Restructure module playing, removing 8bit sample
	  mixing (output can still be 8bit, but samples are internally
	  upconverted to 16bit after module loading.) Also prepare for
	  floating point mixing support.
	* jmix_post.h jmix_post_c.h: Renamed.
	* jmixtmpl_c.c jmixtmpl_c.h: Renamed again, bah.
	* jmix_c.in.c jmix_c_in.c: Rename another template file.
	* jmix_c.h jmixtmpl_c.c: Rename mixing template.

2012-09-30  Matti Hamalainen <ccr@tnsp.org>

	* jss.h jssmod.c jssmod.h: Add new functions,
	  jssConvertSampleFromFP() and jssConvertSampleToFP().
	* jssmod.c: Cleanups.
	* dmsimple.c: Typofix.
	* dmsimple.c: Move SDL_PauseAudio(0) to the "engine" instead of
	  the demo code.
	* dmsimple.c: Modularize progress meter.

2012-09-29  Matti Hamalainen <ccr@tnsp.org>

	* mod2wav.c: More cosmetics.
	* mod2wav.c: Oops, fix a stupid bug in -s option .. it was setting
	  the wrong variable. :|
	* mod2wav.c: Cosmetics.
	* dmlib.h fptest.c jmix_c.h jssmix.c jssmix.h: Change DMFixedPoint
	  types and appropriate JSS functions back to using signed
	  integers, easier than trying to get unsigned sizes etc. to work
	  properly in audio mixing.
	* jmix_c.h: Another fix, related to 7908061da010.
	* Makefile.gen jmix_post.h jssmix.c: Fix building of JSS mixer
	  parts.
	* dmres.c: Silence a minor warning.
	* Makefile.gen dmsimple.c dmsimple.h: Added a simple demo engine
	  core.
	* packed.c: This ugly trick won't work under MinGW, so disable it
	  there.
	* jssplr.c: Cosmetics.
	* dmres.c: Modularize some more and fix a nasty bug when raw data
	  is not preloaded but resource data needs to be preloaded.
	* Makefile.gen: Fix build process for jmix_c.c dependancy.
	* dmres.c: Modularize the resource system a bit.
	* dmlib.h dmres.c dmres.h: Implement rudimentary resource system.

2012-09-28  Matti Hamalainen <ccr@tnsp.org>

	* stb_image.c: Silence some warnings.
	* vptest.c: Add test for line drawing.
	* dmdrawline.h dmline.c dmlinefunc.h: Initial fixes for getting
	  the line drawing functions "working".
	* dmblitfunc.h: Cleanups.
	* vptest.c: Moar testing!
	* dmlib.h: Add function prototypes for two special case scaled
	  blit functions.
	* dmblitfunc.h: Add dmScaledBlitSurface32to32TransparentGA().
	* dmblitfunc.h: Add register clobbers to SIMD inline asm.
	* dmscaledblit.h: Add new scaled blit template parameters in order
	  to implement global alpha.
	* mod2wav.c: Fix input file reading of mod2wav utility.
	* dmblitfunc.h: Bitshift less in
	  dmScaledBlitSurface32to32TransparentX()
	* dmblitfunc.h: Optimize the scaled RGBA alpha blit MMX version
	  further.
	* dmblitfunc.h: MMX-version of scaled 32-bit RGBA alpha blending
	  blit works now.
	* vptest.c: Improve benchmarking.
	* dmblitfunc.h: Some initial twiddling on trying to get the MMX
	  version of scaled blit to work.
	* xm2jss.c: Various improvements in xm2jss output.
	* testpl.c viewmod.c: Fix JSSMod loading in viewmod and testpl.
	* Makefile.gen efu.c: Fix "efu" test, use dmImage instead of
	  SDL_image.
	* blittest.c: Fix blittest, remove useless code.
	* Makefile: Default executable binpath changed back to ./
	* dmres.c dmres.h: Mask out bits from resFlags that should not be
	  there after initialization.
	* Makefile.gen: Enable out of tree building.
	* Makefile.gen config.mak.in: Various improvements in the build
	  system to add granularity for building different parts of the
	  engine and tools.
	* Makefile Makefile.gen Makefile.w32: Improve buildsystem to
	  support more flexible builds.
	* .hgignore Makefile Makefile.gen Makefile.w32 TODO.txt blittest.c
	  config.mak.in dmargs.c dmargs.h dmargs_int.c dmblit.c
	  dmblitfunc.h dmdrawline.h dmeval.c dmeval.h dmfile.c dmfile.h
	  dmfiletmpl.h dmgfx.c dmimage.c dmimage.h dmlerp.c dmlib.c
	  dmlib.h dmline.c dmlinefunc.h dmpack.c dmpack.h dmpackutil.c
	  dmpackutil.h dmperlin.c dmres.c dmres.h dmscaledblit.h
	  dmstring.c dmtext.c dmvecmat.c dmvecmat.h efu.c font.ttf
	  fptest.c jloadjss.c jloadxm.c jmix_c.h jmix_c.in.c jmix_post.h
	  jss.c jss.h jssmix.c jssmix.h jssmod.c jssmod.h jssplr.c
	  jssplr.h mod2wav.c packed.c stb_image.c testfs.c testpl.c
	  vecmattest.c viewmod.c vptest.c vview.c xm2jss.c: Initial
	  re-import.

