Permalink
Browse files

fix screen calibration window broken after 1b0360e

resize and mover control are used only there and we hide/show them in CGUIWindowSettingsScreenCalibration::DoProcess which will cause false-positive result in current control no longer focusable test
  • Loading branch information...
1 parent 2ceb5f8 commit e4443f2eed88dfc13aea2e61526b3f2bbe5b7213 @pieh pieh committed Jul 31, 2012
Showing with 2 additions and 0 deletions.
  1. +1 −0 xbmc/guilib/GUIMoverControl.h
  2. +1 −0 xbmc/guilib/GUIResizeControl.h
View
1 xbmc/guilib/GUIMoverControl.h
@@ -76,6 +76,7 @@ class CGUIMoverControl : public CGUIControl
void SetLocation(int iLocX, int iLocY, bool bSetPosition = true);
int GetXLocation() const { return m_iLocationX;};
int GetYLocation() const { return m_iLocationY;};
+ virtual bool CanFocus() const { return true; };
protected:
virtual EVENT_RESULT OnMouseEvent(const CPoint &point, const CMouseEvent &event);
View
1 xbmc/guilib/GUIResizeControl.h
@@ -65,6 +65,7 @@ class CGUIResizeControl : public CGUIControl
virtual void SetInvalid();
virtual void SetPosition(float posX, float posY);
void SetLimits(float x1, float y1, float x2, float y2);
+ virtual bool CanFocus() const { return true; };
protected:
virtual EVENT_RESULT OnMouseEvent(const CPoint &point, const CMouseEvent &event);

0 comments on commit e4443f2

Please sign in to comment.