Skip to content

Commit

Permalink
Refactor|libappfw: Const'd a method of BaseWindow
Browse files Browse the repository at this point in the history
  • Loading branch information
skyjake committed Mar 15, 2014
1 parent e9d9782 commit bda89f6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion doomsday/client/include/ui/clientwindow.h
Expand Up @@ -161,7 +161,7 @@ class ClientWindow : public de::BaseWindow,
void canvasGLResized(de::Canvas &);

// Implements BaseWindow.
de::Vector2f windowContentSize();
de::Vector2f windowContentSize() const;
void drawWindowContent();
void preDraw();
void postDraw();
Expand Down
4 changes: 2 additions & 2 deletions doomsday/client/src/ui/clientwindow.cpp
Expand Up @@ -683,9 +683,9 @@ ClientWindow::ClientWindow(String const &id)
d->setupUI();
}

Vector2f ClientWindow::windowContentSize()
Vector2f ClientWindow::windowContentSize() const
{
return Vector2f(root().viewWidth().value(), root().viewHeight().value());
return Vector2f(d->root.viewWidth().value(), d->root.viewHeight().value());
}

ClientRootWidget &ClientWindow::root()
Expand Down
2 changes: 1 addition & 1 deletion doomsday/libappfw/include/de/framework/basewindow.h
Expand Up @@ -65,7 +65,7 @@ class LIBAPPFW_PUBLIC BaseWindow : public PersistentCanvasWindow
/**
* Returns the logical size of the window contents (e.g., root widget).
*/
virtual Vector2f windowContentSize() = 0;
virtual Vector2f windowContentSize() const = 0;

/**
* Causes the contents of the window to be drawn. The contents are drawn immediately
Expand Down

0 comments on commit bda89f6

Please sign in to comment.