static void OnBtnPatchreset( GtkWidget *widget, gpointer data ){
	float fx, fy;

	if ( DoTextureLayout( &fx, &fy ) == IDOK ) {
		Patch_ResetTexturing( fx, fy );
	}
	Sys_UpdateWindows( W_ALL );
}
void CPatchDialog::OnBtnPatchreset()
{
	CTextureLayout dlg;
	if ( dlg.DoModal() == IDOK )
	{
		Patch_ResetTexturing( dlg.m_fX, dlg.m_fY );
	}
	Sys_UpdateWindows( W_ALL );
}
static void OnBtnPatchFit( GtkWidget *widget, gpointer data ){
	Patch_ResetTexturing( 1.0, 1.0 );
	Sys_UpdateWindows( W_ALL );
}