Commit graph

29 commits

Author SHA1 Message Date
JKlingen
c777878bd7 updated copyright notice for 2013
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2436 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2013-01-20 20:18:49 +00:00
RKrom
201ee7082e Refactored code to use SafeHandle where possible, this should fix potential resource leaks and make the code more clear.
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2429 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2013-01-14 13:45:41 +00:00
RKrom
502abed36a Added SafeHandles, see here: http://blogs.msdn.com/b/bclteam/archive/2005/03/15/396335.aspx to some of the Greenshot code. Not all possible handles have been converted, this should be done to prevent more possible memory/resource leaks.
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2427 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2013-01-13 15:53:35 +00:00
RKrom
a12b7e3a38 Cleanup
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2421 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2013-01-08 11:36:07 +00:00
RKrom
8a3fd911bf Fixed a NullReference and changed the way we read the icon for the windows in the List.
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2419 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2013-01-08 11:13:18 +00:00
RKrom
5ce65ab191 Fixed a problem with loading the icon from a share, also preventing a NullPointerReference in the MainForm
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2418 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2013-01-08 10:20:31 +00:00
RKrom
efda1e3025 Fixed WindowLong issue, the MSDN documentation doesn't work for .NET
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2400 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2012-12-20 14:17:27 +00:00
RKrom
635ee507f8 Cleanup of User32 Code, added setter for the ExtendedWindowStyle and changed the WindowPlacement to use get/set
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2396 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2012-12-20 08:48:01 +00:00
RKrom
16a8122751 Added comment
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2394 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2012-12-19 08:10:24 +00:00
RKrom
82eddefe4e Code cleanup, already made some changes (which are not active) for the next release so I can work on them without having multiple changed files which might cause check in conflicts.
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2359 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2012-12-06 13:47:17 +00:00
RKrom
ce632b1496 Added changes for the zoom to animate relative to the cursor position. Also made the first changes to make sure the animation has a frame rate equal to the screen refresh.
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2341 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2012-12-02 12:49:44 +00:00
RKrom
67db97b13f Refactored the zoomForm to a zoomControl, with this we can prevent mouse events to happen. Also the current state seems to work very well, even with a larger size.
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2306 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2012-11-23 22:17:47 +00:00
RKrom
5a1c5fd0eb Fixed the zoom, it was drawn incorrectly. Also changed the drawing to work with a timer, so the updates are made even if the mouse moves to quick. Added a bitblt method in the GDI32 class.
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2294 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2012-11-18 11:18:20 +00:00
RKrom
fa02394047 Added DwmEnableComposition for testing
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2286 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2012-11-15 12:22:42 +00:00
RKrom
f006718d2a Some fixes for capturing those nasty Apps, code is not finished yet!
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2267 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2012-11-11 19:57:55 +00:00
RKrom
f63d4ca06e Changed logic of the DWM capture which tries to keep the window to capture on it's location, so less movement is visible. Also added a BoxBlur which might be a faster replacement of the CreateBlur (which is Gaussian), but the quality needs to be checked. For the BoxBlur the BitmapBuffer is extended with a few new tricks.
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2245 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2012-11-06 15:59:19 +00:00
RKrom
15d5bb58e4 Fixes: Catching an outlook exception that can be ignored. Making sure that the window to be captured is active, so the colors are right. Also a little cleanup, and added FindWindow to the User32.cs so we can use this to find Metro (Modern UI) applications, this still needs to be added to the WindowsHelper.cs
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2244 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2012-11-06 06:11:37 +00:00
RKrom
197d46c9b9 Fixed a potential issue with GetWindowLong, using a wrapper which decides upon the IntPtr size which call needs to be made.
Fixed the corner cut to work with a CreateRoundRectRgn, but made if it cuts configurable so people can turn it off.
Added a CountColor method to ImageHelper.cs, which should be used to check if PrintWindow functions properly.

git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2236 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2012-11-05 14:18:13 +00:00
RKrom
4a3161a281 Fixed some capture issues, when trying to capture or show thumbnails of Windows that are iconized the size calculations are wrong.
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2206 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2012-10-26 18:07:55 +00:00
RKrom
fbc0285c93 Added "special" DIB clipboard reader code, which is a test to fix bug #3576125. This is enabled over the ini property EnableSpecialDIBClipboardReader, disabled by default.
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2195 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2012-10-23 11:08:11 +00:00
RKrom
959bcd3135 First Windows 8 changes, removed an obsolete call this might also improve the performance a tick...
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@1917 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2012-06-11 10:56:58 +00:00
RKrom
b3a3c1da4e Cleanup of sound code, also added the possibility to configure your own sound.
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@1911 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2012-06-08 11:43:05 +00:00
RKrom
d0ff4fbed6 Added lower memory footprint expert setting and created a PsAPI.cs file for the Process API invokes.
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@1866 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2012-05-17 14:19:56 +00:00
RKrom
e5cf074386 Extended the running instance MessageBox with the paths of the instances. Made to get a better fix for #3526579
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@1847 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2012-05-14 15:44:08 +00:00
RKrom
6905a353c1 Implemented some TODO's, fixed freezing the wrong processes, fixed retrieval of window icon for some windows and cleaned some code.
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@1831 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2012-05-04 09:58:18 +00:00
RKrom
63f71138cf Added a color picker, a modified Patch #3487158. Still needs some additional checks, if all resources are correctly freed etc.
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@1654 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2012-02-13 11:29:10 +00:00
RKrom
0f65452e6c Fixed Copyright to 2012
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@1653 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2012-02-13 09:06:09 +00:00
RKrom
46758d238c Changes for Thomas & fixed undo/redo for background changes
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@1647 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2012-02-09 15:30:27 +00:00
RKrom
8d458998a1 Moving back to trunk!
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@1602 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
2012-01-24 19:24:36 +00:00