Pre-resize fillparent
This commit is contained in:
@@ -7,35 +7,35 @@
|
||||
using VideoEngine::cImageFile;
|
||||
using UtilityEngine::cUtility;
|
||||
|
||||
cImageFile::cImageFile(const cString& filename, const cString& dir /*= ""*/, const bool transparent /*= false*/,
|
||||
cImageFile::cImageFile( const cString& filename, const cString& dir /*= ""*/, const bool transparent /*= false*/,
|
||||
const unsigned char red /*= 0*/, const unsigned char blue /*= 0*/, const unsigned char green /*= 255*/,
|
||||
const unsigned char translevel /*= 255*/, const bool isSurface /*= false*/)
|
||||
const unsigned char translevel /*= 255*/, const bool isSurface /*= false*/ )
|
||||
: cImage(transparent, red, blue, green, translevel, isSurface), m_dir(dir), m_fileName(filename)
|
||||
{
|
||||
if (m_fileName != (char*)"")
|
||||
LoadImage();
|
||||
}
|
||||
|
||||
cImageFile::cImageFile(const cImageFile& copy, const bool surfaceCopy /*= true*/)
|
||||
cImageFile::cImageFile( const cImageFile& copy, const bool surfaceCopy /*= true*/ )
|
||||
: cImage(copy)
|
||||
{}
|
||||
|
||||
cImageFile::~cImageFile()
|
||||
{}
|
||||
|
||||
///Sets
|
||||
void cImageFile::setDir(const cString& dir)
|
||||
/// Sets
|
||||
void cImageFile::setDir( const cString& dir )
|
||||
{
|
||||
m_dir = dir;
|
||||
}
|
||||
|
||||
void cImageFile::setFileName(const cString& filename)
|
||||
void cImageFile::setFileName( const cString& filename )
|
||||
{
|
||||
m_fileName = filename;
|
||||
LoadImage();
|
||||
}
|
||||
|
||||
void cImageFile::setFileNameandDir(const cString& filename, const cString& dir /*= ""*/)
|
||||
void cImageFile::setFileNameandDir( const cString& filename, const cString& dir /*= ""*/ )
|
||||
{
|
||||
setDir(dir);
|
||||
setFileName(filename);
|
||||
@@ -51,8 +51,8 @@ const cString& cImageFile::getFileName() const
|
||||
return m_fileName;
|
||||
}
|
||||
|
||||
///private
|
||||
///Functions
|
||||
/// private
|
||||
/// Functions
|
||||
void cImageFile::LoadImage()
|
||||
{
|
||||
SDL_Texture* tempText = nullptr;
|
||||
|
||||
Reference in New Issue
Block a user