fix fullscreen getting "stuck"

This commit is contained in:
Glenn Maynard
2002-12-28 21:37:18 +00:00
parent 387905a785
commit 9aa85c2293
3 changed files with 16 additions and 3 deletions
+12
View File
@@ -274,6 +274,18 @@ bool RageDisplay::SetVideoMode( bool windowed, int width, int height, int bpp, i
return need_reload;
}
void RageDisplay::ResolutionChanged(int width, int height)
{
g_CurrentWidth = width;
g_CurrentHeight = height;
SetViewport(0,0);
/* Clear any junk that's in the framebuffer. */
Clear();
Flip();
}
void RageDisplay::SetViewport(int shift_left, int shift_down)
{
/* left and down are on a 0..SCREEN_WIDTH, 0..SCREEN_HEIGHT scale.