X-Git-Url: http://git.maemo.org/git/?p=opencv;a=blobdiff_plain;f=samples%2Fc%2Fffilldemo.c;fp=samples%2Fc%2Fffilldemo.c;h=a049a4aa6ed891ffd62f688e0a214108bb9d2a32;hp=300de3181fdbd4a107643d7ad8056c21217ede53;hb=e4c14cdbdf2fe805e79cd96ded236f57e7b89060;hpb=454138ff8a20f6edb9b65a910101403d8b520643 diff --git a/samples/c/ffilldemo.c b/samples/c/ffilldemo.c index 300de31..a049a4a 100644 --- a/samples/c/ffilldemo.c +++ b/samples/c/ffilldemo.c @@ -2,6 +2,8 @@ #pragma package #endif +#define CV_NO_BACKWARD_COMPATIBILITY + #ifndef _EiC #include "cv.h" #include "highgui.h" @@ -40,7 +42,7 @@ void on_mouse( int event, int x, int y, int flags, void* param ) if( is_mask ) cvThreshold( mask, mask, 1, 128, CV_THRESH_BINARY ); - + if( is_color ) { CvScalar color = CV_RGB( r, g, b ); @@ -82,7 +84,7 @@ int main( int argc, char** argv ) "\tg - use gradient floodfill with floating(relative) range\n" "\t4 - use 4-connectivity mode\n" "\t8 - use 8-connectivity mode\n" ); - + color_img = cvCloneImage( color_img0 ); gray_img0 = cvCreateImage( cvSize(color_img->width, color_img->height), 8, 1 ); cvCvtColor( color_img, gray_img0, CV_BGR2GRAY ); @@ -98,7 +100,7 @@ int main( int argc, char** argv ) for(;;) { int c; - + if( is_color ) cvShowImage( "image", color_img ); else