mirror of
https://github.com/OpenTTD/OpenTTD
synced 2026-01-27 22:24:28 +01:00
Codechange: change 'return existing window' to a template parameter
This change is made to make it possible to pass arbitrary other parameters to the constructor of the window instances.
This commit is contained in:
@@ -1030,7 +1030,7 @@ void ShowFramerateWindow()
|
||||
void ShowFrametimeGraphWindow(PerformanceElement elem)
|
||||
{
|
||||
if (elem < PFE_FIRST || elem >= PFE_MAX) return; // maybe warn?
|
||||
AllocateWindowDescFront<FrametimeGraphWindow>(_frametime_graph_window_desc, elem, true);
|
||||
AllocateWindowDescFront<FrametimeGraphWindow>(_frametime_graph_window_desc, elem);
|
||||
}
|
||||
|
||||
/** Print performance statistics to game console */
|
||||
|
||||
Reference in New Issue
Block a user