_emul_info.lcd_size_w = width;
_emul_info.lcd_size_h = height;
- INFO("emulator graphic resolution %dx%d\n", _emul_info.lcd_size_w, _emul_info.lcd_size_h);
+ INFO("emulator graphic resolution = %dx%d\n", _emul_info.lcd_size_w, _emul_info.lcd_size_h);
}
int get_emul_lcd_width(void)
void set_emul_win_scale(int scale)
{
_emul_state.scale = scale;
+ INFO("emulator window scale = %d", _emul_state.scale);
}
int get_emul_win_scale(void)
void set_emul_rotation(int rotation)
{
_emul_state.rotation = rotation;
+ INFO("emulator rotation = %d", _emul_state.rotation);
}
int get_emul_rotation(void)
}
+void do_scale_event( int event_type) {
+}
+
void do_rotation_event( int event_type) {
INFO( "do_rotation_event event_type:%d", event_type);
socket_send( s, send_buf, buf_size );
INFO( "send to sendord(size: %d) 127.0.0.1:%d/tcp \n", buf_size, tizen_base_port + SDB_TCP_EMULD_INDEX);
+
+ set_emul_rotation(ROTATION_PORTRAIT);
+
#ifdef _WIN32
closesocket( s );
#else
scale = ntohs( scale );
rotation = ntohs( rotation );
- if ( is_sensord_initialized ) {
+ if ( is_sensord_initialized == 1 && get_emul_rotation() != rotation) {
do_rotation_event( rotation );
}
break;