changeset 1871:7d615a735ce1

Fix scaling option for RAW/ARAW output.
author Matti Hamalainen <ccr@tnsp.org>
date Sun, 24 Jun 2018 18:58:58 +0300
parents 1e8f60ce21d1
children fe15412eec10
files tools/gfxconv.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/tools/gfxconv.c	Sun Jun 24 18:53:15 2018 +0300
+++ b/tools/gfxconv.c	Sun Jun 24 18:58:58 2018 +0300
@@ -1206,8 +1206,8 @@
         "%s_width: dw.w %d\n"
         "%s_height: dw.w %d\n"
         "%s_nplanes: dw.w %d\n",
-        prefix, img->width,
-        prefix, img->height,
+        prefix, img->width * spec->scaleX,
+        prefix, img->height * spec->scaleY,
         prefix, spec->nplanes);
 
     if (fmtid == DM_IMGFMT_ARAW)