示例#1
0
 private static ColorDuo GetColorDuo(ref ColorDuo cd, string c1, string c2)
 {
     if (cd == null)
     {
         cd = new ColorDuo(RuntimeHelper.HexToColor(c1), RuntimeHelper.HexToColor(c2));
     }
     return(cd);
 }
示例#2
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);
 }
示例#3
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;
		}
示例#4
0
文件: GUIHelper.cs 项目: srndpty/VFW
		private static ColorDuo GetColorDuo(ref ColorDuo cd, string c1, string c2)
		{
			if (cd == null) cd = new ColorDuo(RuntimeHelper.HexToColor(c1), RuntimeHelper.HexToColor(c2));
			return cd;
		}