Return a const reference rather than a copy.

This commit is contained in:
Steve Checkoway
2006-01-19 08:20:41 +00:00
parent 80532a1ef8
commit a123e5bc76
10 changed files with 12 additions and 14 deletions
@@ -17,9 +17,9 @@ void GraphicsWindow::SetVideoModeParams( const VideoModeParams &params )
g_CurrentParams = params;
}
void GraphicsWindow::GetParams( VideoModeParams &paramsOut )
const VideoModeParams &GraphicsWindow::GetParams()
{
paramsOut = g_CurrentParams;
return g_CurrentParams;
}
void GraphicsWindow::Update()