mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-06 15:29:02 +00:00
Fixed: #1301 Fixed build landscape plugin under linux.
This commit is contained in:
parent
aedfcced67
commit
0823243f10
2 changed files with 8 additions and 7 deletions
|
@ -19,14 +19,15 @@
|
|||
|
||||
#include "nel/ligo/zone_bank.h"
|
||||
|
||||
#ifdef NL_OS_WINDOWS
|
||||
|
||||
#include "nel/misc/debug.h"
|
||||
#include "nel/misc/file.h"
|
||||
#include "nel/misc/i_xml.h"
|
||||
#include "nel/misc/o_xml.h"
|
||||
|
||||
#ifdef NL_OS_WINDOWS
|
||||
#define NOMINMAX
|
||||
#include <windows.h>
|
||||
#endif // NL_OS_WINDOWS
|
||||
|
||||
using namespace std;
|
||||
using namespace NLMISC;
|
||||
|
@ -496,8 +497,9 @@ void CZoneBank::reset ()
|
|||
_Selection.clear ();
|
||||
}
|
||||
|
||||
#ifdef NL_OS_WINDOWS
|
||||
// ---------------------------------------------------------------------------
|
||||
bool CZoneBank::initFromPath(const string &sPathName, std::string &error)
|
||||
bool CZoneBank::initFromPath(const std::string &sPathName, std::string &error)
|
||||
{
|
||||
char sDirBackup[512];
|
||||
GetCurrentDirectory (512, sDirBackup);
|
||||
|
@ -520,6 +522,7 @@ bool CZoneBank::initFromPath(const string &sPathName, std::string &error)
|
|||
SetCurrentDirectory (sDirBackup);
|
||||
return true;
|
||||
}
|
||||
#endif // NL_OS_WINDOWS
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
bool CZoneBank::addElement (const std::string &elementName, std::string &error)
|
||||
|
@ -695,5 +698,3 @@ void CZoneBank::getSelection (std::vector<CZoneBankElement*> &SelectedElements)
|
|||
// ***************************************************************************
|
||||
|
||||
} // namespace NLLIGO
|
||||
|
||||
#endif // NL_OS_WINDOWS
|
||||
|
|
|
@ -78,7 +78,7 @@ bool PixmapDatabase::loadPixmaps(const QString &zonePath, NLLIGO::CZoneBank &zon
|
|||
m_pixmapMap.insert(zonePixmapName, pixmap);
|
||||
}
|
||||
|
||||
QPixmap *pixmap = new QPixmap(zonePath + "_UNUSED_.png");
|
||||
QPixmap *pixmap = new QPixmap(zonePath + "_unused_.png");
|
||||
QPixmap *scaledPixmap = new QPixmap(pixmap->scaled(m_textureSize, m_textureSize, Qt::IgnoreAspectRatio, Qt::SmoothTransformation));
|
||||
delete pixmap;
|
||||
m_pixmapMap.insert(QString(STRING_UNUSED), scaledPixmap);
|
||||
|
|
Loading…
Reference in a new issue