Correction of Int32_t 64 bit mode error and resize < 50

This commit is contained in:
Edouard Dupin 2011-11-02 17:10:11 +01:00
parent 922e9cf485
commit 406b6afdf3
2 changed files with 12 additions and 3 deletions

View File

@ -591,7 +591,9 @@ namespace guiAbstraction {
break;
case MotionNotify:
if (true == m_resizeMode) {
ChangeSize(m_cursorEventX, m_cursorEventY);
if (m_cursorEventX >=50 && m_cursorEventY >=50) {
ChangeSize(m_cursorEventX, m_cursorEventY);
}
} else if (true == m_moveMode) {
int32_t tmpX, tmpY;
this->GetAbsPos(tmpX, tmpY);

View File

@ -47,10 +47,17 @@
typedef unsigned char uint8_t;
typedef unsigned short int uint16_t;
typedef unsigned int uint32_t;
typedef unsigned long int uint64_t;
//typedef unsigned long long int uint64_t;
# if __WORDSIZE == 64
typedef unsigned long int uint64_t;
# else
typedef unsigned long long int uint64_t;
# endif
#endif
#define etk_min(elemA, elemB) ((elemA)<(elemB)) ? (elemA) : (elemB)
#define etk_max(elemA, elemB) ((elemA)<(elemB)) ? (elemB) : (elemA)
#define etk_avg(minimim, elem, maximum) ((minimim)>(elem)) ? (minimim) : ((maximum)<(elem)) ? (maximum) : (elem)