mirror of
https://github.com/reactos/reactos.git
synced 2025-08-06 09:43:04 +00:00
[MSPAINT]: Remove trailing whitespace.
svn path=/trunk/; revision=65654
This commit is contained in:
parent
5a3af281d7
commit
1fa498439b
9 changed files with 21 additions and 21 deletions
|
@ -5,7 +5,7 @@
|
||||||
* PURPOSE: Defines the resource ids and other stuff
|
* PURPOSE: Defines the resource ids and other stuff
|
||||||
* PROGRAMMERS: Benedikt Freisen
|
* PROGRAMMERS: Benedikt Freisen
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* DEFINES **********************************************************/
|
/* DEFINES **********************************************************/
|
||||||
|
|
||||||
#define HISTORYSIZE 11
|
#define HISTORYSIZE 11
|
||||||
|
|
|
@ -128,7 +128,7 @@ Replace(HDC hdc, LONG x1, LONG y1, LONG x2, LONG y2, COLORREF fg, COLORREF bg, L
|
||||||
{
|
{
|
||||||
LONG a, b, x, y;
|
LONG a, b, x, y;
|
||||||
b = max(1, max(abs(x2 - x1), abs(y2 - y1)));
|
b = max(1, max(abs(x2 - x1), abs(y2 - y1)));
|
||||||
|
|
||||||
for(a = 0; a <= b; a++)
|
for(a = 0; a <= b; a++)
|
||||||
for(y = (y1 * (b - a) + y2 * a) / b - radius + 1;
|
for(y = (y1 * (b - a) + y2 * a) / b - radius + 1;
|
||||||
y < (y1 * (b - a) + y2 * a) / b + radius + 1; y++)
|
y < (y1 * (b - a) + y2 * a) / b + radius + 1; y++)
|
||||||
|
@ -142,7 +142,7 @@ void
|
||||||
Airbrush(HDC hdc, LONG x, LONG y, COLORREF color, LONG r)
|
Airbrush(HDC hdc, LONG x, LONG y, COLORREF color, LONG r)
|
||||||
{
|
{
|
||||||
LONG a, b;
|
LONG a, b;
|
||||||
|
|
||||||
for(b = -r; b <= r; b++)
|
for(b = -r; b <= r; b++)
|
||||||
for(a = -r; a <= r; a++)
|
for(a = -r; a <= r; a++)
|
||||||
if ((a * a + b * b <= r * r) && (rand() % 4 == 0))
|
if ((a * a + b * b <= r * r) && (rand() % 4 == 0))
|
||||||
|
@ -195,7 +195,7 @@ Brush(HDC hdc, LONG x1, LONG y1, LONG x2, LONG y2, COLORREF color, LONG style)
|
||||||
case 10:
|
case 10:
|
||||||
case 11:
|
case 11:
|
||||||
{
|
{
|
||||||
POINT offsTop[] = {{4, -3}, {2, -2}, {0, 0},
|
POINT offsTop[] = {{4, -3}, {2, -2}, {0, 0},
|
||||||
{-3, -3}, {-2, -2}, {-1, 0}};
|
{-3, -3}, {-2, -2}, {-1, 0}};
|
||||||
POINT offsBtm[] = {{-3, 4}, {-2, 2}, {-1, 1},
|
POINT offsBtm[] = {{-3, 4}, {-2, 2}, {-1, 1},
|
||||||
{4, 4}, {2, 2}, {0, 1}};
|
{4, 4}, {2, 2}, {0, 1}};
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
* PURPOSE: Declaring global variables for later initialization
|
* PURPOSE: Declaring global variables for later initialization
|
||||||
* PROGRAMMERS: Benedikt Freisen
|
* PROGRAMMERS: Benedikt Freisen
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* INCLUDES *********************************************************/
|
/* INCLUDES *********************************************************/
|
||||||
|
|
||||||
//#include <windows.h>
|
//#include <windows.h>
|
||||||
|
@ -93,7 +93,7 @@ extern HWND hScrlClient;
|
||||||
extern HWND hToolBtn[16];
|
extern HWND hToolBtn[16];
|
||||||
|
|
||||||
extern HINSTANCE hProgInstance;
|
extern HINSTANCE hProgInstance;
|
||||||
|
|
||||||
extern TCHAR filename[256];
|
extern TCHAR filename[256];
|
||||||
extern TCHAR filepathname[1000];
|
extern TCHAR filepathname[1000];
|
||||||
extern BOOL isAFile;
|
extern BOOL isAFile;
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
* FILE: base/applications/mspaint/lang/pl-PL.rc
|
* FILE: base/applications/mspaint/lang/pl-PL.rc
|
||||||
* PURPOSE: Polish Language resource file
|
* PURPOSE: Polish Language resource file
|
||||||
* TRANSLATOR: Caemyr - Olaf Siejka (May, 2009), Use ReactOS forum PM or IRC to contact me
|
* TRANSLATOR: Caemyr - Olaf Siejka (May, 2009), Use ReactOS forum PM or IRC to contact me
|
||||||
* UTF-8 conversion by Caemyr (May, 2011)
|
* UTF-8 conversion by Caemyr (May, 2011)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
LANGUAGE LANG_POLISH, SUBLANG_DEFAULT
|
LANGUAGE LANG_POLISH, SUBLANG_DEFAULT
|
||||||
|
|
|
@ -139,7 +139,7 @@ _tWinMain (HINSTANCE hThisInstance, HINSTANCE hPrevInstance, LPTSTR lpszArgument
|
||||||
{
|
{
|
||||||
HWND hwnd; /* This is the handle for our window */
|
HWND hwnd; /* This is the handle for our window */
|
||||||
MSG messages; /* Here messages to the application are saved */
|
MSG messages; /* Here messages to the application are saved */
|
||||||
|
|
||||||
TCHAR progtitle[1000];
|
TCHAR progtitle[1000];
|
||||||
TCHAR resstr[100];
|
TCHAR resstr[100];
|
||||||
HMENU menu;
|
HMENU menu;
|
||||||
|
@ -150,7 +150,7 @@ _tWinMain (HINSTANCE hThisInstance, HINSTANCE hPrevInstance, LPTSTR lpszArgument
|
||||||
int i;
|
int i;
|
||||||
TCHAR tooltips[16][30];
|
TCHAR tooltips[16][30];
|
||||||
HDC hDC;
|
HDC hDC;
|
||||||
|
|
||||||
TCHAR *c;
|
TCHAR *c;
|
||||||
TCHAR sfnFilename[1000];
|
TCHAR sfnFilename[1000];
|
||||||
TCHAR sfnFiletitle[256];
|
TCHAR sfnFiletitle[256];
|
||||||
|
@ -202,7 +202,7 @@ _tWinMain (HINSTANCE hThisInstance, HINSTANCE hPrevInstance, LPTSTR lpszArgument
|
||||||
LoadString(hThisInstance, IDS_WINDOWTITLE, resstr, SIZEOF(resstr));
|
LoadString(hThisInstance, IDS_WINDOWTITLE, resstr, SIZEOF(resstr));
|
||||||
_stprintf(progtitle, resstr, filename);
|
_stprintf(progtitle, resstr, filename);
|
||||||
LoadString(hThisInstance, IDS_MINIATURETITLE, miniaturetitle, SIZEOF(miniaturetitle));
|
LoadString(hThisInstance, IDS_MINIATURETITLE, miniaturetitle, SIZEOF(miniaturetitle));
|
||||||
|
|
||||||
/* create main window */
|
/* create main window */
|
||||||
hwnd =
|
hwnd =
|
||||||
CreateWindowEx(0, _T("MainWindow"), progtitle, WS_OVERLAPPEDWINDOW, CW_USEDEFAULT, CW_USEDEFAULT, 544,
|
CreateWindowEx(0, _T("MainWindow"), progtitle, WS_OVERLAPPEDWINDOW, CW_USEDEFAULT, CW_USEDEFAULT, 544,
|
||||||
|
@ -240,8 +240,8 @@ _tWinMain (HINSTANCE hThisInstance, HINSTANCE hPrevInstance, LPTSTR lpszArgument
|
||||||
/* creating the 16 bitmap radio buttons and setting the bitmap */
|
/* creating the 16 bitmap radio buttons and setting the bitmap */
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* FIXME: Unintentionally there is a line above the tool bar (hidden by y-offset).
|
* FIXME: Unintentionally there is a line above the tool bar (hidden by y-offset).
|
||||||
* To prevent cropping of the buttons height has been increased from 200 to 205
|
* To prevent cropping of the buttons height has been increased from 200 to 205
|
||||||
*/
|
*/
|
||||||
hToolbar =
|
hToolbar =
|
||||||
|
@ -254,7 +254,7 @@ _tWinMain (HINSTANCE hThisInstance, HINSTANCE hPrevInstance, LPTSTR lpszArgument
|
||||||
ImageList_AddMasked(hImageList, tempBm, 0xff00ff);
|
ImageList_AddMasked(hImageList, tempBm, 0xff00ff);
|
||||||
DeleteObject(tempBm);
|
DeleteObject(tempBm);
|
||||||
SendMessage(hToolbar, TB_BUTTONSTRUCTSIZE, sizeof(TBBUTTON), 0);
|
SendMessage(hToolbar, TB_BUTTONSTRUCTSIZE, sizeof(TBBUTTON), 0);
|
||||||
|
|
||||||
for(i = 0; i < 16; i++)
|
for(i = 0; i < 16; i++)
|
||||||
{
|
{
|
||||||
TBBUTTON tbbutton;
|
TBBUTTON tbbutton;
|
||||||
|
@ -272,7 +272,7 @@ _tWinMain (HINSTANCE hThisInstance, HINSTANCE hPrevInstance, LPTSTR lpszArgument
|
||||||
tbbutton.iBitmap = i;
|
tbbutton.iBitmap = i;
|
||||||
SendMessage(hToolbar, TB_ADDBUTTONS, 1, (LPARAM) &tbbutton);
|
SendMessage(hToolbar, TB_ADDBUTTONS, 1, (LPARAM) &tbbutton);
|
||||||
}
|
}
|
||||||
|
|
||||||
SendMessage(hToolbar, TB_CHECKBUTTON, ID_PEN, MAKELONG(TRUE, 0));
|
SendMessage(hToolbar, TB_CHECKBUTTON, ID_PEN, MAKELONG(TRUE, 0));
|
||||||
SendMessage(hToolbar, TB_SETMAXTEXTROWS, 0, 0);
|
SendMessage(hToolbar, TB_SETMAXTEXTROWS, 0, 0);
|
||||||
SendMessage(hToolbar, TB_SETBUTTONSIZE, 0, MAKELONG(25, 25));
|
SendMessage(hToolbar, TB_SETBUTTONSIZE, 0, MAKELONG(25, 25));
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
* PURPOSE: Managing the resources
|
* PURPOSE: Managing the resources
|
||||||
* PROGRAMMERS: Benedikt Freisen
|
* PROGRAMMERS: Benedikt Freisen
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* INCLUDES *********************************************************/
|
/* INCLUDES *********************************************************/
|
||||||
|
|
||||||
#include <windef.h>
|
#include <windef.h>
|
||||||
|
|
|
@ -25,8 +25,8 @@
|
||||||
/* FUNCTIONS ********************************************************/
|
/* FUNCTIONS ********************************************************/
|
||||||
|
|
||||||
LPCTSTR cursors[9] = { /* action to mouse cursor lookup table */
|
LPCTSTR cursors[9] = { /* action to mouse cursor lookup table */
|
||||||
IDC_SIZEALL,
|
IDC_SIZEALL,
|
||||||
|
|
||||||
IDC_SIZENWSE, IDC_SIZENS, IDC_SIZENESW,
|
IDC_SIZENWSE, IDC_SIZENS, IDC_SIZENESW,
|
||||||
IDC_SIZEWE, IDC_SIZEWE,
|
IDC_SIZEWE, IDC_SIZEWE,
|
||||||
IDC_SIZENESW, IDC_SIZENS, IDC_SIZENWSE
|
IDC_SIZENESW, IDC_SIZENS, IDC_SIZENWSE
|
||||||
|
@ -66,7 +66,7 @@ ColorKeyedMaskBlt(HDC hdcDest, int nXDest, int nYDest, int nWidth, int nHeight,
|
||||||
HBITMAP hTempBm;
|
HBITMAP hTempBm;
|
||||||
HBRUSH hTempBrush;
|
HBRUSH hTempBrush;
|
||||||
HBITMAP hTempMask;
|
HBITMAP hTempMask;
|
||||||
|
|
||||||
hTempDC = CreateCompatibleDC(hdcSrc);
|
hTempDC = CreateCompatibleDC(hdcSrc);
|
||||||
hTempDC2 = CreateCompatibleDC(hdcSrc);
|
hTempDC2 = CreateCompatibleDC(hdcSrc);
|
||||||
hTempBm = CreateCompatibleBitmap(hTempDC, nWidth, nHeight);
|
hTempBm = CreateCompatibleBitmap(hTempDC, nWidth, nHeight);
|
||||||
|
@ -280,7 +280,7 @@ SelectionWinProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
|
||||||
{
|
{
|
||||||
if (activeTool == TOOL_TEXT)
|
if (activeTool == TOOL_TEXT)
|
||||||
{
|
{
|
||||||
|
// FIXME: What to do?
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
|
@ -65,6 +65,6 @@ TextEditWinProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
|
||||||
default:
|
default:
|
||||||
return DefWindowProc(hwnd, message, wParam, lParam);
|
return DefWindowProc(hwnd, message, wParam, lParam);
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
@ -440,7 +440,7 @@ MainWindowProcedure(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
// mouse events used for drawing
|
// mouse events used for drawing
|
||||||
|
|
||||||
case WM_SETCURSOR:
|
case WM_SETCURSOR:
|
||||||
if (hwnd == hImageArea)
|
if (hwnd == hImageArea)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue