Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
fb02a4c6
Commit
fb02a4c6
authored
May 06, 2009
by
Francois Gouget
Committed by
Alexandre Julliard
May 06, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
taskmgr: Make FillSolidRect2() and Draw3dRect2?() static.
parent
b6b4a8f2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
11 deletions
+2
-11
taskmgr.c
programs/taskmgr/taskmgr.c
+2
-8
taskmgr.h
programs/taskmgr/taskmgr.h
+0
-3
No files found.
programs/taskmgr/taskmgr.c
View file @
fb02a4c6
...
...
@@ -61,7 +61,7 @@ void FillSolidRect(HDC hDC, LPCRECT lpRect, COLORREF clr)
ExtTextOut
(
hDC
,
0
,
0
,
ETO_OPAQUE
,
lpRect
,
NULL
,
0
,
NULL
);
}
void
FillSolidRect2
(
HDC
hDC
,
int
x
,
int
y
,
int
cx
,
int
cy
,
COLORREF
clr
)
static
void
FillSolidRect2
(
HDC
hDC
,
int
x
,
int
y
,
int
cx
,
int
cy
,
COLORREF
clr
)
{
RECT
rect
;
...
...
@@ -73,7 +73,7 @@ void FillSolidRect2(HDC hDC, int x, int y, int cx, int cy, COLORREF clr)
ExtTextOut
(
hDC
,
0
,
0
,
ETO_OPAQUE
,
&
rect
,
NULL
,
0
,
NULL
);
}
void
Draw3dRect
(
HDC
hDC
,
int
x
,
int
y
,
int
cx
,
int
cy
,
COLORREF
clrTopLeft
,
COLORREF
clrBottomRight
)
static
void
Draw3dRect
(
HDC
hDC
,
int
x
,
int
y
,
int
cx
,
int
cy
,
COLORREF
clrTopLeft
,
COLORREF
clrBottomRight
)
{
FillSolidRect2
(
hDC
,
x
,
y
,
cx
-
1
,
1
,
clrTopLeft
);
FillSolidRect2
(
hDC
,
x
,
y
,
1
,
cy
-
1
,
clrTopLeft
);
...
...
@@ -81,12 +81,6 @@ void Draw3dRect(HDC hDC, int x, int y, int cx, int cy, COLORREF clrTopLeft, COLO
FillSolidRect2
(
hDC
,
x
,
y
+
cy
,
cx
,
-
1
,
clrBottomRight
);
}
void
Draw3dRect2
(
HDC
hDC
,
LPRECT
lpRect
,
COLORREF
clrTopLeft
,
COLORREF
clrBottomRight
)
{
Draw3dRect
(
hDC
,
lpRect
->
left
,
lpRect
->
top
,
lpRect
->
right
-
lpRect
->
left
,
lpRect
->
bottom
-
lpRect
->
top
,
clrTopLeft
,
clrBottomRight
);
}
void
Font_DrawText
(
HDC
hDC
,
LPWSTR
lpwszText
,
int
x
,
int
y
)
{
HDC
hFontDC
;
...
...
programs/taskmgr/taskmgr.h
View file @
fb02a4c6
...
...
@@ -143,9 +143,6 @@ extern HWND hApplicationPageNewTaskButton; /* Application New Task button */
/* Forward declarations of functions included in this code module: */
void
FillSolidRect
(
HDC
hDC
,
LPCRECT
lpRect
,
COLORREF
clr
);
void
FillSolidRect2
(
HDC
hDC
,
int
x
,
int
y
,
int
cx
,
int
cy
,
COLORREF
clr
);
void
Draw3dRect
(
HDC
hDC
,
int
x
,
int
y
,
int
cx
,
int
cy
,
COLORREF
clrTopLeft
,
COLORREF
clrBottomRight
);
void
Draw3dRect2
(
HDC
hDC
,
LPRECT
lpRect
,
COLORREF
clrTopLeft
,
COLORREF
clrBottomRight
);
void
Font_DrawText
(
HDC
hDC
,
LPWSTR
lpwszText
,
int
x
,
int
y
);
#define OPTIONS_MENU_INDEX 1
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment