tabs to spaces
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@2713 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
3f697a1217
commit
e6dd2ada8a
17 changed files with 196 additions and 197 deletions
|
@ -36,15 +36,15 @@ LRESULT CALLBACK BG_WndProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
|
|||
while (r.top < ry)
|
||||
{
|
||||
int rv,gv,bv;
|
||||
HBRUSH brush;
|
||||
HBRUSH brush;
|
||||
rv = (GetRValue(c2) * r.top + GetRValue(c1) * (ry-r.top)) / ry;
|
||||
gv = (GetGValue(c2) * r.top + GetGValue(c1) * (ry-r.top)) / ry;
|
||||
bv = (GetBValue(c2) * r.top + GetBValue(c1) * (ry-r.top)) / ry;
|
||||
brush = CreateSolidBrush(RGB(rv,gv,bv));
|
||||
// note that we don't need to do "SelectObject(hdc, brush)"
|
||||
// because FillRect lets us specify the brush as a parameter.
|
||||
FillRect(hdc, &r, brush);
|
||||
DeleteObject(brush);
|
||||
brush = CreateSolidBrush(RGB(rv,gv,bv));
|
||||
// note that we don't need to do "SelectObject(hdc, brush)"
|
||||
// because FillRect lets us specify the brush as a parameter.
|
||||
FillRect(hdc, &r, brush);
|
||||
DeleteObject(brush);
|
||||
r.top+=4;
|
||||
r.bottom+=4;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue