Enlightenment CVS committal Author : ningerso Project : e17 Module : proto
Dir : e17/proto/eflpp/examples/ecore/calibrate Modified Files: calibrate.cpp Log Message: Fix build when fb not available. Someone with FB please verify this does not break that case. =================================================================== RCS file: /cvs/e/e17/proto/eflpp/examples/ecore/calibrate/calibrate.cpp,v retrieving revision 1.2 retrieving revision 1.3 diff -u -3 -r1.2 -r1.3 --- calibrate.cpp 3 Aug 2007 06:38:00 -0000 1.2 +++ calibrate.cpp 3 Aug 2007 18:09:57 -0000 1.3 @@ -9,7 +9,10 @@ #include <eflpp_evas.h> #include <eflpp_ecore.h> +#ifdef ENABLE_EFLPP_FB #include <Ecore_Fb.h> +#endif + #include <Ecore.h> #define CALIBRATE_FANCY_CROSSHAIR 1 @@ -28,6 +31,7 @@ static int calibration_event_filter_event( void* loop_data, void *data, int type, void* event ) { +#ifdef ENABLE_EFLPP_FB if ( type == ECORE_FB_EVENT_MOUSE_BUTTON_UP ) { Ecore_Fb_Event_Mouse_Button_Up* ev = static_cast<Ecore_Fb_Event_Mouse_Button_Up*>( event ); @@ -38,6 +42,7 @@ return 0; // swallow event } else +#endif { return 1; // keep event } @@ -174,8 +179,7 @@ bool CalibrationRectangle::handleShow() { -#warning ECORE_FB_PATCH_NOT_SUBMITTED_YET -#ifdef ECORE_FB_PATCH_SUBMITTED +#ifdef ENABLE_EFLPP_FB ecore_fb_touch_screen_calibrate_set( 1, 0, 0, 0, 0 ); #endif filter = ecore_event_filter_add( &calibration_event_filter_start, @@ -211,7 +215,7 @@ */ //crosshair->hide(); //text->hide(); -#ifdef ECORE_FB_PATCH_SUBMITTED +#ifdef ENABLE_EFLPP_FB ecore_fb_touch_screen_calibrate_set( 0, 0, 0, 0, 0 ); #endif ecore_event_filter_del( filter ); ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs