[gimp] plug-ins: screenshot-win32.c forbids mixed declarations and code
- From: Jehan <jehanp src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] plug-ins: screenshot-win32.c forbids mixed declarations and code
- Date: Sun, 12 Apr 2020 20:16:18 +0000 (UTC)
commit 202012ba730b9ef99b3c969e06f9d8a04eab4301
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
(cherry picked from commit 09fb64c6042a4eedbaceff294d4618e7d8127bd2)
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 96f62d0471..0f0e5edf60 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]