]> git.sesse.net Git - vlc/blobdiff - modules/misc/osd/simple.c
Implement clickable osdmenu. The clickable positioning and scaling guessing is not...
[vlc] / modules / misc / osd / simple.c
index d5d92559f0b8824ebd4afacfe01c61de27c60ab6..3ebe0190a7f14d138d5645ebb8545e43557dc659 100644 (file)
@@ -269,6 +269,9 @@ int osd_parser_simpleOpen( vlc_object_t *p_this )
                         if( !p_range_current || !p_range_current->p_pic )
                             goto error;
 
+                        p_range_current->i_x = i_x;
+                        p_range_current->i_y = i_y;
+
                         /* increment the number of ranges for this button */
                         p_up->i_ranges++;
 
@@ -366,6 +369,9 @@ int osd_parser_simpleOpen( vlc_object_t *p_this )
                     if( !p_range_current || !p_range_current->p_pic )
                         goto error;
 
+                    p_range_current->i_x = i_x;
+                    p_range_current->i_y = i_y;
+
                     /* increment the number of ranges for this button */
                     p_current->i_ranges++;
 
@@ -433,6 +439,9 @@ int osd_parser_simpleOpen( vlc_object_t *p_this )
             if( !p_state_current || !p_state_current->p_pic )
                 goto error;
 
+            p_state_current->i_x = i_x;
+            p_state_current->i_y = i_y;
+
             if( p_state_prev )
                 p_state_prev->p_next = p_state_current;
             else