mirror of
https://github.com/redstrate/CatPaw.git
synced 2025-04-22 04:27:44 +00:00
Prevent the bottom of the cat from appearing
This ruins immersion, and thus a critical bug to fix
This commit is contained in:
parent
bf96206f00
commit
bf9424116d
1 changed files with 2 additions and 1 deletions
|
@ -94,8 +94,9 @@ void CatPawEffect::drawKitty(const RenderTarget &renderTarget, const RenderViewp
|
||||||
verts.clear();
|
verts.clear();
|
||||||
verts.reserve(1.0f);
|
verts.reserve(1.0f);
|
||||||
|
|
||||||
QPointF arrow_tail = viewport.renderRect().bottomRight();
|
QPointF arrow_tail;
|
||||||
arrow_tail.setX(m_cursorPos.x() + 200.0f);
|
arrow_tail.setX(m_cursorPos.x() + 200.0f);
|
||||||
|
arrow_tail.setY(viewport.renderRect().bottomRight().y() + 50);
|
||||||
QPointF arrow_head = m_cursorPos;
|
QPointF arrow_head = m_cursorPos;
|
||||||
|
|
||||||
double angle = atan2((double)(arrow_tail.y() - arrow_head.y()), (double)(arrow_tail.x() - arrow_head.x()));
|
double angle = atan2((double)(arrow_tail.y() - arrow_head.y()), (double)(arrow_tail.x() - arrow_head.x()));
|
||||||
|
|
Loading…
Add table
Reference in a new issue