[Title] added lcdSize communication
authorgiwoong.kim <giwoong.kim@samsung.com>
Thu, 15 Mar 2012 06:44:27 +0000 (15:44 +0900)
committergiwoong.kim <giwoong.kim@samsung.com>
Thu, 15 Mar 2012 06:44:27 +0000 (15:44 +0900)
[Type]
[Module]
[Priority]
[Jira#]
[Redmine#]
[Problem]
[Cause]
[Solution]
[TestCase]

tizen/src/skin/maruskin_operation.c [changed mode: 0644->0755]
tizen/src/skin/maruskin_operation.h [changed mode: 0644->0755]
tizen/src/skin/maruskin_server.c [changed mode: 0644->0755]

old mode 100644 (file)
new mode 100755 (executable)
index ddeb5fc..c710c8a
@@ -74,8 +74,9 @@ enum {
     KEY_RELEASED = 2,
 };
 
-void start_display( int handle_id, short scale, short rotation ) {
-    INFO( "start_display handle_id:%d, scale:%d, rotation:%d\n", handle_id, scale, rotation );
+void start_display( int handle_id, int lcd_size_width, int lcd_size_height, short scale, short rotation ) {
+    INFO( "start_display handle_id:%d, lcd size:%dx%d, scale:%d, rotation:%d\n",
+        handle_id, lcd_size_width, lcd_size_height, scale, rotation );
 
     maruskin_sdl_init(handle_id);
 }
old mode 100644 (file)
new mode 100755 (executable)
index 546c4e4..5b6ffbe
@@ -30,7 +30,7 @@
 #ifndef MARUSKIN_OPERATION_H_
 #define MARUSKIN_OPERATION_H_
 
-void start_display( int handle_id, short scale, short direction );
+void start_display( int handle_id, int lcd_size_width, int lcd_size_height, short scale, short direction );
 
 void do_mouse_event( int event_type, int x, int y, int z );
 
old mode 100644 (file)
new mode 100755 (executable)
index 9da0aeb..442a4c5
@@ -327,22 +327,30 @@ static void* run_skin_server( void* args ) {
                     }
 
                     int handle_id = 0;
+                    int lcd_size_width = 0;
+                    int lcd_size_height = 0;
                     short scale = 0;
                     short rotation = 0;
 
                     char* p = readbuf;
                     memcpy( &handle_id, p, sizeof( handle_id ) );
                     p += sizeof( handle_id );
+                    memcpy( &lcd_size_width, p, sizeof( lcd_size_width ) );
+                    p += sizeof( lcd_size_width );
+                    memcpy( &lcd_size_height, p, sizeof( lcd_size_height ) );
+                    p += sizeof( lcd_size_height );
                     memcpy( &scale, p, sizeof( scale ) );
                     p += sizeof( scale );
                     memcpy( &rotation, p, sizeof( rotation ) );
 
                     handle_id = ntohl( handle_id );
+                    lcd_size_width = ntohl( lcd_size_width );
+                    lcd_size_height = ntohl( lcd_size_height );
                     scale = ntohs( scale );
                     rotation = ntohs( rotation );
 
                     if ( start_heart_beat( client_sock ) ) {
-                        start_display( handle_id, scale, rotation );
+                        start_display( handle_id, lcd_size_width, lcd_size_height, scale, rotation );
                     } else {
                         stop_server = 1;
                     }