From: Junghoon Park Date: Tue, 13 Dec 2016 08:54:11 +0000 (+0900) Subject: Fix bug about setting rotation callback X-Git-Tag: accepted/tizen/3.0/common/20161216.122600^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d7c2b92cd7efbeee7d8f019585cf48c2f4664bb6;p=platform%2Fcore%2Fappfw%2Fapp-core.git Fix bug about setting rotation callback Change-Id: I98238c3c2aec18a565c1c40824da1607821951fe Signed-off-by: Junghoon Park --- diff --git a/src/appcore-rotation.c b/src/appcore-rotation.c index e4227cb..5d90526 100644 --- a/src/appcore-rotation.c +++ b/src/appcore-rotation.c @@ -128,7 +128,7 @@ static void __changed_cb(sensor_t sensor, unsigned int event_type, if (rot.callback) { if (rot.cb_set && rot.mode != m) { _DBG("[APP %d] Rotation: %d -> %d", getpid(), rot.mode, m); - rot.callback((void *)&m, m, data); + rot.callback((void *)&m, m, user_data); rot.mode = m; } }