Skip to content

Commit

Permalink
GUI2/Window: removed CVideo getter
Browse files Browse the repository at this point in the history
One should use CVideo::get_singleton instead since there's only one CVideo object anyway.
This class just has a convenience reference to it.
  • Loading branch information
Vultraz committed Dec 11, 2020
1 parent e3f444a commit cfcc297
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
2 changes: 1 addition & 1 deletion src/gui/widgets/window.cpp
Expand Up @@ -683,7 +683,7 @@ void window::draw()
assert(!item.empty());

const SDL_Rect dirty_rect
= new_widgets ? video().screen_area()
= new_widgets ? video_.screen_area()
: item.back()->get_dirty_rectangle();

// For testing we disable the clipping rect and force the entire screen to
Expand Down
5 changes: 0 additions & 5 deletions src/gui/widgets/window.hpp
Expand Up @@ -346,11 +346,6 @@ class window : public panel

/***** ***** ***** setters / getters for members ***** ****** *****/

CVideo& video()
{
return video_;
}

/**
* Sets there return value of the window.
*
Expand Down

0 comments on commit cfcc297

Please sign in to comment.