Exemplo n.º 1
0
void ATDropdownList::clientMouseUp
(const twPoint & pt, twMouseButton mb){
    if(m_drag){
        m_drag=false;
        twReleaseCapture();
        if(m_hover){
            invalidateClientRect();
            dropdown();
        }
        
    }
}
Exemplo n.º 2
0
void updateghost(void) {
  int h;
  if (g_movbuf.shape == -1) {
    g_ghost.shape = -1;
  }
  if (g_ghost.rotate != g_movbuf.rotate) {
    memcpy(&g_ghost.pixbuf, &g_movbuf.pixbuf, MOV_BUFSIZE*MOV_BUFSIZE);
    g_ghost.rotate = g_movbuf.rotate;
  }
  g_ghost.x = g_movbuf.x;
  h = g_movbuf.y;
  dropdown();
  g_ghost.y = g_movbuf.y;
  g_movbuf.y = h;
}
Exemplo n.º 3
0
Arquivo: pro.cpp Projeto: qbolec/c
void bigmult( int * a,int * b,int * r)
{
   if(b[0]==1)
   {
      b[0]=0;
      bigmult( a,b,r);
      bigadd(  a,r);

   }
   else
   {
     if(iszero(b))
     {
        for(int i=0;i<10000;i++)
           r[i]=0;
     }
     else
     {
       dropdown(b);
       bigmult(a,b,r);
       bigadd(r,r);
     }
   }
}