Skip to content

Commit

Permalink
Merge pull request #14 from mattias-symphony/SDA-2171
Browse files Browse the repository at this point in the history
SDA-2171 Fix offset error on win7
  • Loading branch information
mattias-symphony authored Oct 9, 2020
2 parents 3cf4258 + e778871 commit 62b7193
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions SelectRegion.h
Original file line number Diff line number Diff line change
Expand Up @@ -337,6 +337,9 @@ static int selectRegion( RECT* region ) {
SetWindowLongA( hwnd[ i ], GWL_STYLE, WS_VISIBLE );
SetLayeredWindowAttributes( hwnd[ i ], transparent, 100, LWA_ALPHA | LWA_COLORKEY );
UpdateWindow( hwnd[ i ] );

// Fix needed for running Win7 with classic theme. If we don't set position here, the whole window will be offset
SetWindowPos( hwnd[ i ], NULL, bounds.left, bounds.top, 0, 0, SWP_NOSIZE | SWP_NOZORDER | SWP_FRAMECHANGED );
}

// Call timer function directly - it will set up a timer based call to itself as the last thing it does
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "screen-snippet",
"version": "1.0.10",
"version": "1.0.11",
"description": "screen snippet util for windows, new version",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
Expand Down
2 changes: 1 addition & 1 deletion resources.rc
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ IDR_ERASER CURSOR "eraser.cur"

#define VER_MAJOR 1
#define VER_MINOR 0
#define VER_REVISION 10
#define VER_REVISION 11



Expand Down

0 comments on commit 62b7193

Please sign in to comment.