Return a const reference rather than a copy.
This commit is contained in:
@@ -468,9 +468,9 @@ HDC GraphicsWindow::GetHDC()
|
||||
return g_HDC;
|
||||
}
|
||||
|
||||
void GraphicsWindow::GetParams( VideoModeParams ¶msOut )
|
||||
const VideoModeParams &GraphicsWindow::GetParams()
|
||||
{
|
||||
paramsOut = g_CurrentParams;
|
||||
return g_CurrentParams;
|
||||
}
|
||||
|
||||
void GraphicsWindow::Update()
|
||||
|
||||
Reference in New Issue
Block a user