[Fix] NOW it's fixed, and I fixed KonoM's initial bug.

This commit is contained in:
Rtch90 2012-01-10 02:48:17 +00:00
parent 688f4629a3
commit 57d51f6a99
2 changed files with 1 additions and 1 deletions

Binary file not shown.

View File

@ -73,7 +73,7 @@ void Button::SetText(string textArg) {
bool Button::CheckMouseOver(void) { bool Button::CheckMouseOver(void) {
if(event.motion.x > _button.GetX() && event.motion.x < _button.GetX() + _button.GetWidth()) { if(event.motion.x > _button.GetX() && event.motion.x < _button.GetX() + _button.GetWidth()) {
if(event.motion.y > _button.GetY() && event.motion.y < _button.GetY() + _button.GetHeight()) { if(event.motion.y > _button.GetY() && event.motion.y < _button.GetY() + _button.GetHeight()) {
if(_highlighted) { if(!_highlighted) {
_button.SetRGB(_mouseOverColour.r, _mouseOverColour.g, _mouseOverColour.b); _button.SetRGB(_mouseOverColour.r, _mouseOverColour.g, _mouseOverColour.b);
} }
return true; return true;