#define TEXT_MAX 1024
#define FILE_PATH_MAX 1024
-#define PI 3.141592
-
//#define APPS_TEST
#endif
cbdata->geo.obj = obj;
if (s_info.enable_dnd) {
- int delay = 0.5;
+ double delay = 0.5;
double fdelay;
//delay = SYSTEM_SETTINGS_TAP_AND_HOLD_DELAY_SHORT; /* default 0.5 sec */
//delay = SYSTEM_SETTINGS_TAP_AND_HOLD_DELAY_SHORT;
//}
- fdelay = ((double)delay / 1000.0f);
+ fdelay = (delay / 1000.0f);
DbgPrint("Long press: %lf\n", fdelay);
cbdata->long_press_timer = ecore_timer_add(fdelay, long_press_cb, cbdata);
* limitations under the License.
*/
+#include <math.h>
#include "animator.h"
#include "apps/apps_view.h"
#include "apps/apps_view_icon.h"
void __apps_view_circle_get_pos(int radius, double angle, int *x, int *y)
{
- *x = radius * sin(angle * PI / 180);
- *y = radius * cos(angle * PI / 180);
+ *x = radius * sin(angle * M_PI / 180);
+ *y = radius * cos(angle * M_PI / 180);
*x = *x + WINDOW_CENTER_X;
*y = WINDOW_CENTER_Y - *y;
{
int i = 0;
int *focus_unit = (int *)data;
- if (focus_unit == NULL || focus_unit < 0) {
+ if (focus_unit == NULL || *focus_unit < 0) {
_E("focus page is wrong");
return ;
}
{
int i = 0;
int *page_cnt = (int *)data;
- if (page_cnt == NULL || page_cnt < 0) {
+ if (page_cnt == NULL || *page_cnt < 0) {
_E("page count is wrong");
return ;
}