void ATDropdownList::clientMouseUp (const twPoint & pt, twMouseButton mb){ if(m_drag){ m_drag=false; twReleaseCapture(); if(m_hover){ invalidateClientRect(); dropdown(); } } }
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; }