Skip to content

Commit

Permalink
Apply Guichan's changes from 957109f8411fba542c42860413d1bc8938173553…
Browse files Browse the repository at this point in the history
… (Mar 5th 2008)

Typos have been fixed. http://code.google.com/p/guichan/issues/detail?id=35
  • Loading branch information
Jarod42 committed Aug 19, 2024
1 parent 058724f commit eac0ced
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion TODO
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
* Continue rebasing from 957109f8411fba542c42860413d1bc8938173553
* Continue rebasing from 33d1e46684936a304ae82587a0c35c68d6b0b93c
* Add a focus listener interface.
* Make focus apply synchronously.
* Graphics and input objects for DirectX.
Expand Down
12 changes: 6 additions & 6 deletions src/gui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ namespace gcn
MouseEvent::EXITED,
mouseInput.getButton(),
mouseInput.getX(),
mouseInput.getX(),
mouseInput.getY(),
true,
true);
}
Expand Down Expand Up @@ -406,9 +406,9 @@ namespace gcn
MouseEvent::EXITED,
mouseInput.getButton(),
mouseInput.getX(),
mouseInput.getX(),
mouseInput.getY(),
true,
true);
true);
mClickCount = 1;
mLastMousePressTimeStamp = 0;
mWidgetWithMouseQueue.erase(iter);
Expand Down Expand Up @@ -599,7 +599,7 @@ namespace gcn
{
mFocusHandler->setLastWidgetPressed(NULL);
}

sourceWidget = mFocusHandler->getDraggedWidget();
}

Expand All @@ -612,15 +612,15 @@ namespace gcn
mouseInput.getX(),
mouseInput.getY());

if (mouseInput.getButton() == mLastMousePressButton
if (mouseInput.getButton() == mLastMousePressButton
&& mFocusHandler->getLastWidgetPressed() == sourceWidget)
{
distributeMouseEvent(sourceWidget,
MouseEvent::CLICKED,
mouseInput.getButton(),
mouseInput.getX(),
mouseInput.getY());

mFocusHandler->setLastWidgetPressed(NULL);
}
else
Expand Down

0 comments on commit eac0ced

Please sign in to comment.