summaryrefslogtreecommitdiff
path: root/DevIL/src-IL/src/il_tiff.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'DevIL/src-IL/src/il_tiff.cpp')
-rw-r--r--DevIL/src-IL/src/il_tiff.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/DevIL/src-IL/src/il_tiff.cpp b/DevIL/src-IL/src/il_tiff.cpp
index 3f2bb68b..e49786a5 100644
--- a/DevIL/src-IL/src/il_tiff.cpp
+++ b/DevIL/src-IL/src/il_tiff.cpp
@@ -762,7 +762,7 @@ _tiffFileSeekProc(thandle_t fd, toff_t tOff, int whence)
if (tOff == 0xFFFFFFFF)
return 0xFFFFFFFF;
- iseek(tOff, whence);
+ iseek((ILint)tOff, whence);
return itell();
//return tOff;
}
@@ -776,7 +776,7 @@ _tiffFileSeekProcW(thandle_t fd, toff_t tOff, int whence)
if (tOff == 0xFFFFFFFF)
return 0xFFFFFFFF;
- iseekw(tOff, whence);
+ iseekw((ILint)tOff, whence);
return itellw();
//return tOff;
}
@@ -982,7 +982,7 @@ ILboolean iSaveTiffInternal(/*ILconst_string Filename*/)
return IL_FALSE;
}
- sprintf(Description, "Tiff generated by %s", ilGetString(IL_VERSION_NUM));
+ sprintf(Description, "Tiff generated by %Ls", ilGetString(IL_VERSION_NUM));
TIFFSetField(File, TIFFTAG_IMAGEWIDTH, TempImage->Width);
TIFFSetField(File, TIFFTAG_IMAGELENGTH, TempImage->Height);
@@ -994,7 +994,7 @@ ILboolean iSaveTiffInternal(/*ILconst_string Filename*/)
TIFFSetField(File, TIFFTAG_MATTEING, 1);
TIFFSetField(File, TIFFTAG_PLANARCONFIG, PLANARCONFIG_CONTIG);
TIFFSetField(File, TIFFTAG_ROWSPERSTRIP, 1);
- TIFFSetField(File, TIFFTAG_SOFTWARE, ilGetString(IL_VERSION_NUM));
+ TIFFSetField(File, TIFFTAG_SOFTWARE, ilGetString(IL_VERSION_NUM)); //@TODO: Will probably not work properly under Windows if Unicode
/*TIFFSetField(File, TIFFTAG_DOCUMENTNAME,
iGetString(IL_TIF_DOCUMENTNAME_STRING) ?
iGetString(IL_TIF_DOCUMENTNAME_STRING) : FileName);