Fix division by zero in unit tests
Note that this doesn't fix unit tests because they have started to segfault in the meantime.
This commit is contained in:
parent
f7b34ce1e8
commit
ab6b2a7af1
1 changed files with 2 additions and 0 deletions
|
@ -180,6 +180,7 @@ void CVideo::blit_surface(int x, int y, surface surf, SDL_Rect* srcrect, SDL_Rec
|
|||
void CVideo::make_fake()
|
||||
{
|
||||
fake_screen_ = true;
|
||||
refresh_rate_ = 1;
|
||||
frameBuffer = SDL_CreateRGBSurface(0, 16, 16, 24, 0xFF0000, 0xFF00, 0xFF, 0);
|
||||
image::set_pixel_format(frameBuffer->format);
|
||||
}
|
||||
|
@ -190,6 +191,7 @@ void CVideo::make_test_fake(const unsigned width, const unsigned height, const u
|
|||
image::set_pixel_format(frameBuffer->format);
|
||||
|
||||
fake_interactive = true;
|
||||
refresh_rate_ = 1;
|
||||
}
|
||||
|
||||
void CVideo::update_framebuffer()
|
||||
|
|
Loading…
Add table
Reference in a new issue