Delete all Trailing spaces in code.
[reactos.git] / reactos / base / applications / screensavers / starfield / screensaver.c
index 0ce8d80..d0e91e9 100644 (file)
@@ -56,21 +56,21 @@ void DrawStarField (HDC pDC)
        {\r
                //      Clear last position of this star\r
                SetPixel (\r
-                       pDC, \r
-                       stars[i].m_nOldX, \r
-                       stars[i].m_nOldY, \r
+                       pDC,\r
+                       stars[i].m_nOldX,\r
+                       stars[i].m_nOldY,\r
                        RGB (0, 0, 0));\r
 \r
                nX = (int)((((long)stars[i].m_nXPos << 7) / (long)stars[i].m_nZPos) + m_nCenterX);\r
                nY = (int)((((long)stars[i].m_nYPos << 7) / (long)stars[i].m_nZPos) + m_nCenterY);\r
-               \r
+\r
                // Draw star\r
                SetPixel (\r
-                       pDC, \r
-                       nX, \r
-                       nY, \r
+                       pDC,\r
+                       nX,\r
+                       nY,\r
                        RGB (255, 255, 255));\r
-               \r
+\r
                // Remember current position for clearing later\r
                stars[i].m_nOldX = nX;\r
                stars[i].m_nOldY = nY;\r
@@ -82,9 +82,9 @@ BOOL SetUpStars (int nNumStars)
        int i;\r
        if (nNumStars > MAX_STARS)\r
        {\r
-               MessageBox (0, \r
-                       _T("Too many stars! Aborting!"), \r
-                       _T("Error"), \r
+               MessageBox (0,\r
+                       _T("Too many stars! Aborting!"),\r
+                       _T("Error"),\r
                        MB_OK | MB_ICONWARNING);\r
                return FALSE;\r
        }\r
@@ -99,8 +99,8 @@ BOOL SetUpStars (int nNumStars)
        if (!stars)\r
        {\r
                MessageBox (0,\r
-                       _T("Unable to allocate memory! Aborting!"), \r
-                       _T("Error"), \r
+                       _T("Unable to allocate memory! Aborting!"),\r
+                       _T("Error"),\r
                        MB_OK | MB_ICONWARNING);\r
                return FALSE;\r
        }\r
@@ -116,7 +116,7 @@ BOOL SetUpStars (int nNumStars)
                        stars[i].m_nOldY = -1;\r
                } while ((stars[i].m_nXPos == 0) || (stars[i].m_nYPos == 0));\r
        }\r
-       \r
+\r
        return TRUE;\r
 }\r
 \r
@@ -154,9 +154,9 @@ LRESULT WINAPI WndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
                case WM_CREATE :\r
                {\r
                        SetTimer (\r
-                               hwnd, \r
-                               APP_TIMER, \r
-                               APP_TIMER_INTERVAL, \r
+                               hwnd,\r
+                               APP_TIMER,\r
+                               APP_TIMER_INTERVAL,\r
                                NULL);\r
                }\r
                break;\r
@@ -184,7 +184,7 @@ LRESULT WINAPI WndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
                {\r
                        //      Change the center point of the starfield\r
                        SetDimensions (\r
-                               LOWORD(lParam), \r
+                               LOWORD(lParam),\r
                                HIWORD(lParam));\r
                }\r
                break;\r
@@ -226,7 +226,7 @@ LRESULT WINAPI WndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
                        GetCursorPos(&ptCursor);\r
 \r
                        // if the mouse has moved more than 3 pixels then exit\r
-                       if( (abs(ptCursor.x - ptLast.x) >= 3) || \r
+                       if( (abs(ptCursor.x - ptLast.x) >= 3) ||\r
                                (abs(ptCursor.y - ptLast.y) >= 3))\r
                        {\r
                                PostMessage(hwnd, WM_CLOSE, 0, 0);\r
@@ -268,18 +268,18 @@ void InitSaver(HWND hwndParent)
        {\r
                HWND hwnd;\r
                hwnd = CreateWindowEx(WS_EX_TOPMOST,\r
-                          APPNAME, \r
+                          APPNAME,\r
                           APPNAME,\r
                           WS_VISIBLE | WS_POPUP,\r
                           0, 0,\r
                           GetSystemMetrics(SM_CXSCREEN), GetSystemMetrics(SM_CYSCREEN),\r
                           HWND_DESKTOP, 0,\r
                           hInstance, NULL);\r
-     \r
-    SetWindowPos(hwnd, \r
-                 0, 0, 0, 0, 0, \r
+\r
+    SetWindowPos(hwnd,\r
+                 0, 0, 0, 0, 0,\r
                  SWP_NOZORDER|SWP_NOACTIVATE|SWP_NOSIZE|SWP_SHOWWINDOW);\r
-                 \r
+\r
                ShowCursor(FALSE);\r
                fullscreen = TRUE;\r
        }\r