Mercurial > hg > dmlib
diff tools/libgfx.h @ 1628:a549d33d543a
Add image aspect ratio information.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Wed, 16 May 2018 15:42:24 +0300 |
parents | 36d073c45327 |
children | 59c2b08a80a6 |
line wrap: on
line diff
--- a/tools/libgfx.h Wed May 16 15:15:39 2018 +0300 +++ b/tools/libgfx.h Wed May 16 15:42:24 2018 +0300 @@ -73,6 +73,8 @@ int pitch; // bytes per scanline int bpp; // bits per pixel + float aspect; // aspect ratio (vert / horiz), <= 0 if not set + int ncolors; // number of colors in palette, if any int ctransp; // transparency color index BOOL constpal; // is the palette a const?