Skip to content

Commit

Permalink
Removed CVideo::modeChanged() (unused)
Browse files Browse the repository at this point in the history
  • Loading branch information
Vultraz committed Dec 10, 2016
1 parent a53090d commit 7d83d06
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 15 deletions.
9 changes: 0 additions & 9 deletions src/video.cpp
Expand Up @@ -83,7 +83,6 @@ void trigger_full_redraw() {

CVideo::CVideo(FAKE_TYPES type)
: window()
, mode_changed_(false)
, fake_screen_(false)
, help_string_(0)
, updatesLocked_(0)
Expand Down Expand Up @@ -248,7 +247,6 @@ void CVideo::setMode(int x, int y, const MODE_EVENT mode)
{
assert(window);
if(fake_screen_) return;
mode_changed_ = true;

switch(mode) {
case TO_FULLSCREEN:
Expand Down Expand Up @@ -278,13 +276,6 @@ void CVideo::setMode(int x, int y, const MODE_EVENT mode)
}
}

bool CVideo::modeChanged()
{
bool ret = mode_changed_;
mode_changed_ = false;
return ret;
}

int CVideo::getx() const
{
return frameBuffer->w;
Expand Down
6 changes: 0 additions & 6 deletions src/video.hpp
Expand Up @@ -76,9 +76,6 @@ class CVideo {

std::pair<int,int> current_resolution();

//did the mode change, since the last call to the modeChanged() method?
bool modeChanged();

//functions to get the dimensions of the current video-mode
int getx() const;
int gety() const;
Expand Down Expand Up @@ -182,9 +179,6 @@ class CVideo {

void initSDL();

bool mode_changed_;


//if there is no display at all, but we 'fake' it for clients
bool fake_screen_;

Expand Down

0 comments on commit 7d83d06

Please sign in to comment.