mp/src/game/client/sdk/vgui/sdk_mapinfo.cpp
void CSDKMapInfo::MoveToCenterOfScreen()
{
	int wx, wy, ww, wt;
	surface()->GetWorkspaceBounds(wx, wy, ww, wt);
	SetPos((ww - GetWide()) / 2, (wt - GetTall()) / 2);
}
//-----------------------------------------------------------------------------
// Purpose: Center the dialog on the screen.  (vgui has this method on
//			Frame, but we're an EditablePanel, need to roll our own.)
//-----------------------------------------------------------------------------
Center the dialog on the screen.  (vgui has this method on
Frame, but we're an EditablePanel, need to roll our own.)
Center the dialog on the screen . ( vgui has this method on Frame but we ' re an EditablePanel need to roll our own . )
void CSDKMapInfo::MoveToCenterOfScreen()
{
	int wx, wy, ww, wt;
	surface()->GetWorkspaceBounds(wx, wy, ww, wt);
	SetPos((ww - GetWide()) / 2, (wt - GetTall()) / 2);
}
void CSDKMapInfo :: MoveToCenterOfScreen ( ) { int wx , wy , ww , wt ; surface ( ) -> GetWorkspaceBounds ( wx , wy , ww , wt ) ; SetPos ( ( ww - GetWide ( ) ) / 2 , ( wt - GetTall ( ) ) / 2 ) ; }
Purpose: Center the dialog on the screen.
Purpose : Center the dialog on the screen .