[gimp] plug-ins: make screenshot-win32 compile again.
- From: Jehan Pagès <jehanp src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] plug-ins: make screenshot-win32 compile again.
- Date: Wed, 1 Feb 2017 17:54:26 +0000 (UTC)
commit f43092cbf5cf092c61159fc537d14004bb184406
Author: Jehan <jehan girinstud io>
Date: Wed Feb 1 18:50:28 2017 +0100
plug-ins: make screenshot-win32 compile again.
Commit e518b97 broke Win32 compilation with a non-defined variable
"monitor". I made a dirty "fix" by using shootvals->monitor.
Apparently, seeing previous comment, that is probably not the right
value but Mitch is on it and I leave him work it out.
At least now it builds.
plug-ins/screenshot/screenshot-win32.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/plug-ins/screenshot/screenshot-win32.c b/plug-ins/screenshot/screenshot-win32.c
index 08501ab..42381c5 100644
--- a/plug-ins/screenshot/screenshot-win32.c
+++ b/plug-ins/screenshot/screenshot-win32.c
@@ -164,7 +164,11 @@ screenshot_win32_shoot (ScreenshotValues *shootvals,
{
GimpColorProfile *profile;
- profile = gimp_screen_get_color_profile (screen, monitor);
+ /* XXX No idea if the "monitor" value is right at all, especially
+ * considering above comment. Just make so that it at least
+ * compiles!
+ */
+ profile = gimp_screen_get_color_profile (screen, shootvals->monitor);
if (profile)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]