Enlightenment CVS committal

Author  : ningerso
Project : e17
Module  : proto

Dir     : e17/proto/eflpp/examples/angstrom/bootmanager


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/angstrom/bootmanager/calibrate.cpp,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- calibrate.cpp       3 Jul 2007 22:42:30 -0000       1.1
+++ calibrate.cpp       3 Aug 2007 18:09:57 -0000       1.2
@@ -7,7 +7,10 @@
 #include <eflpp_evas.h>
 #include <eflpp_ecore.h>
 
+#ifdef ENABLE_EFLPP_FB
 #include <Ecore_Fb.h>
+#endif
+
 #include <Ecore.h>
 
 const unsigned int offset = 32;
@@ -21,6 +24,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 );
@@ -31,6 +35,7 @@
         return 0; // swallow event
     }
     else
+#endif
     {
         return 1; // keep event
     }
@@ -126,7 +131,9 @@
 
 bool CalibrationRectangle::handleShow()
 {
+#ifdef ENABLE_EFLPP_FB
     ecore_fb_touch_screen_calibrate_set( 1, 0, 0, 0, 0 );
+#endif
     cout << "this = " << this << endl;
     filter = ecore_event_filter_add( &calibration_event_filter_start,
                             &calibration_event_filter_event,
@@ -158,7 +165,9 @@
         delete text;
         //crosshair->hide();
         //text->hide();
+#ifdef ENABLE_EFLPP_FB
         ecore_fb_touch_screen_calibrate_set( 0, 0, 0, 0, 0 );
+#endif
         ecore_event_filter_del( filter );
         calibrate();
         done.emit();



-------------------------------------------------------------------------
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

Reply via email to