diff options
| author | Michael <[email protected]> | 2017-04-14 10:03:28 -0400 |
|---|---|---|
| committer | Michael <[email protected]> | 2017-04-14 10:03:33 -0400 |
| commit | 791290857f6feed7da6b583b8f39cb45698d69e8 (patch) | |
| tree | e7957faabe1ba2319b49ffb9d81f81179dcfc1a5 /ShiftOS_TheReturn | |
| parent | 71440207cdaecea96f09f71861eb7b3af2c7d44e (diff) | |
| download | shiftos_thereturn-791290857f6feed7da6b583b8f39cb45698d69e8.tar.gz shiftos_thereturn-791290857f6feed7da6b583b8f39cb45698d69e8.tar.bz2 shiftos_thereturn-791290857f6feed7da6b583b8f39cb45698d69e8.zip | |
Huge optimizations.
Windows load A LOT faster, and Shifter has a preview.
Diffstat (limited to 'ShiftOS_TheReturn')
| -rw-r--r-- | ShiftOS_TheReturn/Skinning.cs | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/ShiftOS_TheReturn/Skinning.cs b/ShiftOS_TheReturn/Skinning.cs index 800b107..48b7c0b 100644 --- a/ShiftOS_TheReturn/Skinning.cs +++ b/ShiftOS_TheReturn/Skinning.cs @@ -64,10 +64,14 @@ namespace ShiftOS.Engine { public static class SkinEngine { - public static ImageLayout GetImageLayout(string img) { - if (LoadedSkin.SkinImageLayouts.ContainsKey(img)) { + public static ImageLayout GetImageLayout(string img) + { + if (LoadedSkin.SkinImageLayouts.ContainsKey(img)) + { return LoadedSkin.SkinImageLayouts[img]; - } else { + } + else + { LoadedSkin.SkinImageLayouts.Add(img, ImageLayout.Tile); return ImageLayout.Tile; } |
