Changeset 1875

Show
Ignore:
Timestamp:
3/1/2010 12:33:57 PM (5 months ago)
Author:
lowjoel
Message:

Include the mouse cursor in the screenshot as it is useful for debugging UI bugs.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/eraser6/Eraser.Util/BlackBox.cs

    r1874 r1875  
    309309            bitmap.CopyFromScreen(0, 0, 0, 0, rect.Size, CopyPixelOperation.SourceCopy); 
    310310 
     311            //Place the mouse pointer 
     312            Cursor.Current.Draw(bitmap, new Rectangle(Cursor.Position, Cursor.Current.Size)); 
     313 
    311314            //Save the bitmap to disk 
    312315            screenShot.Save(Path.Combine(dumpFolder, ScreenshotFileName), ImageFormat.Png);