Skip to content

Commit

Permalink
Video: removed unused arguments from make_test_fake
Browse files Browse the repository at this point in the history
  • Loading branch information
Vultraz committed Jul 26, 2017
1 parent 988ac9a commit bcdbad7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 13 deletions.
2 changes: 1 addition & 1 deletion src/tests/utils/fake_display.cpp
Expand Up @@ -84,7 +84,7 @@ namespace test_utils {
fake_display_manager::get_manager()->get_display();

if(width >= 0 && height >= 0) {
display.video().make_test_fake(width, height);
display.video().make_test_fake();
}

return display;
Expand Down
2 changes: 1 addition & 1 deletion src/video.cpp
Expand Up @@ -186,7 +186,7 @@ void CVideo::make_fake()
image::set_pixel_format(frameBuffer->format);
}

void CVideo::make_test_fake(const unsigned width, const unsigned height, const unsigned bpp)
void CVideo::make_test_fake()
{
fake_interactive = true;
}
Expand Down
14 changes: 3 additions & 11 deletions src/video.hpp
Expand Up @@ -54,8 +54,6 @@ class CVideo {

bool non_interactive() const;

const static int DefaultBpp = 32;

/**
* Initializes a new window, taking into account any preiously saved states.
*/
Expand Down Expand Up @@ -123,15 +121,9 @@ class CVideo {
//functions to allow changing video modes when 16BPP is emulated

void make_fake();
/**
* Creates a fake frame buffer for the unit tests.
*
* @param width The width of the buffer.
* @param height The height of the buffer.
* @param bpp The bpp of the buffer.
*/
void make_test_fake(const unsigned width = 1024,
const unsigned height = 768, const unsigned bpp = DefaultBpp);

void make_test_fake();

bool faked() const { return fake_screen_; }

//functions to set and clear 'help strings'. A 'help string' is like a tooltip, but it appears
Expand Down

0 comments on commit bcdbad7

Please sign in to comment.