Author: akhaldi
Date: Tue Jul 26 21:44:53 2011
New Revision: 52901
URL:
http://svn.reactos.org/svn/reactos?rev=52901&view=rev
Log:
[MSPAINT]
* Introduce a PCH.
* Fix Brush function declaration.
Added:
trunk/reactos/base/applications/mspaint/precomp.h (with props)
Modified:
trunk/reactos/base/applications/mspaint/CMakeLists.txt
trunk/reactos/base/applications/mspaint/dialogs.c
trunk/reactos/base/applications/mspaint/dib.c
trunk/reactos/base/applications/mspaint/drawing.c
trunk/reactos/base/applications/mspaint/drawing.h
trunk/reactos/base/applications/mspaint/history.c
trunk/reactos/base/applications/mspaint/main.c
trunk/reactos/base/applications/mspaint/mouse.c
trunk/reactos/base/applications/mspaint/palette.c
trunk/reactos/base/applications/mspaint/registry.c
trunk/reactos/base/applications/mspaint/selection.c
trunk/reactos/base/applications/mspaint/sizebox.c
trunk/reactos/base/applications/mspaint/toolsettings.c
trunk/reactos/base/applications/mspaint/winproc.c
Modified: trunk/reactos/base/applications/mspaint/CMakeLists.txt
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/mspaint/…
==============================================================================
--- trunk/reactos/base/applications/mspaint/CMakeLists.txt [iso-8859-1] (original)
+++ trunk/reactos/base/applications/mspaint/CMakeLists.txt [iso-8859-1] Tue Jul 26
21:44:53 2011
@@ -17,5 +17,6 @@
rsrc.rc)
set_module_type(mspaint win32gui)
+add_pch(mspaint precomp.h)
add_importlibs(mspaint comdlg32 shell32 user32 gdi32 advapi32 comctl32 msvcrt kernel32)
add_cd_file(TARGET mspaint DESTINATION reactos/system32 FOR all)
Modified: trunk/reactos/base/applications/mspaint/dialogs.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/mspaint/…
==============================================================================
--- trunk/reactos/base/applications/mspaint/dialogs.c [iso-8859-1] (original)
+++ trunk/reactos/base/applications/mspaint/dialogs.c [iso-8859-1] Tue Jul 26 21:44:53
2011
@@ -8,10 +8,7 @@
/* INCLUDES *********************************************************/
-#include <windows.h>
-#include <tchar.h>
-#include "definitions.h"
-#include "globalvar.h"
+#include "precomp.h"
/* FUNCTIONS ********************************************************/
Modified: trunk/reactos/base/applications/mspaint/dib.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/mspaint/…
==============================================================================
--- trunk/reactos/base/applications/mspaint/dib.c [iso-8859-1] (original)
+++ trunk/reactos/base/applications/mspaint/dib.c [iso-8859-1] Tue Jul 26 21:44:53 2011
@@ -8,7 +8,7 @@
/* INCLUDES *********************************************************/
-#include <windows.h>
+#include "precomp.h"
/* FUNCTIONS ********************************************************/
Modified: trunk/reactos/base/applications/mspaint/drawing.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/mspaint/…
==============================================================================
--- trunk/reactos/base/applications/mspaint/drawing.c [iso-8859-1] (original)
+++ trunk/reactos/base/applications/mspaint/drawing.c [iso-8859-1] Tue Jul 26 21:44:53
2011
@@ -8,7 +8,7 @@
/* INCLUDES *********************************************************/
-#include <windows.h>
+#include "precomp.h"
/* FUNCTIONS ********************************************************/
Modified: trunk/reactos/base/applications/mspaint/drawing.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/mspaint/…
==============================================================================
--- trunk/reactos/base/applications/mspaint/drawing.h [iso-8859-1] (original)
+++ trunk/reactos/base/applications/mspaint/drawing.h [iso-8859-1] Tue Jul 26 21:44:53
2011
@@ -26,7 +26,7 @@
void Airbrush(HDC hdc, LONG x, LONG y, COLORREF color, LONG r);
-void Brush(HDC hdc, LONG x1, LONG y1, LONG x2, LONG y2, COLORREF color, int style);
+void Brush(HDC hdc, LONG x1, LONG y1, LONG x2, LONG y2, COLORREF color, COLORREF style);
void RectSel(HDC hdc, LONG x1, LONG y1, LONG x2, LONG y2);
Modified: trunk/reactos/base/applications/mspaint/history.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/mspaint/…
==============================================================================
--- trunk/reactos/base/applications/mspaint/history.c [iso-8859-1] (original)
+++ trunk/reactos/base/applications/mspaint/history.c [iso-8859-1] Tue Jul 26 21:44:53
2011
@@ -8,10 +8,7 @@
/* INCLUDES *********************************************************/
-#include <windows.h>
-#include "globalvar.h"
-#include "dib.h"
-#include "definitions.h"
+#include "precomp.h"
/* FUNCTIONS ********************************************************/
Modified: trunk/reactos/base/applications/mspaint/main.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/mspaint/…
==============================================================================
--- trunk/reactos/base/applications/mspaint/main.c [iso-8859-1] (original)
+++ trunk/reactos/base/applications/mspaint/main.c [iso-8859-1] Tue Jul 26 21:44:53 2011
@@ -8,25 +8,7 @@
/* INCLUDES *********************************************************/
-#include <windows.h>
-#include <windowsx.h>
-#include <commctrl.h>
-#include <stdio.h>
-#include <tchar.h>
-#include "definitions.h"
-
-#include "drawing.h"
-#include "dib.h"
-
-#include "globalvar.h"
-#include "history.h"
-#include "mouse.h"
-
-#include "winproc.h"
-#include "palette.h"
-#include "toolsettings.h"
-#include "selection.h"
-#include "sizebox.h"
+#include "precomp.h"
/* FUNCTIONS ********************************************************/
Modified: trunk/reactos/base/applications/mspaint/mouse.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/mspaint/…
==============================================================================
--- trunk/reactos/base/applications/mspaint/mouse.c [iso-8859-1] (original)
+++ trunk/reactos/base/applications/mspaint/mouse.c [iso-8859-1] Tue Jul 26 21:44:53 2011
@@ -8,10 +8,7 @@
/* INCLUDES *********************************************************/
-#include "globalvar.h"
-#include "dib.h"
-#include "drawing.h"
-#include "history.h"
+#include "precomp.h"
/* FUNCTIONS ********************************************************/
Modified: trunk/reactos/base/applications/mspaint/palette.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/mspaint/…
==============================================================================
--- trunk/reactos/base/applications/mspaint/palette.c [iso-8859-1] (original)
+++ trunk/reactos/base/applications/mspaint/palette.c [iso-8859-1] Tue Jul 26 21:44:53
2011
@@ -8,8 +8,7 @@
/* INCLUDES *********************************************************/
-#include <windows.h>
-#include "globalvar.h"
+#include "precomp.h"
/* FUNCTIONS ********************************************************/
Added: trunk/reactos/base/applications/mspaint/precomp.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/mspaint/…
==============================================================================
--- trunk/reactos/base/applications/mspaint/precomp.h (added)
+++ trunk/reactos/base/applications/mspaint/precomp.h [iso-8859-1] Tue Jul 26 21:44:53
2011
@@ -1,0 +1,20 @@
+
+#include <windows.h>
+#include <commctrl.h>
+#include <tchar.h>
+#include <windowsx.h>
+#include <stdio.h>
+
+#include "definitions.h"
+#include "drawing.h"
+#include "dib.h"
+#include "globalvar.h"
+#include "history.h"
+#include "mouse.h"
+#include "winproc.h"
+#include "palette.h"
+#include "toolsettings.h"
+#include "selection.h"
+#include "sizebox.h"
+#include "dialogs.h"
+#include "registry.h"
Propchange: trunk/reactos/base/applications/mspaint/precomp.h
------------------------------------------------------------------------------
svn:eol-style = native
Modified: trunk/reactos/base/applications/mspaint/registry.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/mspaint/…
==============================================================================
--- trunk/reactos/base/applications/mspaint/registry.c [iso-8859-1] (original)
+++ trunk/reactos/base/applications/mspaint/registry.c [iso-8859-1] Tue Jul 26 21:44:53
2011
@@ -8,8 +8,7 @@
/* INCLUDES *********************************************************/
-#include <windows.h>
-#include <tchar.h>
+#include "precomp.h"
/* FUNCTIONS ********************************************************/
Modified: trunk/reactos/base/applications/mspaint/selection.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/mspaint/…
==============================================================================
--- trunk/reactos/base/applications/mspaint/selection.c [iso-8859-1] (original)
+++ trunk/reactos/base/applications/mspaint/selection.c [iso-8859-1] Tue Jul 26 21:44:53
2011
@@ -8,14 +8,7 @@
/* INCLUDES *********************************************************/
-#include <windows.h>
-#include <commctrl.h>
-#include <tchar.h>
-#include "globalvar.h"
-#include "drawing.h"
-#include "history.h"
-#include "mouse.h"
-#include "dib.h"
+#include "precomp.h"
/* FUNCTIONS ********************************************************/
Modified: trunk/reactos/base/applications/mspaint/sizebox.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/mspaint/…
==============================================================================
--- trunk/reactos/base/applications/mspaint/sizebox.c [iso-8859-1] (original)
+++ trunk/reactos/base/applications/mspaint/sizebox.c [iso-8859-1] Tue Jul 26 21:44:53
2011
@@ -8,11 +8,7 @@
/* INCLUDES *********************************************************/
-#include <windows.h>
-#include <commctrl.h>
-#include <tchar.h>
-#include "globalvar.h"
-#include "history.h"
+#include "precomp.h"
/* FUNCTIONS ********************************************************/
Modified: trunk/reactos/base/applications/mspaint/toolsettings.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/mspaint/…
==============================================================================
--- trunk/reactos/base/applications/mspaint/toolsettings.c [iso-8859-1] (original)
+++ trunk/reactos/base/applications/mspaint/toolsettings.c [iso-8859-1] Tue Jul 26
21:44:53 2011
@@ -8,11 +8,7 @@
/* INCLUDES *********************************************************/
-#include <windows.h>
-#include <commctrl.h>
-#include "globalvar.h"
-#include "drawing.h"
-#include "winproc.h"
+#include "precomp.h"
/* FUNCTIONS ********************************************************/
Modified: trunk/reactos/base/applications/mspaint/winproc.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/mspaint/…
==============================================================================
--- trunk/reactos/base/applications/mspaint/winproc.c [iso-8859-1] (original)
+++ trunk/reactos/base/applications/mspaint/winproc.c [iso-8859-1] Tue Jul 26 21:44:53
2011
@@ -9,19 +9,8 @@
/* INCLUDES *********************************************************/
-#include <windows.h>
-#include <commctrl.h>
//#include <htmlhelp.h>
-#include <stdio.h>
-#include <tchar.h>
-#include "definitions.h"
-#include "globalvar.h"
-#include "dialogs.h"
-#include "dib.h"
-#include "drawing.h"
-#include "history.h"
-#include "mouse.h"
-#include "registry.h"
+#include "precomp.h"
/* FUNCTIONS ********************************************************/