Author: gadamopoulos
Date: Mon Jul 11 13:53:58 2011
New Revision: 52635
URL: http://svn.reactos.org/svn/reactos?rev=52635&view=rev
Log:
[uxtheme]
- Fix some comments
Modified:
branches/GSoC_2011/ThemesSupport/dll/win32/uxtheme/nonclient.c
Modified: branches/GSoC_2011/ThemesSupport/dll/win32/uxtheme/nonclient.c
URL: http://svn.reactos.org/svn/reactos/branches/GSoC_2011/ThemesSupport/dll/win…
==============================================================================
--- branches/GSoC_2011/ThemesSupport/dll/win32/uxtheme/nonclient.c [iso-8859-1] (original)
+++ branches/GSoC_2011/ThemesSupport/dll/win32/uxtheme/nonclient.c [iso-8859-1] Mon Jul 11 13:53:58 2011
@@ -317,6 +317,7 @@
ThemeGetButtonState(HTHELP, htHot, htDown, pcontext->Active));
}
+/* Used from WM_NCPAINT and WM_NCACTIVATE handlers*/
static void
ThemeDrawCaption(PDRAW_CONTEXT pcontext, RECT* prcCurrent)
{
@@ -564,7 +565,7 @@
DrawTextW(pcontext->hDC, Text, i, &Rect, uFormat);
- /* Exclude the area drawn by DrawText from the clip region */
+ /* Exclude from the clip region the area drawn by DrawText */
SetRect(&rcCalc, 0,0,0,0);
DrawTextW(pcontext->hDC, Text, i, &rcCalc, uFormat | DT_CALCRECT);
InflateRect( &Rect, 0, -(rcCalc.bottom+1)/2);
@@ -620,7 +621,7 @@
SelectObject(pcontext->hDC, FontOld);
- /* Fill the menu background area that isn't painted yet*/
+ /* Fill the menu background are that isn't painted yet*/
FillRect(pcontext->hDC, &Rect, GetSysColorBrush(flat_menu ? COLOR_MENUBAR : COLOR_MENU));
}
Author: gadamopoulos
Date: Mon Jul 11 12:59:21 2011
New Revision: 52631
URL: http://svn.reactos.org/svn/reactos?rev=52631&view=rev
Log:
[win32k]
-Add a hack to GreStretchBltMask to return TRUE when a dimension is 0. After some investigation it seems that windows returns TRUE in such a case but couldn't investigate more if this change is really correct. This hack is needed because a drawing operation in uxtheme is aborted when StretchBlt returns FALSE
Modified:
branches/GSoC_2011/ThemesSupport/subsystems/win32/win32k/objects/bitblt.c
Modified: branches/GSoC_2011/ThemesSupport/subsystems/win32/win32k/objects/bitblt.c
URL: http://svn.reactos.org/svn/reactos/branches/GSoC_2011/ThemesSupport/subsyst…
==============================================================================
--- branches/GSoC_2011/ThemesSupport/subsystems/win32/win32k/objects/bitblt.c [iso-8859-1] (original)
+++ branches/GSoC_2011/ThemesSupport/subsystems/win32/win32k/objects/bitblt.c [iso-8859-1] Mon Jul 11 12:59:21 2011
@@ -660,7 +660,7 @@
if (0 == WidthDest || 0 == HeightDest || 0 == WidthSrc || 0 == HeightSrc)
{
EngSetLastError(ERROR_INVALID_PARAMETER);
- return FALSE;
+ return TRUE;
}
DPRINT("Locking DCs\n");