comparison tools/lib64gfx.h @ 2204:cbac4912992c

Add new module "lib64util", and move some functions there from lib64gfx that do not strictly belong.
author Matti Hamalainen <ccr@tnsp.org>
date Fri, 14 Jun 2019 03:24:24 +0300
parents b259312ddb59
children 3a25e85f0203
comparison
equal deleted inserted replaced
2203:b259312ddb59 2204:cbac4912992c
15 #ifdef __cplusplus 15 #ifdef __cplusplus
16 extern "C" { 16 extern "C" {
17 #endif 17 #endif
18 18
19 19
20 // Define default character ROM path
21 #ifndef DM_DEF_CHARGEN
22 #define DM_DEF_CHARGEN "/usr/local/lib64/vice/C64/chargen"
23 #endif
24
25
26 // Bitmap constants 20 // Bitmap constants
27 #define D64_SCR_WIDTH 320 21 #define D64_SCR_WIDTH 320
28 #define D64_SCR_HEIGHT 200 22 #define D64_SCR_HEIGHT 200
29 #define D64_SCR_CH_WIDTH (D64_SCR_WIDTH/8) 23 #define D64_SCR_CH_WIDTH (D64_SCR_WIDTH/8)
30 #define D64_SCR_CH_HEIGHT (D64_SCR_HEIGHT/8) 24 #define D64_SCR_CH_HEIGHT (D64_SCR_HEIGHT/8)
355 349
356 // 350 //
357 // Miscellaneous functions 351 // Miscellaneous functions
358 // 352 //
359 int dmC64ProbeBMP(const DMGrowBuf *buf, const DMC64ImageFormat **fmt); 353 int dmC64ProbeBMP(const DMGrowBuf *buf, const DMC64ImageFormat **fmt);
360
361 char * dmC64GetImageTypeString(char *buf, const size_t len, const int type, const BOOL lng);
362 void dmC64ImageDump(FILE *fh, const DMC64Image *img, const DMC64ImageFormat *fmt, const char *indent);
363 354
364 int dmC64SetImagePalette(DMImage *img, const DMC64Palette *cpal, const BOOL mixed); 355 int dmC64SetImagePalette(DMImage *img, const DMC64Palette *cpal, const BOOL mixed);
365 356
366 BOOL dmCompareAddr16(const DMGrowBuf *buf, const size_t offs, const Uint16 addr); 357 BOOL dmCompareAddr16(const DMGrowBuf *buf, const size_t offs, const Uint16 addr);
367 int dmC64ImageGetNumBlocks(const DMC64ImageFormat *fmt); 358 int dmC64ImageGetNumBlocks(const DMC64ImageFormat *fmt);