示例#1
0
bool Graphics::intersectClipRect(const gfx::Rect& rc)
{
  add_clip_rect(m_bmp,
                m_dx+rc.x,
                m_dy+rc.y,
                m_dx+rc.x+rc.w-1,
                m_dy+rc.y+rc.h-1);

  return (m_bmp->cl < m_bmp->cr &&
          m_bmp->ct < m_bmp->cb);
}
示例#2
0
bool Alleg4Surface::clipRect(const gfx::Rect& rc)
{
  add_clip_rect(m_bmp,
                rc.x,
                rc.y,
                rc.x+rc.w-1,
                rc.y+rc.h-1);

  return
    (m_bmp->cl < m_bmp->cr &&
     m_bmp->ct < m_bmp->cb);
}