Skip to content

Commit

Permalink
fix screen calibration window broken after 1b0360e
Browse files Browse the repository at this point in the history
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
pieh committed Aug 1, 2012
1 parent 2ceb5f8 commit e4443f2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions xbmc/guilib/GUIMoverControl.h
Expand Up @@ -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);
Expand Down
1 change: 1 addition & 0 deletions xbmc/guilib/GUIResizeControl.h
Expand Up @@ -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);
Expand Down

0 comments on commit e4443f2

Please sign in to comment.