Author: spetreolle
Date: Fri Apr  8 23:18:20 2011
New Revision: 51289

URL: http://svn.reactos.org/svn/reactos?rev=51289&view=rev
Log:
[SNDVOL32]
Redraw window with correct size.
Window height was growing after changing preferences.

Modified:
    trunk/reactos/base/applications/sndvol32/dialog.c

Modified: trunk/reactos/base/applications/sndvol32/dialog.c
URL: 
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/sndvol32/dialog.c?rev=51289&r1=51288&r2=51289&view=diff
==============================================================================
--- trunk/reactos/base/applications/sndvol32/dialog.c [iso-8859-1] (original)
+++ trunk/reactos/base/applications/sndvol32/dialog.c [iso-8859-1] Fri Apr  8 
23:18:20 2011
@@ -130,11 +130,11 @@
 
     }
     /* now create the window */
-    hwnd = CreateWindowExW(DialogItem->dwExtendedStyle, 
-                           ClassName, 
-                           WindowName, 
-                           DialogItem->style, 
-                           rect.left, 
+    hwnd = CreateWindowExW(DialogItem->dwExtendedStyle,
+                           ClassName,
+                           WindowName,
+                           DialogItem->style,
+                           rect.left,
                            rect.top,
                            rect.right,
                            rect.bottom,
@@ -187,7 +187,7 @@
         Offset++;
     }
 
-    /* check if there is additional data */ 
+    /* check if there is additional data */
     if (*Offset == 0)
     {
         /* no additional data */
@@ -323,8 +323,8 @@
 BOOL
 CALLBACK
 EnumConnectionsCallback(
-    PSND_MIXER Mixer, 
-    DWORD LineID, 
+    PSND_MIXER Mixer,
+    DWORD LineID,
     LPMIXERLINE Line,
     PVOID Context)
 {
@@ -439,7 +439,7 @@
               GetWindowRect(PrefContext->MixerWindow->hWnd, &rect);
 
               /* now move the window */
-              MoveWindow(PrefContext->MixerWindow->hWnd, rect.left, rect.top, 
(PrefContext->Count * DIALOG_VOLUME_SIZE), rect.bottom, TRUE);
+              MoveWindow(PrefContext->MixerWindow->hWnd, rect.left, rect.top, 
(PrefContext->Count * DIALOG_VOLUME_SIZE), rect.bottom - rect.top, TRUE);
           }
       }
     }


Reply via email to