changeset 1528:239dc13123fd

Set size for DT_{DEC,ENC}_FUNCTION opcodes.
author Matti Hamalainen <ccr@tnsp.org>
date Sat, 12 May 2018 02:24:24 +0300
parents b4d37b562772
children 4068d87ca884
files tools/lib64gfx.c
diffstat 1 files changed, 6 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/tools/lib64gfx.c	Fri May 11 23:58:08 2018 +0300
+++ b/tools/lib64gfx.c	Sat May 12 02:24:24 2018 +0300
@@ -495,10 +495,6 @@
             *size = fmt->chHeight * fmt->chWidth * 8;
             break;
 
-        case DT_EXTRA_DATA:
-            *size = op->size;
-            break;
-
         case DT_CHAR_DATA:
             *size = C64_MAX_CHARS * C64_CHR_SIZE;
             break;
@@ -507,6 +503,12 @@
             *size = 1;
             break;
 
+        case DT_DEC_FUNCTION:
+        case DT_ENC_FUNCTION:
+        case DT_EXTRA_DATA:
+            *size = op->size;
+            break;
+
         default:
             *size = 0;
     }