modify rotation
authorSon Hyunjun <hj79.son@samsung.com>
Wed, 14 Mar 2012 19:00:37 +0000 (04:00 +0900)
committerSon Hyunjun <hj79.son@samsung.com>
Wed, 14 Mar 2012 19:00:37 +0000 (04:00 +0900)
tizen/src/skin/maruskin_operation.c

index 11f983ee3698e7f3f841febf191a56bc29639a83..ddeb5fcbc43d7e384394e7f081481b640d561338 100644 (file)
@@ -149,10 +149,10 @@ void do_rotation_event( int event_type) {
         sprintf( send_buf, "1\n3\n0\n-9.80665\n0\n" );
         break;
     case ROTATION_LANDSCAPE:
-        sprintf( send_buf, "1\n3\n-9.80665\n0\n0\n" );
+        sprintf( send_buf, "1\n3\n0\n9.80665\n0\n" );
         break;
     case ROTATION_REVERSE_PORTRAIT:
-        sprintf( send_buf, "1\n3\n0\n9.80665\n0\n" );
+        sprintf( send_buf, "1\n3\n-9.80665\n0\n0\n" );
         break;
     case ROTATION_REVERSE_LANDSCAPE:
         sprintf(send_buf, "1\n3\n9.80665\n0\n0\n");
@@ -162,10 +162,10 @@ void do_rotation_event( int event_type) {
     // send_to_sensor_daemon
     int s;
 
-    s = tcp_socket_outgoing( "127.0.0.1", (uint16_t) ( get_sdb_base_port() + SDB_TCP_EMULD_INDEX ) );
+    s = tcp_socket_outgoing( "127.0.0.1", (uint16_t) ( tizen_base_port + SDB_TCP_EMULD_INDEX ) );
     if ( s < 0 ) {
         ERR( "can't create socket to talk to the sdb forwarding session \n");
-        ERR( "[127.0.0.1:%d/tcp] connect fail (%d:%s)\n" , get_sdb_base_port() + SDB_TCP_EMULD_INDEX , errno, strerror(errno));
+        ERR( "[127.0.0.1:%d/tcp] connect fail (%d:%s)\n" , tizen_base_port + SDB_TCP_EMULD_INDEX , errno, strerror(errno));
         return;
     }
 
@@ -173,7 +173,7 @@ void do_rotation_event( int event_type) {
     socket_send( s, &buf_size, 4 );
     socket_send( s, send_buf, buf_size );
 
-    INFO( "send to sendord(size: %d) 127.0.0.1:%d/tcp \n", buf_size, get_sdb_base_port() + SDB_TCP_EMULD_INDEX);
+    INFO( "send to sendord(size: %d) 127.0.0.1:%d/tcp \n", buf_size, tizen_base_port + SDB_TCP_EMULD_INDEX);
 #ifdef _WIN32
     closesocket( s );
 #else