comparison tools/lib64gfx.c @ 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 b86a0aee25fa
children acad4974dc09
comparison
equal deleted inserted replaced
1527:b4d37b562772 1528:239dc13123fd
493 493
494 case DT_BITMAP: 494 case DT_BITMAP:
495 *size = fmt->chHeight * fmt->chWidth * 8; 495 *size = fmt->chHeight * fmt->chWidth * 8;
496 break; 496 break;
497 497
498 case DT_CHAR_DATA:
499 *size = C64_MAX_CHARS * C64_CHR_SIZE;
500 break;
501
502 case DT_COLOR_REG:
503 *size = 1;
504 break;
505
506 case DT_DEC_FUNCTION:
507 case DT_ENC_FUNCTION:
498 case DT_EXTRA_DATA: 508 case DT_EXTRA_DATA:
499 *size = op->size; 509 *size = op->size;
500 break;
501
502 case DT_CHAR_DATA:
503 *size = C64_MAX_CHARS * C64_CHR_SIZE;
504 break;
505
506 case DT_COLOR_REG:
507 *size = 1;
508 break; 510 break;
509 511
510 default: 512 default:
511 *size = 0; 513 *size = 0;
512 } 514 }