#include <dali/integration-api/debug.h>
#include <dali/devel-api/adaptor-framework/pixel-buffer.h>
-#include <dali/internal/system/common/file-closer.h>
-
-using namespace Dali::Internal::Platform;
-
namespace Dali
{
unsigned char *line = NULL;
unsigned int cur = 0, x, y;
- if( InternalFile::fseek(fp,0,SEEK_END) )
+ if( fseek(fp,0,SEEK_END) )
{
DALI_LOG_ERROR("Error seeking WBMP data\n");
return false;
}
- long positionIndicator = InternalFile::ftell(fp);
+ long positionIndicator = ftell(fp);
unsigned int fsize( 0u );
if( positionIndicator > -1L )
return false;
}
- if( InternalFile::fseek(fp, 0, SEEK_SET) )
+ if( fseek(fp, 0, SEEK_SET) )
{
DALI_LOG_ERROR("Error seeking WBMP data\n");
return false;
}
map.Resize(fsize);
- if( InternalFile::fread(&map[0], 1, fsize, fp) != fsize)
+ if(fread(&map[0], 1, fsize, fp) != fsize)
{
DALI_LOG_WARNING("image file read opeation error!\n");
return false;
unsigned int w, h;
unsigned int type;
- if( InternalFile::fseek(fp,0,SEEK_END) )
+ if( fseek(fp,0,SEEK_END) )
{
DALI_LOG_ERROR("Error seeking WBMP data\n");
return false;
}
- long positionIndicator = InternalFile::ftell(fp);
+ long positionIndicator = ftell(fp);
unsigned int fsize( 0u );
if( positionIndicator > -1L )
return false;
}
- if( InternalFile::fseek(fp, 0, SEEK_SET) )
+ if( fseek(fp, 0, SEEK_SET) )
{
DALI_LOG_ERROR("Error seeking WBMP data\n");
return false;
headerSize = std::min(headerSize, fsize);
map.Resize(headerSize);
- if( InternalFile::fread(&map[0], 1, headerSize, fp) != headerSize)
+ if(fread(&map[0], 1, headerSize, fp) != headerSize)
{
DALI_LOG_WARNING("image file read opeation error!\n");
return false;