Author: frik85 Date: Sat May 27 00:22:46 2006 New Revision: 22063
URL: http://svn.reactos.ru/svn/reactos?rev=22063&view=rev Log: I changed the window title bar gradient back to the ReactOS 0.2.9 gradient style.
<Fireball - 20:07 GMT> I prefer to keep release the win2k-theme until we have a proper support for theming
Modified: branches/ros-branch-0_3_0/reactos/dll/win32/user32/windows/nonclient.c
Modified: branches/ros-branch-0_3_0/reactos/dll/win32/user32/windows/nonclient.c URL: http://svn.reactos.ru/svn/reactos/branches/ros-branch-0_3_0/reactos/dll/win3... ============================================================================== --- branches/ros-branch-0_3_0/reactos/dll/win32/user32/windows/nonclient.c (original) +++ branches/ros-branch-0_3_0/reactos/dll/win32/user32/windows/nonclient.c Sat May 27 00:22:46 2006 @@ -1149,8 +1149,8 @@ { if (uFlags & DC_GRADIENT) { - static GRADIENT_RECT gcap [] = {{0, 1}, {2, 3}}; - TRIVERTEX vert[4]; + static GRADIENT_RECT gcap = {0, 1}; + TRIVERTEX vert[2]; COLORREF Colors[2]; LONG xx;
@@ -1178,33 +1178,19 @@
vert[0].x = r.left; vert[0].y = 0; - vert[0].Red = GetRValue(Colors[1]) << 8; - vert[0].Green = GetGValue(Colors[1]) << 8; - vert[0].Blue = GetBValue(Colors[1]) << 8; + vert[0].Red = GetRValue(Colors[0]) << 8; + vert[0].Green = GetGValue(Colors[0]) << 8; + vert[0].Blue = GetBValue(Colors[0]) << 8; vert[0].Alpha = 0;
vert[1].x = r.right; - vert[1].y = (lprc->bottom - lprc->top) >> 1; - vert[1].Red = GetRValue(Colors[0]) << 8; - vert[1].Green = GetGValue(Colors[0]) << 8; - vert[1].Blue = GetBValue(Colors[0]) << 8; + vert[1].y = lprc->bottom - lprc->top; + vert[1].Red = GetRValue(Colors[1]) << 8; + vert[1].Green = GetGValue(Colors[1]) << 8; + vert[1].Blue = GetBValue(Colors[1]) << 8; vert[1].Alpha = 0;
- vert[2].x = r.left; - vert[2].y = (lprc->bottom - lprc->top) >> 1; - vert[2].Red = GetRValue(Colors[0]) << 8; - vert[2].Green = GetGValue(Colors[0]) << 8; - vert[2].Blue = GetBValue(Colors[0]) << 8; - vert[2].Alpha = 0; - - vert[3].x = r.right; - vert[3].y = (lprc->bottom - lprc->top); - vert[3].Red = GetRValue(Colors[1]) << 8; - vert[3].Green = GetGValue(Colors[1]) << 8; - vert[3].Blue = GetBValue(Colors[1]) << 8; - vert[3].Alpha = 0; - - GdiGradientFill(MemDC, vert, 4, &gcap, 2, GRADIENT_FILL_RECT_V); + GdiGradientFill(MemDC, vert, 2, &gcap, 1, GRADIENT_FILL_RECT_H);
if ((uFlags & DC_ICON) && (Style & WS_SYSMENU) && !(uFlags & DC_SMALLCAP)) {