diff --git a/Sources/base/guiX11.cpp b/Sources/base/guiX11.cpp index d13b1b08..1109dbde 100644 --- a/Sources/base/guiX11.cpp +++ b/Sources/base/guiX11.cpp @@ -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); diff --git a/Sources/etk/etkTypes.h b/Sources/etk/etkTypes.h index bc722f9b..d7b1eaf1 100644 --- a/Sources/etk/etkTypes.h +++ b/Sources/etk/etkTypes.h @@ -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)