[gimp/gimp-2-10] plug-ins: screenshot-win32.c forbids mixed declarations and code
- From: Jehan <jehanp src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/gimp-2-10] plug-ins: screenshot-win32.c forbids mixed declarations and code
- Date: Sun, 12 Apr 2020 20:36:58 +0000 (UTC)
commit 05e8e98a2edd5ff1579582bbb71bb4d0b56c9773
Author: lillolollo <4179-lillolollo users noreply gitlab gnome org>
Date: Sat Apr 11 02:07:25 2020 +0000
plug-ins: screenshot-win32.c forbids mixed declarations and code
plug-ins/screenshot/screenshot-win32.c | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/plug-ins/screenshot/screenshot-win32.c b/plug-ins/screenshot/screenshot-win32.c
index 60f058b3f3..a9dd831f1c 100644
--- a/plug-ins/screenshot/screenshot-win32.c
+++ b/plug-ins/screenshot/screenshot-win32.c
@@ -523,6 +523,9 @@ GetAccurateWindowRect (HWND hwndTarget,
if (GetWindowPlacement (hwndTarget, &windowplacment) && windowplacment.showCmd == SW_SHOWMAXIMIZED)
{
RECT *rectScreens = NULL;
+ int xCenter;
+ int yCenter;
+ int i;
/* If this is not the first time we call this function for some
* reason then we reset the rectScreens count
@@ -548,11 +551,10 @@ GetAccurateWindowRect (HWND hwndTarget,
rectScreensCount = 1;
}
- int xCenter = outRect->left + (outRect->right - outRect->left) / 2;
- int yCenter = outRect->top + (outRect->bottom - outRect->top) / 2;
+ xCenter = outRect->left + (outRect->right - outRect->left) / 2;
+ yCenter = outRect->top + (outRect->bottom - outRect->top) / 2;
/* find on which screen the window exist */
- int i;
for (i = 0; i < rectScreensCount; i++)
if (xCenter > rectScreens[i].left && xCenter < rectScreens[i].right &&
yCenter > rectScreens[i].top && yCenter < rectScreens[i].bottom)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]