Improved new IE logic a bit, fine-tuning...

git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@1976 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
This commit is contained in:
RKrom 2012-08-07 15:02:09 +00:00
commit 7fa34e04e9
2 changed files with 50 additions and 44 deletions

View file

@ -678,7 +678,7 @@ namespace Greenshot.Helpers {
// 3) Otherwise use GDI (Screen might be also okay but might lose content) // 3) Otherwise use GDI (Screen might be also okay but might lose content)
if (isAutoMode) { if (isAutoMode) {
// TODO: Decided if this is smart, although we do consider a part of the window... // TODO: Decided if this is smart, although we do consider a part of the window...
if (conf.IECapture && IECaptureHelper.IsMostlyIEWindow(windowToCapture, 60)) { if (conf.IECapture && IECaptureHelper.IsMostlyIEWindow(windowToCapture, 75)) {
try { try {
ICapture ieCapture = IECaptureHelper.CaptureIE(captureForWindow, windowToCapture); ICapture ieCapture = IECaptureHelper.CaptureIE(captureForWindow, windowToCapture);
if (ieCapture != null) { if (ieCapture != null) {

View file

@ -91,7 +91,13 @@ namespace Greenshot.Helpers {
/// <returns>List<WindowDetails></returns> /// <returns>List<WindowDetails></returns>
public static List<WindowDetails> GetIEWindows() { public static List<WindowDetails> GetIEWindows() {
List<WindowDetails> ieWindows = new List<WindowDetails>(); List<WindowDetails> ieWindows = new List<WindowDetails>();
foreach (WindowDetails possibleIEWindow in WindowDetails.GetVisibleWindows()) { foreach (WindowDetails possibleIEWindow in WindowDetails.GetAllWindows()) {
if (possibleIEWindow.Text.Length == 0) {
continue;
}
if (possibleIEWindow.ClientRectangle.IsEmpty) {
continue;
}
if (IsIEWindow(possibleIEWindow)) { if (IsIEWindow(possibleIEWindow)) {
ieWindows.Add(possibleIEWindow); ieWindows.Add(possibleIEWindow);
} }