Mercurial > audlegacy
changeset 4104:7b01df6730eb
cfg.playlist_width and cfg.playlist_height can't be smaller than minimum values for those; fixes #11
author | Tomasz Mon <desowin@gmail.com> |
---|---|
date | Mon, 24 Dec 2007 23:46:52 +0100 |
parents | 7b9d5718a6dc |
children | 75d1366e43a4 |
files | src/audacious/main.c |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/audacious/main.c Mon Dec 24 13:01:15 2007 +0100 +++ b/src/audacious/main.c Mon Dec 24 23:46:52 2007 +0100 @@ -679,6 +679,10 @@ /* at least one of these should be true */ if ((!cfg.get_info_on_demand) && (!cfg.get_info_on_load)) cfg.get_info_on_demand = TRUE; + + /* playlist width and height can't be smaller than minimum */ + cfg.playlist_width = MAX(cfg.playlist_width, PLAYLISTWIN_MIN_WIDTH); + cfg.playlist_height = MAX(cfg.playlist_height, PLAYLISTWIN_MIN_HEIGHT); } static gboolean