[gimp/gimp-2-10] Issue #3087: error compiling for Windows.



commit 127fc91603d6eac81c4588594abce9e042f3c682
Author: Jehan <jehan girinstud io>
Date:   Fri Mar 8 17:29:16 2019 +0100

    Issue #3087: error compiling for Windows.
    
    s/THREAD_MODE_ABOVE_NORMAL/THREAD_PRIORITY_ABOVE_NORMAL/
    Thanks to Sylvie Alexandre for noticing and searching this.
    
    (cherry picked from commit ebc3ef3c5ed9a893de36bd5ecc1802023555bc74)

 app/core/gimp-parallel.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/app/core/gimp-parallel.cc b/app/core/gimp-parallel.cc
index ca00f8b01d..46002c9334 100644
--- a/app/core/gimp-parallel.cc
+++ b/app/core/gimp-parallel.cc
@@ -218,7 +218,7 @@ gimp_parallel_run_async_independent_full (gint                     priority,
 #if defined (G_OS_WIN32)
       if (task->priority < 0)
         {
-          SetThreadPriority (GetCurrentThread (), THREAD_MODE_ABOVE_NORMAL);
+          SetThreadPriority (GetCurrentThread (), THREAD_PRIORITY_ABOVE_NORMAL);
         }
       else if (task->priority > 0)
         {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]