Mercurial > mplayer.hg
diff gui/interface.c @ 33218:f0c2a62e3e89
Position windows initially at coordinates given in skin file.
So far, the initial positions of the main and subwindow were not
the ones specified in the skin file, but fixed defaults.
author | ib |
---|---|
date | Sat, 23 Apr 2011 08:05:27 +0000 |
parents | f64d41dac10b |
children | 5f9eaf3eea63 |
line wrap: on
line diff
--- a/gui/interface.c Sat Apr 23 03:32:34 2011 +0000 +++ b/gui/interface.c Sat Apr 23 08:05:27 2011 +0000 @@ -237,9 +237,13 @@ } if (gui_save_pos) { + if (gui_main_pos_x != -3) appMPlayer.main.x = gui_main_pos_x; + if (gui_main_pos_y != -3) appMPlayer.main.y = gui_main_pos_y; + if (gui_sub_pos_x != -3) appMPlayer.sub.x = gui_sub_pos_x; + if (gui_sub_pos_y != -3) appMPlayer.sub.y = gui_sub_pos_y; }