mirror of
https://github.com/jfdelnero/HxCFloppyEmulator.git
synced 2026-10-26 22:10:31 +00:00
Merge pull request #60 from faxm0dem/feature/bmp_export_disktype
Add variable to control disk type for image export
This commit is contained in:
2 files changed
+3
-1
No files matched your search
@@ -282,6 +282,7 @@ set BMPEXPORT_DEFAULT_XSIZE 1024 # BMP X size
|
||||
set BMPEXPORT_DEFAULT_YSIZE 480 # BMP Y size
|
||||
set BMPEXPORT_DEFAULT_XTOTALTIME 240000 # 240ms
|
||||
set BMPEXPORT_DEFAULT_YTOTALTIME 16 # 16us
|
||||
set BMPDISKEXPORT_DEFAULT_DISKTYPE 0 # See libhxcfe/sources/tracks/display_track.c in physical_floppy_dim
|
||||
|
||||
#
|
||||
# Disk BMP writer parameters
|
||||
|
||||
@@ -71,6 +71,7 @@ static int IMAGE_Disk_libWrite_DiskFile(HXCFE_IMGLDR* imgldr_ctx,HXCFE_FLOPPY *
|
||||
|
||||
td = hxcfe_td_init(imgldr_ctx->hxcfe,hxcfe_getEnvVarValue( imgldr_ctx->hxcfe, "BMPDISKEXPORT_DEFAULT_XSIZE" ), \
|
||||
hxcfe_getEnvVarValue( imgldr_ctx->hxcfe, "BMPDISKEXPORT_DEFAULT_YSIZE" ));
|
||||
hxcfe_td_select_view_type(td, hxcfe_getEnvVarValue(imgldr_ctx->hxcfe, "BMPDISKEXPORT_DEFAULT_DISKTYPE"));
|
||||
if(td)
|
||||
{
|
||||
hxcfe_td_setProgressCallback(td,&progress_callback,(void*)imgldr_ctx);
|
||||
@@ -232,4 +233,4 @@ int BMP_Disk_libWrite_DiskFile(HXCFE_IMGLDR* imgldr_ctx,HXCFE_FLOPPY * floppydis
|
||||
int PNG_Disk_libWrite_DiskFile(HXCFE_IMGLDR* imgldr_ctx,HXCFE_FLOPPY * floppydisk,char * filename)
|
||||
{
|
||||
return IMAGE_Disk_libWrite_DiskFile(imgldr_ctx,floppydisk,filename,1);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user