Correction of Int32_t 64 bit mode error and resize < 50
This commit is contained in:
parent
922e9cf485
commit
406b6afdf3
@ -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);
|
||||
|
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user