summaryrefslogtreecommitdiff
path: root/app/bin/dbitmap.c
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2016-12-28 20:24:50 +0100
committerJörg Frings-Fürst <debian@jff-webhosting.net>2016-12-28 20:24:50 +0100
commit09795a01ef859f072920de9df974d1b03b9ab9a4 (patch)
tree4d05907fc37f1bd781e506f5e196f7435aeec0ab /app/bin/dbitmap.c
parent5b4163d8c76b03f0d31b09866aa4bd06b4d8d804 (diff)
New upstream version 4.2.4aupstream/4.2.4a
Diffstat (limited to 'app/bin/dbitmap.c')
-rw-r--r--app/bin/dbitmap.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/app/bin/dbitmap.c b/app/bin/dbitmap.c
index a1986c0..1c9c304 100644
--- a/app/bin/dbitmap.c
+++ b/app/bin/dbitmap.c
@@ -45,8 +45,8 @@ static drawCmd_t bitmap_d = {
static int SaveBitmapFile(
- const char * pathName,
- const char * fileName,
+ int files,
+ char **fileName,
void * data )
{
coOrd p[4];
@@ -55,10 +55,10 @@ static int SaveBitmapFile(
wFontSize_t fs;
coOrd textsize, textsize1;
- if (pathName == NULL)
- return TRUE;
- memcpy( curDirName, pathName, fileName-pathName );
- curDirName[fileName-pathName-1] = '\0';
+ assert( fileName != NULL );
+ assert( files == 1 );
+
+ SetCurrentPath( BITMAPPATHKEY, fileName[ 0 ] );
bitmap_d.d = wBitMapCreate( (wPos_t)bitmap_w, (wPos_t)bitmap_h, 8 );
if (bitmap_d.d == (wDraw_p)0) {
@@ -118,7 +118,7 @@ static int SaveBitmapFile(
bitmap_d.options &= ~DC_CENTERLINE;
DrawTracks( &bitmap_d, bitmap_d.scale, bitmap_d.orig, bitmap_d.size );
InfoMessage( _("Writing BitMap to file") );
- if ( wBitMapWriteFile( bitmap_d.d, pathName ) == FALSE ) {
+ if ( wBitMapWriteFile( bitmap_d.d, fileName[0] ) == FALSE ) {
NoticeMessage( MSG_WBITMAP_FAILED, _("Ok"), NULL );
return FALSE;
}