Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
GNOME
GIMP
Commits
e360cef0
Commit
e360cef0
authored
Jan 10, 2023
by
Luca Bacci
Committed by
Jehan
Jan 24, 2023
Browse files
screenshot-win32-magnification-api.h: Fix coding style
parent
005b3a05
Pipeline
#484184
passed with stages
in 39 minutes and 32 seconds
Changes
1
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
plug-ins/screenshot/screenshot-win32-magnification-api.h
View file @
e360cef0
...
...
@@ -74,21 +74,21 @@ typedef struct tagMAGCOLOREFFECT
/* Proptypes for the public functions */
typedef
BOOL
(
WINAPI
*
MAGINITIALIZE
)();
typedef
BOOL
(
WINAPI
*
MAGINITIALIZE
)
();
MAGINITIALIZE
MagInitialize
;
typedef
BOOL
(
WINAPI
*
MAGUNINITIALIZE
)();
typedef
BOOL
(
WINAPI
*
MAGUNINITIALIZE
)
();
MAGUNINITIALIZE
MagUninitialize
;
typedef
BOOL
(
WINAPI
*
MAGSETWINDOWSOURCE
)(
HWND
,
RECT
);
typedef
BOOL
(
WINAPI
*
MAGSETWINDOWSOURCE
)
(
HWND
,
RECT
);
MAGSETWINDOWSOURCE
MagSetWindowSource
;
typedef
BOOL
(
WINAPI
*
MAGSETWINDOWFILTERLIST
)(
HWND
,
DWORD
,
int
,
HWND
*
);
typedef
BOOL
(
WINAPI
*
MAGSETWINDOWFILTERLIST
)
(
HWND
,
DWORD
,
int
,
HWND
*
);
MAGSETWINDOWFILTERLIST
MagSetWindowFilterList
;
typedef
BOOL
(
CALLBACK
*
MagImageScalingCallback
)(
HWND
hwnd
,
void
*
srcdata
,
MAGIMAGEHEADER
srcheader
,
void
*
destdata
,
MAGIMAGEHEADER
destheader
,
RECT
unclipped
,
RECT
clipped
,
HRGN
dirty
);
typedef
BOOL
(
CALLBACK
*
MagImageScalingCallback
)
(
HWND
hwnd
,
void
*
srcdata
,
MAGIMAGEHEADER
srcheader
,
void
*
destdata
,
MAGIMAGEHEADER
destheader
,
RECT
unclipped
,
RECT
clipped
,
HRGN
dirty
);
typedef
BOOL
(
WINAPI
*
MAGSETIMAGESCALINGCALLBACK
)(
HWND
,
MagImageScalingCallback
);
typedef
BOOL
(
WINAPI
*
MAGSETIMAGESCALINGCALLBACK
)
(
HWND
,
MagImageScalingCallback
);
MAGSETIMAGESCALINGCALLBACK
MagSetImageScalingCallback
;
...
...
@@ -96,57 +96,61 @@ MAGSETIMAGESCALINGCALLBACK MagSetImageScalingCallback;
static
HINSTANCE
magnificationLibrary
;
void
UnLoadMagnificationLibrary
(
void
);
BOOL
LoadMagnificationLibrary
(
void
);
void
UnLoadMagnificationLibrary
(
void
);
BOOL
LoadMagnificationLibrary
(
void
);
void
UnLoadMagnificationLibrary
(
void
)
void
UnLoadMagnificationLibrary
(
void
)
{
if
(
!
magnificationLibrary
)
return
;
FreeLibrary
(
magnificationLibrary
);
}
if
(
!
magnificationLibrary
)
return
;
FreeLibrary
(
magnificationLibrary
);
}
BOOL
LoadMagnificationLibrary
(
void
)
BOOL
LoadMagnificationLibrary
(
void
)
{
if
(
magnificationLibrary
)
return
TRUE
;
if
(
magnificationLibrary
)
return
TRUE
;
magnificationLibrary
=
LoadLibraryW
(
L"Magnification"
);
if
(
!
magnificationLibrary
)
return
FALSE
;
magnificationLibrary
=
LoadLibraryW
(
L"Magnification"
);
if
(
!
magnificationLibrary
)
return
FALSE
;
MagInitialize
=
(
MAGINITIALIZE
)
GetProcAddress
(
magnificationLibrary
,
"MagInitialize"
);
MagInitialize
=
(
MAGINITIALIZE
)
GetProcAddress
(
magnificationLibrary
,
"MagInitialize"
);
if
(
!
MagInitialize
)
{
UnLoadMagnificationLibrary
();
UnLoadMagnificationLibrary
();
return
FALSE
;
}
MagUninitialize
=
(
MAGUNINITIALIZE
)
GetProcAddress
(
magnificationLibrary
,
"MagUninitialize"
);
MagUninitialize
=
(
MAGUNINITIALIZE
)
GetProcAddress
(
magnificationLibrary
,
"MagUninitialize"
);
if
(
!
MagUninitialize
)
{
UnLoadMagnificationLibrary
();
UnLoadMagnificationLibrary
();
return
FALSE
;
}
MagSetWindowSource
=
(
MAGSETWINDOWSOURCE
)
GetProcAddress
(
magnificationLibrary
,
"MagSetWindowSource"
);
MagSetWindowSource
=
(
MAGSETWINDOWSOURCE
)
GetProcAddress
(
magnificationLibrary
,
"MagSetWindowSource"
);
if
(
!
MagSetWindowSource
)
{
UnLoadMagnificationLibrary
();
UnLoadMagnificationLibrary
();
return
FALSE
;
}
MagSetWindowFilterList
=
(
MAGSETWINDOWFILTERLIST
)
GetProcAddress
(
magnificationLibrary
,
"MagSetWindowFilterList"
);
MagSetWindowFilterList
=
(
MAGSETWINDOWFILTERLIST
)
GetProcAddress
(
magnificationLibrary
,
"MagSetWindowFilterList"
);
if
(
!
MagSetWindowFilterList
)
{
UnLoadMagnificationLibrary
();
UnLoadMagnificationLibrary
();
return
FALSE
;
}
MagSetImageScalingCallback
=
(
MAGSETIMAGESCALINGCALLBACK
)
GetProcAddress
(
magnificationLibrary
,
"MagSetImageScalingCallback"
);
MagSetImageScalingCallback
=
(
MAGSETIMAGESCALINGCALLBACK
)
GetProcAddress
(
magnificationLibrary
,
"MagSetImageScalingCallback"
);
if
(
!
MagSetImageScalingCallback
)
{
UnLoadMagnificationLibrary
();
UnLoadMagnificationLibrary
();
return
FALSE
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment