/* Set new limits for the move of the pointer */
void POINTER_SetRect(s16 x, s16 y, s16 width, s16 height)
/* Set new limits for the move of the pointer */
void POINTER_SetRect(s16 x, s16 y, s16 width, s16 height)
{
   POINTER_Info.X_PosMin = x;
   if( POINTER_Info.xPos < POINTER_Info.X_PosMin )
      {
      POINTER_Info.xPos = POINTER_Info.X_PosMin;
      }
   POINTER_Info.X_PosMax = x + width - 1;
   if( POINTER_Info.xPos > POINTER_Info.X_PosMax )
      {
      POINTER_Info.xPos = POINTER_Info.X_PosMax;
      }
   POINTER_Info.Y_PosMin = y;
   if( POINTER_Info.yPos < POINTER_Info.Y_PosMin )
      {
      POINTER_Info.yPos = POINTER_Info.Y_PosMin;
      }
   POINTER_Info.Y_PosMax = y + height - 1;
   if( POINTER_Info.yPos > POINTER_Info.Y_PosMax )
      {
      POINTER_Info.yPos = POINTER_Info.Y_PosMax;
      }
   }