changeset 1632:2a1866fd546e

Use C64 encdec operator specified size for the element if it is larger than the default size.
author Matti Hamalainen <ccr@tnsp.org>
date Fri, 25 May 2018 01:41:31 +0300
parents ed5ccf00b959
children da4d7b5873c0
files tools/lib64gfx.c
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/tools/lib64gfx.c	Fri May 25 00:28:19 2018 +0300
+++ b/tools/lib64gfx.c	Fri May 25 01:41:31 2018 +0300
@@ -587,6 +587,10 @@
             *size = 0;
     }
 
+    // If the operator specified size is larger, use it.
+    if (op->size > *size)
+        *size = op->size;
+
     return TRUE;
 }