コード例 #1
0
 private static StyleDuo GetStyleDuo(ref StyleDuo style, ColorDuo cd)
 {
     // it seems that re-creating the textures if they've been destroyed will still cause some strange leaks
     // so I just re-create the whole style if the textures are destroyed
     if (style == null || style.TexturesHaveBeenDestroyed)
     {
         style = new StyleDuo(cd);
     }
     return(style);
 }
コード例 #2
0
ファイル: GUIHelper.cs プロジェクト: srndpty/VFW
		private static StyleDuo GetStyleDuo(ref StyleDuo style, ColorDuo cd)
		{
			// it seems that re-creating the textures if they've been destroyed will still cause some strange leaks
			// so I just re-create the whole style if the textures are destroyed
			if (style == null || style.TexturesHaveBeenDestroyed) style = new StyleDuo(cd);
			return style;
		}