changeset 588:1e2792ece36b trunk

[svn] - aosd: fix typo
author giacomo
date Wed, 31 Jan 2007 09:00:15 -0800
parents 289c08270c7b
children 7ad870f10241
files ChangeLog src/aosd/aosd_osd.c
diffstat 2 files changed, 8 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Wed Jan 31 08:59:20 2007 -0800
+++ b/ChangeLog	Wed Jan 31 09:00:15 2007 -0800
@@ -1,3 +1,10 @@
+2007-01-31 16:59:20 +0000  Giacomo Lozito <james@develia.org>
+  revision [1260]
+  - aosd: prevent user from setting an excessively large max_width
+  trunk/src/aosd/aosd_osd.c |    6 ++++--
+  1 file changed, 4 insertions(+), 2 deletions(-)
+
+
 2007-01-31 16:42:04 +0000  Giacomo Lozito <james@develia.org>
   revision [1258]
   - aosd: added experimental multiple monitor support, plus max_width setting
--- a/src/aosd/aosd_osd.c	Wed Jan 31 08:59:20 2007 -0800
+++ b/src/aosd/aosd_osd.c	Wed Jan 31 09:00:15 2007 -0800
@@ -137,7 +137,7 @@
     gint max_width_default = screen_width - pad_left - pad_right - abs(cfg_osd->position.offset_x);
     max_width = cfg_osd->position.maxsize_width - pad_left - pad_right;
     /* ignore user-defined max_width if it is too small or too large */
-    if ( max_width < 1 ) || ( max_width > max_width_default )
+    if (( max_width < 1 ) || ( max_width > max_width_default ))
       max_width = max_width_default;
   }
   else