diff options
Diffstat (limited to 'graphics/seam-carving-gui')
-rw-r--r-- | graphics/seam-carving-gui/Makefile | 3 | ||||
-rw-r--r-- | graphics/seam-carving-gui/files/patch-cair_CAIR.cpp | 76 |
2 files changed, 40 insertions, 39 deletions
diff --git a/graphics/seam-carving-gui/Makefile b/graphics/seam-carving-gui/Makefile index cf6eec847f83..ac920f93f179 100644 --- a/graphics/seam-carving-gui/Makefile +++ b/graphics/seam-carving-gui/Makefile @@ -11,7 +11,8 @@ DISTNAME= SeamCarvingGui-Src-${PORTVERSION} MAINTAINER= buganini@gmail.com COMMENT= The Seam Carving GUI is a GUI front end to CAIR -USES= gmake qmake +USES= dos2unix gmake qmake +DOS2UNIX_GLOB= *.cpp USE_QT4= gui imageformats_run moc_build uic_build WRKSRC= ${WRKDIR}/Src\ Seam\ Carving\ GUI\ ${PORTVERSION} diff --git a/graphics/seam-carving-gui/files/patch-cair_CAIR.cpp b/graphics/seam-carving-gui/files/patch-cair_CAIR.cpp index 3c66e1a8ef49..9d6e31ba60dd 100644 --- a/graphics/seam-carving-gui/files/patch-cair_CAIR.cpp +++ b/graphics/seam-carving-gui/files/patch-cair_CAIR.cpp @@ -1,38 +1,38 @@ ---- cair/CAIR.cpp.orig 2010-02-28 16:44:47.000000000 +0800 -+++ cair/CAIR.cpp 2010-02-28 16:45:32.000000000 +0800 -@@ -276,7 +276,7 @@ - //Our thread function for the Grayscale
- void * Gray_Quadrant( void * id )
- {
-- int num = *((int *)id);
-+ long int num = *((long int *)id);
-
- while( true )
- {
-@@ -437,7 +437,7 @@ - //The thread function, splitting the image into strips
- void * Edge_Quadrant( void * id )
- {
-- int num = *((int *)id);
-+ long int num = *((long int *)id);
-
- while( true )
- {
-@@ -744,7 +744,7 @@ - //This works like Remove_Quadrant, strips across the image.
- void * Add_Quadrant( void * id )
- {
-- int num = *((int *)id);
-+ long int num = *((long int *)id);
- Thread_Params add_area;
-
- while( true )
-@@ -907,7 +907,7 @@ - //the areas are not quadrants, rather, more like strips, but I keep the name convention
- void * Remove_Quadrant( void * id )
- {
-- int num = *((int *)id);
-+ long int num = *((long int *)id);
- Thread_Params remove_area;
-
- while( true )
+--- cair/CAIR.cpp.orig 2016-06-20 15:53:24 UTC ++++ cair/CAIR.cpp +@@ -276,7 +276,7 @@ inline CML_byte Grayscale_Pixel( CML_RGB + //Our thread function for the Grayscale + void * Gray_Quadrant( void * id ) + { +- int num = *((int *)id); ++ long int num = *((long int *)id); + + while( true ) + { +@@ -437,7 +437,7 @@ int Convolve_Pixel( CML_image_ptr * Sour + //The thread function, splitting the image into strips + void * Edge_Quadrant( void * id ) + { +- int num = *((int *)id); ++ long int num = *((long int *)id); + + while( true ) + { +@@ -744,7 +744,7 @@ CML_RGBA Average_Pixels( CML_RGBA Pixel1 + //This works like Remove_Quadrant, strips across the image. + void * Add_Quadrant( void * id ) + { +- int num = *((int *)id); ++ long int num = *((long int *)id); + Thread_Params add_area; + + while( true ) +@@ -907,7 +907,7 @@ bool CAIR_Add( CML_image * Source, CML_i + //the areas are not quadrants, rather, more like strips, but I keep the name convention + void * Remove_Quadrant( void * id ) + { +- int num = *((int *)id); ++ long int num = *((long int *)id); + Thread_Params remove_area; + + while( true ) |