Some more changes for BUG-2017, this simplified some of the code and adds different logic for Windows 10 apps.

This commit is contained in:
Robin 2016-09-04 22:23:42 +02:00
commit c0d18c952c
3 changed files with 43 additions and 34 deletions

View file

@ -826,7 +826,7 @@ namespace Greenshot.Forms {
if (_showDebugInfo && _selectedCaptureWindow != null)
{
string title = string.Format("#{0:X}{1}{2}", _selectedCaptureWindow.Handle.ToInt64(), _selectedCaptureWindow.Text.Length > 0 ? " - ": "", _selectedCaptureWindow.Text);
string title = string.Format("#{0:X} - {1}", _selectedCaptureWindow.Handle.ToInt64(), _selectedCaptureWindow.Text.Length > 0 ? _selectedCaptureWindow.Text : _selectedCaptureWindow.Process.ProcessName);
PointF debugLocation = new PointF(fixedRect.X, fixedRect.Y);
graphics.DrawString(title, sizeFont, Brushes.DarkOrange, debugLocation);
}