diff options
| author | AdmAlexus <[email protected]> | 2017-10-27 20:01:14 +0500 |
|---|---|---|
| committer | AdmAlexus <[email protected]> | 2017-10-27 20:01:14 +0500 |
| commit | b908cc41c91c60c8e2c6395a2e14ec39fa9f3aab (patch) | |
| tree | 3ffb2350e1c0cd66ec88bc7ba5fa657a9ae84a60 /Histacom2.Engine/UI | |
| parent | f4996ae1067a4cb6855f8d904e9f197c4d61b980 (diff) | |
| download | histacom2-b908cc41c91c60c8e2c6395a2e14ec39fa9f3aab.tar.gz histacom2-b908cc41c91c60c8e2c6395a2e14ec39fa9f3aab.tar.bz2 histacom2-b908cc41c91c60c8e2c6395a2e14ec39fa9f3aab.zip | |
Revert "Fix V3002, V3114 warnings from PVS-Studio Static Analyzer"
This reverts commit f4996ae1067a4cb6855f8d904e9f197c4d61b980.
Diffstat (limited to 'Histacom2.Engine/UI')
| -rw-r--r-- | Histacom2.Engine/UI/ClassicStartMenuItem.cs | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/Histacom2.Engine/UI/ClassicStartMenuItem.cs b/Histacom2.Engine/UI/ClassicStartMenuItem.cs index 463cf8f..dcb8361 100644 --- a/Histacom2.Engine/UI/ClassicStartMenuItem.cs +++ b/Histacom2.Engine/UI/ClassicStartMenuItem.cs @@ -57,24 +57,21 @@ namespace Histacom2.Engine.UI if (BackgroundImageLayout == ImageLayout.Stretch) e.Graphics.DrawImage(BackgroundImage, new Rectangle(0, 0, Width, Height + 9)); } - int imgWidth = 0; - if (Image != null) - { - if (Selected) + if (Selected) { if (SaveSystem.currentTheme != null && DoBackColorAdapt) e.Graphics.FillRectangle(new SolidBrush(SaveSystem.currentTheme.selectedBackColor), new Rectangle(0, 0, Width, Image.Height)); else e.Graphics.FillRectangle(Brushes.Navy, new Rectangle(0, 0, Width, Image.Height)); } e.Graphics.TextRenderingHint = System.Drawing.Text.TextRenderingHint.SingleBitPerPixelGridFit; - e.Graphics.DrawImage(Image, 0 + Padding.Left - Padding.Right, 0); imgWidth = Image.Width; - - } - //if (Image != null) if (Height != Image.Height) if (layout == ClassicStartMenuItemLayout.CloseTitleWithLightSubtitle && Height != Image.Height + 8) { Height = Image.Height; } StringFormat sf = new StringFormat(); sf.HotkeyPrefix = System.Drawing.Text.HotkeyPrefix.Show; + int imgWidth = 0; + if (Image != null) { e.Graphics.DrawImage(Image, 0 + Padding.Left - Padding.Right, 0); imgWidth = Image.Width; } + //if (Image != null) if (Height != Image.Height) if (layout == ClassicStartMenuItemLayout.CloseTitleWithLightSubtitle && Height != Image.Height + 8) { Height = Image.Height; } + if (!Selected) { switch (layout) { case ClassicStartMenuItemLayout.DistancedTitle: @@ -136,7 +133,7 @@ namespace Histacom2.Engine.UI { DistancedTitle, CloseTitle, - //CloseTitleWithTwoLines, + CloseTitleWithTwoLines, CloseTitleWithLightSubtitle } } |
