Fixing Tab Spaces
authormlancione <marco@optikam.com>
Wed, 9 Dec 2015 19:09:05 +0000 (14:09 -0500)
committermlancione <marco@optikam.com>
Wed, 9 Dec 2015 19:09:05 +0000 (14:09 -0500)
Replaced spaces in previous commit with tabs, to follow format of
mono/master.

mcs/class/System.Windows.Forms/System.Windows.Forms/XEventQueue.cs

index 28a7e21855f7187722ebc1dde1984abb0601c991..3dd3e8b1a7dca7daa29f263fc8db4e96b757a5d4 100644 (file)
@@ -143,29 +143,29 @@ namespace System.Windows.Forms {
 
                        public int Count {
                                get
-        {
-          int Count = 0;
-          lock ( hwnds )
-          {
-            Count = hwnds.Count;
-          }
-          return Count;
-        }
+                               {
+                                       int Count = 0;
+                                       lock ( hwnds )
+                                       {
+                                               Count = hwnds.Count;
+                                       }
+                                       return Count;
+                               }
                        }
 
                        public void Enqueue (Hwnd hwnd) {
-        lock ( hwnds )
-        {
-          hwnds.Add( hwnd );
-        }
+                               lock ( hwnds )
+                               {
+                                       hwnds.Add( hwnd );
+                               }
                        }
 
                        public void Remove(Hwnd hwnd) {
                                if (!hwnd.expose_pending && !hwnd.nc_expose_pending) {
-          lock ( hwnds )
-          {
-            hwnds.Remove( hwnd );
-          }
+                                       lock ( hwnds )
+                                       {
+                                               hwnds.Remove( hwnd );
+                                       }
                                }
                        }
 
@@ -173,44 +173,44 @@ namespace System.Windows.Forms {
                                Hwnd            hwnd;
                                IEnumerator     next;
 
-        lock( hwnds )
-        {
-          if( hwnds.Count == 0 )
-          {
-            xevent.ExposeEvent.window = IntPtr.Zero;
-            return xevent;
-          }
-
-          next = hwnds.GetEnumerator();
-          next.MoveNext();
-          hwnd = (Hwnd)next.Current;
-
-          // We only remove the event from the queue if we have one expose left since
-          // a single 'entry in our queue may be for both NC and Client exposed
-          if( !( hwnd.nc_expose_pending && hwnd.expose_pending ) )
-          {
-            hwnds.Remove( hwnd );
-          }
-          if( hwnd.expose_pending )
-          {
-            xevent.ExposeEvent.window = hwnd.client_window;
+                               lock( hwnds )
+                               {
+                                       if( hwnds.Count == 0 )
+                                       {
+                                               xevent.ExposeEvent.window = IntPtr.Zero;
+                                               return xevent;
+                                       }
+
+                                       next = hwnds.GetEnumerator();
+                                       next.MoveNext();
+                                       hwnd = (Hwnd)next.Current;
+
+                                       // We only remove the event from the queue if we have one expose left since
+                                       // a single 'entry in our queue may be for both NC and Client exposed
+                                       if( !( hwnd.nc_expose_pending && hwnd.expose_pending ) )
+                                       {
+                                               hwnds.Remove( hwnd );
+                                       }
+                                       if( hwnd.expose_pending )
+                                       {
+                                               xevent.ExposeEvent.window = hwnd.client_window;
 #if not
-                                         xevent.ExposeEvent.x = hwnd.invalid.X;
-                                         xevent.ExposeEvent.y = hwnd.invalid.Y;
-                                         xevent.ExposeEvent.width = hwnd.invalid.Width;
-                                         xevent.ExposeEvent.height = hwnd.invalid.Height;
+                                               xevent.ExposeEvent.x = hwnd.invalid.X;
+                                               xevent.ExposeEvent.y = hwnd.invalid.Y;
+                                               xevent.ExposeEvent.width = hwnd.invalid.Width;
+                                               xevent.ExposeEvent.height = hwnd.invalid.Height;
 #endif
-            return xevent;
-          }
-          else
-          {
-            xevent.ExposeEvent.window = hwnd.whole_window;
-            xevent.ExposeEvent.x = hwnd.nc_invalid.X;
-            xevent.ExposeEvent.y = hwnd.nc_invalid.Y;
-            xevent.ExposeEvent.width = hwnd.nc_invalid.Width;
-            xevent.ExposeEvent.height = hwnd.nc_invalid.Height;
-            return xevent;
-          }
+                                               return xevent;
+                                       }
+                                       else
+                                       {
+                                               xevent.ExposeEvent.window = hwnd.whole_window;
+                                               xevent.ExposeEvent.x = hwnd.nc_invalid.X;
+                                               xevent.ExposeEvent.y = hwnd.nc_invalid.Y;
+                                               xevent.ExposeEvent.width = hwnd.nc_invalid.Width;
+                                               xevent.ExposeEvent.height = hwnd.nc_invalid.Height;
+                                               return xevent;
+                                       }
         }
                        }
                }