ReactOS.org
Sign In
Sign Up
Sign In
Sign Up
Manage this list
×
Keyboard Shortcuts
Thread View
j
: Next unread message
k
: Previous unread message
j a
: Jump to all threads
j l
: Jump to MailingList overview
2024
December
November
October
September
August
July
June
May
April
March
February
January
2023
December
November
October
September
August
July
June
May
April
March
February
January
2022
December
November
October
September
August
July
June
May
April
March
February
January
2021
December
November
October
September
August
July
June
May
April
March
February
January
2020
December
November
October
September
August
July
June
May
April
March
February
January
2019
December
November
October
September
August
July
June
May
April
March
February
January
2018
December
November
October
September
August
July
June
May
April
March
February
January
2017
December
November
October
September
August
July
June
May
April
March
February
January
2016
December
November
October
September
August
July
June
May
April
March
February
January
2015
December
November
October
September
August
July
June
May
April
March
February
January
2014
December
November
October
September
August
July
June
May
April
March
February
January
2013
December
November
October
September
August
July
June
May
April
March
February
January
2012
December
November
October
September
August
July
June
May
April
March
February
January
2011
December
November
October
September
August
July
June
May
April
March
February
January
2010
December
November
October
September
August
July
June
May
April
March
February
January
2009
December
November
October
September
August
July
June
May
April
March
February
January
2008
December
November
October
September
August
July
June
May
April
March
February
January
2007
December
November
October
September
August
July
June
May
April
March
February
January
2006
December
November
October
September
August
July
June
May
April
March
February
January
2005
December
November
October
September
August
July
June
May
April
March
February
January
2004
December
November
October
September
August
July
June
May
April
March
February
List overview
Download
Ros-diffs
October 2008
----- 2024 -----
December 2024
November 2024
October 2024
September 2024
August 2024
July 2024
June 2024
May 2024
April 2024
March 2024
February 2024
January 2024
----- 2023 -----
December 2023
November 2023
October 2023
September 2023
August 2023
July 2023
June 2023
May 2023
April 2023
March 2023
February 2023
January 2023
----- 2022 -----
December 2022
November 2022
October 2022
September 2022
August 2022
July 2022
June 2022
May 2022
April 2022
March 2022
February 2022
January 2022
----- 2021 -----
December 2021
November 2021
October 2021
September 2021
August 2021
July 2021
June 2021
May 2021
April 2021
March 2021
February 2021
January 2021
----- 2020 -----
December 2020
November 2020
October 2020
September 2020
August 2020
July 2020
June 2020
May 2020
April 2020
March 2020
February 2020
January 2020
----- 2019 -----
December 2019
November 2019
October 2019
September 2019
August 2019
July 2019
June 2019
May 2019
April 2019
March 2019
February 2019
January 2019
----- 2018 -----
December 2018
November 2018
October 2018
September 2018
August 2018
July 2018
June 2018
May 2018
April 2018
March 2018
February 2018
January 2018
----- 2017 -----
December 2017
November 2017
October 2017
September 2017
August 2017
July 2017
June 2017
May 2017
April 2017
March 2017
February 2017
January 2017
----- 2016 -----
December 2016
November 2016
October 2016
September 2016
August 2016
July 2016
June 2016
May 2016
April 2016
March 2016
February 2016
January 2016
----- 2015 -----
December 2015
November 2015
October 2015
September 2015
August 2015
July 2015
June 2015
May 2015
April 2015
March 2015
February 2015
January 2015
----- 2014 -----
December 2014
November 2014
October 2014
September 2014
August 2014
July 2014
June 2014
May 2014
April 2014
March 2014
February 2014
January 2014
----- 2013 -----
December 2013
November 2013
October 2013
September 2013
August 2013
July 2013
June 2013
May 2013
April 2013
March 2013
February 2013
January 2013
----- 2012 -----
December 2012
November 2012
October 2012
September 2012
August 2012
July 2012
June 2012
May 2012
April 2012
March 2012
February 2012
January 2012
----- 2011 -----
December 2011
November 2011
October 2011
September 2011
August 2011
July 2011
June 2011
May 2011
April 2011
March 2011
February 2011
January 2011
----- 2010 -----
December 2010
November 2010
October 2010
September 2010
August 2010
July 2010
June 2010
May 2010
April 2010
March 2010
February 2010
January 2010
----- 2009 -----
December 2009
November 2009
October 2009
September 2009
August 2009
July 2009
June 2009
May 2009
April 2009
March 2009
February 2009
January 2009
----- 2008 -----
December 2008
November 2008
October 2008
September 2008
August 2008
July 2008
June 2008
May 2008
April 2008
March 2008
February 2008
January 2008
----- 2007 -----
December 2007
November 2007
October 2007
September 2007
August 2007
July 2007
June 2007
May 2007
April 2007
March 2007
February 2007
January 2007
----- 2006 -----
December 2006
November 2006
October 2006
September 2006
August 2006
July 2006
June 2006
May 2006
April 2006
March 2006
February 2006
January 2006
----- 2005 -----
December 2005
November 2005
October 2005
September 2005
August 2005
July 2005
June 2005
May 2005
April 2005
March 2005
February 2005
January 2005
----- 2004 -----
December 2004
November 2004
October 2004
September 2004
August 2004
July 2004
June 2004
May 2004
April 2004
March 2004
February 2004
ros-diffs@reactos.org
25 participants
517 discussions
Start a n
N
ew thread
[tkreuzer] 36840: fix __rdtsc on amd64 build, "=A" doesn't work.
by tkreuzer@svn.reactos.org
Author: tkreuzer Date: Mon Oct 20 07:17:06 2008 New Revision: 36840 URL:
http://svn.reactos.org/svn/reactos?rev=36840&view=rev
Log: fix __rdtsc on amd64 build, "=A" doesn't work. Modified: branches/ros-amd64-bringup/reactos/include/psdk/intrin_x86.h Modified: branches/ros-amd64-bringup/reactos/include/psdk/intrin_x86.h URL:
http://svn.reactos.org/svn/reactos/branches/ros-amd64-bringup/reactos/inclu…
============================================================================== --- branches/ros-amd64-bringup/reactos/include/psdk/intrin_x86.h [iso-8859-1] (original) +++ branches/ros-amd64-bringup/reactos/include/psdk/intrin_x86.h [iso-8859-1] Mon Oct 20 07:17:06 2008 @@ -1054,9 +1054,15 @@ static __inline__ __attribute__((always_inline)) unsigned long long __rdtsc(void) { +#ifdef _M_AMD64 + unsigned long long low, high; + __asm__ __volatile__("rdtsc" : "=a"(low), "=d"(high)); + return low | (high << 32); +#else unsigned long long retval; __asm__ __volatile__("rdtsc" : "=A"(retval)); return retval; +#endif } static __inline__ __attribute__((always_inline)) void __writeeflags(uintptr_t Value)
16 years, 2 months
1
0
0
0
[fireball] 36839: - Move kernel32's baseaddress lower. Should fix problem with relocated kernel32 after linking in the ICU library.
by fireball@svn.reactos.org
Author: fireball Date: Mon Oct 20 03:17:04 2008 New Revision: 36839 URL:
http://svn.reactos.org/svn/reactos?rev=36839&view=rev
Log: - Move kernel32's baseaddress lower. Should fix problem with relocated kernel32 after linking in the ICU library. Modified: trunk/reactos/baseaddress.rbuild Modified: trunk/reactos/baseaddress.rbuild URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/baseaddress.rbuild?rev=368…
============================================================================== --- trunk/reactos/baseaddress.rbuild [iso-8859-1] (original) +++ trunk/reactos/baseaddress.rbuild [iso-8859-1] Mon Oct 20 03:17:04 2008 @@ -192,7 +192,7 @@ <property name="BASEADDRESS_MSVCRT40" value="0x78700000" /> <property name="BASEADDRESS_MSCOREE" value="0x79000000" /> <property name="BASEADDRESS_FUSION" value="0x79040000" /> - <property name="BASEADDRESS_KERNEL32" value="0x7c800000" /> + <property name="BASEADDRESS_KERNEL32" value="0x7c700000" /> <property name="BASEADDRESS_NTDLL" value="0x7c900000" /> <property name="BASEADDRESS_HHCTRL" value="0x7e410000" /> <property name="BASEADDRESS_SXS" value="0x7e690000" />
16 years, 2 months
1
0
0
0
[jimtabor] 36838: - Update local DC structure and defines.
by jimtabor@svn.reactos.org
Author: jimtabor Date: Mon Oct 20 02:36:21 2008 New Revision: 36838 URL:
http://svn.reactos.org/svn/reactos?rev=36838&view=rev
Log: - Update local DC structure and defines. Modified: trunk/reactos/include/reactos/win32k/ntgdihdl.h Modified: trunk/reactos/include/reactos/win32k/ntgdihdl.h URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/include/reactos/win32k/ntg…
============================================================================== --- trunk/reactos/include/reactos/win32k/ntgdihdl.h [iso-8859-1] (original) +++ trunk/reactos/include/reactos/win32k/ntgdihdl.h [iso-8859-1] Mon Oct 20 02:36:21 2008 @@ -171,9 +171,12 @@ /* DC_ATTR LCD Flags */ #define LDC_LDC 0x00000001 // (init) local DC other than a normal DC #define LDC_EMFLDC 0x00000002 // Enhance Meta File local DC +#define LDC_SAPCALLBACK 0x00000020 #define LDC_INIT_DOCUMENT 0x00000040 #define LDC_INIT_PAGE 0x00000080 +#define LDC_CLOCKWISE 0x00002000 #define LDC_KILL_DOCUMENT 0x00010000 +#define LDC_DEVCAPS 0x02000000 /* DC_ATTR Xform Flags */ #define METAFILE_TO_WORLD_IDENTITY 0x00000001 @@ -244,10 +247,13 @@ ULONG Flags; INT iType; PVOID pvEmfDC; /* Pointer to ENHMETAFILE structure */ + LPWSTR pwszPort; ABORTPROC pAbortProc; /* AbortProc for Printing */ + DWORD CallBackTick; HANDLE hPrinter; /* Local or Remote Printer driver */ - INT iInitPage; /* Start/Stop */ - INT iInitDocument; + DEVCAPS DevCaps; + HBRUSH BrushColor; + HPEN PenColor; } LDC, *PLDC; typedef struct _DC_ATTR
16 years, 2 months
1
0
0
0
[jimtabor] 36837: - Cleanup IntGdiGetDeviceCaps, add more defines.
by jimtabor@svn.reactos.org
Author: jimtabor Date: Mon Oct 20 00:07:46 2008 New Revision: 36837 URL:
http://svn.reactos.org/svn/reactos?rev=36837&view=rev
Log: - Cleanup IntGdiGetDeviceCaps, add more defines. Modified: trunk/reactos/include/psdk/wingdi.h trunk/reactos/include/reactos/win32k/ntgdityp.h trunk/reactos/subsystems/win32/win32k/objects/dc.c Modified: trunk/reactos/include/psdk/wingdi.h URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/include/psdk/wingdi.h?rev=…
============================================================================== --- trunk/reactos/include/psdk/wingdi.h [iso-8859-1] (original) +++ trunk/reactos/include/psdk/wingdi.h [iso-8859-1] Mon Oct 20 00:07:46 2008 @@ -868,6 +868,8 @@ #define TCI_SRCCODEPAGE 2 #define TCI_SRCFONTSIG 3 #if (_WIN32_WINNT >= 0x0500) +#define SHADEBLENDCAPS 120 +#define COLORMGMTCAPS 121 /* SHADEBLENDCAPS */ #define SB_NONE 0x00000000 #define SB_CONST_ALPHA 0x00000001 Modified: trunk/reactos/include/reactos/win32k/ntgdityp.h URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/include/reactos/win32k/ntg…
============================================================================== --- trunk/reactos/include/reactos/win32k/ntgdityp.h [iso-8859-1] (original) +++ trunk/reactos/include/reactos/win32k/ntgdityp.h [iso-8859-1] Mon Oct 20 00:07:46 2008 @@ -190,6 +190,7 @@ #define GCABCW_INDICES 0x0002 /* CAPS1 support */ +#define CAPS1 94 //#define C1_TRANSPARENT 0x0001 #define TC_TT_ABLE 0x0002 #define C1_TT_CR_ANY 0x0004 @@ -203,6 +204,7 @@ #define C1_COLORCURSOR 0x0800 #define C1_CMYK_ABLE 0x1000 #define C1_SLOW_CARD 0x2000 +#define C1_MIRRORING 0X4000 // NtGdiGetRandomRgn iCodes #define CLIPRGN 1 // GetClipRgn Modified: trunk/reactos/subsystems/win32/win32k/objects/dc.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/ob…
============================================================================== --- trunk/reactos/subsystems/win32/win32k/objects/dc.c [iso-8859-1] (original) +++ trunk/reactos/subsystems/win32/win32k/objects/dc.c [iso-8859-1] Mon Oct 20 00:07:46 2008 @@ -143,6 +143,7 @@ nDc_Attr->dwLayout = oDc_Attr->dwLayout; if (oDc_Attr->dwLayout & LAYOUT_ORIENTATIONMASK) Layout = oDc_Attr->dwLayout; NewDC->DcLevel.flPath = OrigDC->DcLevel.flPath; + nDc_Attr->ulDirty_ = oDc_Attr->ulDirty_; DC_UnlockDc(NewDC); DC_UnlockDc(OrigDC); @@ -826,6 +827,8 @@ if(pUMdhpdev) pUMdhpdev = NewDC->PDev; // set DHPDEV for device. NewDC->pPDev = (PVOID)&PrimarySurface; NewDC->w.hBitmap = (HBITMAP)PrimarySurface.pSurface; + // ATM we only have one display. + nDc_Attr->ulDirty_ |= DC_PRIMARY_DISPLAY; NewDC->w.bitsPerPixel = ((PGDIDEVICE)NewDC->pPDev)->GDIInfo.cBitsPixel * ((PGDIDEVICE)NewDC->pPDev)->GDIInfo.cPlanes; @@ -1555,223 +1558,6 @@ SetLastWin32Error(ERROR_INVALID_HANDLE); } -INT FASTCALL -IntGdiGetDeviceCaps(PDC dc, INT Index) -{ - INT ret = 0; - POINT pt; - - /* Retrieve capability */ - switch (Index) - { - case DRIVERVERSION: - ret = ((PGDIDEVICE)dc->pPDev)->GDIInfo.ulVersion; - break; - - case TECHNOLOGY: - ret = ((PGDIDEVICE)dc->pPDev)->GDIInfo.ulTechnology; - break; - - case HORZSIZE: - ret = ((PGDIDEVICE)dc->pPDev)->GDIInfo.ulHorzSize; - break; - - case VERTSIZE: - ret = ((PGDIDEVICE)dc->pPDev)->GDIInfo.ulVertSize; - break; - - case HORZRES: - ret = ((PGDIDEVICE)dc->pPDev)->GDIInfo.ulHorzRes; - break; - - case VERTRES: - ret = ((PGDIDEVICE)dc->pPDev)->GDIInfo.ulVertRes; - break; - - case LOGPIXELSX: - ret = ((PGDIDEVICE)dc->pPDev)->GDIInfo.ulLogPixelsX; - break; - - case LOGPIXELSY: - ret = ((PGDIDEVICE)dc->pPDev)->GDIInfo.ulLogPixelsY; - break; - - case BITSPIXEL: - ret = ((PGDIDEVICE)dc->pPDev)->GDIInfo.cBitsPixel; - break; - - case PLANES: - ret = ((PGDIDEVICE)dc->pPDev)->GDIInfo.cPlanes; - break; - - case NUMBRUSHES: - UNIMPLEMENTED; /* FIXME */ - break; - - case NUMPENS: - UNIMPLEMENTED; /* FIXME */ - break; - - case NUMFONTS: - UNIMPLEMENTED; /* FIXME */ - break; - - case NUMCOLORS: - ret = ((PGDIDEVICE)dc->pPDev)->GDIInfo.ulNumColors; - break; - - case ASPECTX: - ret = ((PGDIDEVICE)dc->pPDev)->GDIInfo.ulAspectX; - break; - - case ASPECTY: - ret = ((PGDIDEVICE)dc->pPDev)->GDIInfo.ulAspectY; - break; - - case ASPECTXY: - ret = ((PGDIDEVICE)dc->pPDev)->GDIInfo.ulAspectXY; - break; - - case PDEVICESIZE: - UNIMPLEMENTED; /* FIXME */ - break; - - case CLIPCAPS: - UNIMPLEMENTED; /* FIXME */ - break; - - case SIZEPALETTE: - ret = ((PGDIDEVICE)dc->pPDev)->GDIInfo.ulNumPalReg; /* FIXME not sure */ - break; - - case NUMRESERVED: - ret = 0; - break; - - case COLORRES: - UNIMPLEMENTED; /* FIXME */ - break; - - case PHYSICALWIDTH: - if(IntGdiEscape(dc, GETPHYSPAGESIZE, 0, NULL, (LPVOID)&pt) > 0) - { - ret = pt.x; - } - else - { - ret = 0; - } - break; - - case PHYSICALHEIGHT: - if(IntGdiEscape(dc, GETPHYSPAGESIZE, 0, NULL, (LPVOID)&pt) > 0) - { - ret = pt.y; - } - else - { - ret = 0; - } - break; - - case PHYSICALOFFSETX: - if(IntGdiEscape(dc, GETPRINTINGOFFSET, 0, NULL, (LPVOID)&pt) > 0) - { - ret = pt.x; - } - else - { - ret = 0; - } - break; - - case PHYSICALOFFSETY: - if(IntGdiEscape(dc, GETPRINTINGOFFSET, 0, NULL, (LPVOID)&pt) > 0) - { - ret = pt.y; - } - else - { - ret = 0; - } - break; - - case VREFRESH: - UNIMPLEMENTED; /* FIXME */ - break; - - case SCALINGFACTORX: - if(IntGdiEscape(dc, GETSCALINGFACTOR, 0, NULL, (LPVOID)&pt) > 0) - { - ret = pt.x; - } - else - { - ret = 0; - } - break; - - case SCALINGFACTORY: - if(IntGdiEscape(dc, GETSCALINGFACTOR, 0, NULL, (LPVOID)&pt) > 0) - { - ret = pt.y; - } - else - { - ret = 0; - } - break; - - case RASTERCAPS: - ret = ((PGDIDEVICE)dc->pPDev)->GDIInfo.flRaster; - break; - - case CURVECAPS: - UNIMPLEMENTED; /* FIXME */ - break; - - case LINECAPS: - UNIMPLEMENTED; /* FIXME */ - break; - - case POLYGONALCAPS: - UNIMPLEMENTED; /* FIXME */ - break; - - case TEXTCAPS: - ret = ((PGDIDEVICE)dc->pPDev)->GDIInfo.flTextCaps; - break; - - default: - ret = 0; - break; - } - - return ret; -} - -INT STDCALL -NtGdiGetDeviceCaps(HDC hDC, - INT Index) -{ - PDC dc; - INT ret; - - dc = DC_LockDc(hDC); - if (dc == NULL) - { - SetLastWin32Error(ERROR_INVALID_HANDLE); - return 0; - } - - ret = IntGdiGetDeviceCaps(dc, Index); - - DPRINT("(%04x,%d): returning %d\n", hDC, Index, ret); - - DC_UnlockDc( dc ); - return ret; -} - INT FASTCALL IntcFonts(PGDIDEVICE pDevObj) @@ -1807,6 +1593,206 @@ ret |= CM_CMYK_COLOR; if (pDevObj->DevInfo.flGraphicsCaps & GCAPS_ICM) ret |= CM_DEVICE_ICM; + return ret; +} + +INT FASTCALL +IntGdiGetDeviceCaps(PDC dc, INT Index) +{ + INT ret = 0; + PGDIDEVICE pPDev = dc->pPDev; + /* Retrieve capability */ + switch (Index) + { + case DRIVERVERSION: + ret = pPDev->GDIInfo.ulVersion; + break; + + case TECHNOLOGY: + ret = pPDev->GDIInfo.ulTechnology; + break; + + case HORZSIZE: + ret = pPDev->GDIInfo.ulHorzSize; + break; + + case VERTSIZE: + ret = pPDev->GDIInfo.ulVertSize; + break; + + case HORZRES: + ret = pPDev->GDIInfo.ulHorzRes; + break; + + case VERTRES: + ret = pPDev->GDIInfo.ulVertRes; + break; + + case LOGPIXELSX: + ret = pPDev->GDIInfo.ulLogPixelsX; + break; + + case LOGPIXELSY: + ret = pPDev->GDIInfo.ulLogPixelsY; + break; + + case CAPS1: + if ( pPDev->pGraphicsDev && + (((PGRAPHICS_DEVICE)pPDev->pGraphicsDev)->StateFlags & + DISPLAY_DEVICE_MIRRORING_DRIVER)) + ret = C1_MIRRORING; + break; + + case BITSPIXEL: + ret = pPDev->GDIInfo.cBitsPixel; + break; + + case PLANES: + ret = pPDev->GDIInfo.cPlanes; + break; + + case NUMBRUSHES: + ret = -1; + break; + + case NUMPENS: + ret = pPDev->GDIInfo.ulNumColors; + if ( ret != -1 ) ret *= 5; + break; + + case NUMFONTS: + ret = IntcFonts(pPDev); + break; + + case NUMCOLORS: + ret = pPDev->GDIInfo.ulNumColors; + break; + + case ASPECTX: + ret = pPDev->GDIInfo.ulAspectX; + break; + + case ASPECTY: + ret = pPDev->GDIInfo.ulAspectY; + break; + + case ASPECTXY: + ret = pPDev->GDIInfo.ulAspectXY; + break; + + case CLIPCAPS: + ret = CP_RECTANGLE; + break; + + case SIZEPALETTE: + ret = pPDev->GDIInfo.ulNumPalReg; + break; + + case NUMRESERVED: + ret = 20; + break; + + case COLORRES: + ret = pPDev->GDIInfo.ulDACRed + + pPDev->GDIInfo.ulDACGreen + + pPDev->GDIInfo.ulDACBlue; + break; + + case DESKTOPVERTRES: + ret = pPDev->GDIInfo.ulVertRes; + break; + + case DESKTOPHORZRES: + ret = pPDev->GDIInfo.ulHorzRes; + break; + + case BLTALIGNMENT: + ret = pPDev->GDIInfo.ulBltAlignment; + break; + + case SHADEBLENDCAPS: + ret = pPDev->GDIInfo.flShadeBlend; + break; + + case COLORMGMTCAPS: + ret = IntGetColorManagementCaps(pPDev); + break; + + case PHYSICALWIDTH: + ret = pPDev->GDIInfo.szlPhysSize.cx; + break; + + case PHYSICALHEIGHT: + ret = pPDev->GDIInfo.szlPhysSize.cy; + break; + + case PHYSICALOFFSETX: + ret = pPDev->GDIInfo.ptlPhysOffset.x; + break; + + case PHYSICALOFFSETY: + ret = pPDev->GDIInfo.ptlPhysOffset.y; + break; + + case VREFRESH: + ret = pPDev->GDIInfo.ulVRefresh; + break; + + case RASTERCAPS: + ret = pPDev->GDIInfo.flRaster; + break; + + case CURVECAPS: + ret = (CC_CIRCLES | CC_PIE | CC_CHORD | CC_ELLIPSES | CC_WIDE | + CC_STYLED | CC_WIDESTYLED | CC_INTERIORS | CC_ROUNDRECT); + break; + + case LINECAPS: + ret = (LC_POLYLINE | LC_MARKER | LC_POLYMARKER | LC_WIDE | + LC_STYLED | LC_WIDESTYLED | LC_INTERIORS); + break; + + case POLYGONALCAPS: + ret = (PC_POLYGON | PC_RECTANGLE | PC_WINDPOLYGON | PC_SCANLINE | + PC_WIDE | PC_STYLED | PC_WIDESTYLED | PC_INTERIORS); + break; + + case TEXTCAPS: + ret = pPDev->GDIInfo.flTextCaps; + if (pPDev->GDIInfo.ulTechnology) ret |= TC_VA_ABLE; + ret |= (TC_SO_ABLE|TC_UA_ABLE); + break; + + case PDEVICESIZE: + case SCALINGFACTORX: + case SCALINGFACTORY: + default: + ret = 0; + break; + } + + return ret; +} + +INT STDCALL +NtGdiGetDeviceCaps(HDC hDC, + INT Index) +{ + PDC dc; + INT ret; + + dc = DC_LockDc(hDC); + if (dc == NULL) + { + SetLastWin32Error(ERROR_INVALID_HANDLE); + return 0; + } + + ret = IntGdiGetDeviceCaps(dc, Index); + + DPRINT("(%04x,%d): returning %d\n", hDC, Index, ret); + + DC_UnlockDc( dc ); return ret; } @@ -1856,6 +1842,10 @@ pDevCaps->ulPhysicalHeight = pGdiInfo->szlPhysSize.cy; pDevCaps->ulPhysicalOffsetX = pGdiInfo->ptlPhysOffset.x; pDevCaps->ulPhysicalOffsetY = pGdiInfo->ptlPhysOffset.y; + pDevCaps->ulPanningHorzRes = pGdiInfo->ulPanningHorzRes; + pDevCaps->ulPanningVertRes = pGdiInfo->ulPanningVertRes; + pDevCaps->xPanningAlignment = pGdiInfo->xPanningAlignment; + pDevCaps->yPanningAlignment = pGdiInfo->yPanningAlignment; Tmp = 0; Tmp = pGdiInfo->flTextCaps | (TC_SO_ABLE|TC_UA_ABLE|TC_CP_STROKE|TC_OP_STROKE|TC_OP_CHARACTER); @@ -1884,13 +1874,13 @@ NTSTATUS Status = STATUS_SUCCESS; dc = DC_LockDc(hDC); - if (dc == NULL) + if (!dc) { SetLastWin32Error(ERROR_INVALID_HANDLE); return FALSE; } - pSafeDevCaps = ExAllocatePoolWithTag(PagedPool, sizeof(DEVCAPS), TAG_DC); + pSafeDevCaps = ExAllocatePoolWithTag(PagedPool, sizeof(DEVCAPS), TAG_TEMP); if (!pSafeDevCaps) { @@ -1913,16 +1903,14 @@ } _SEH_END; - if(!NT_SUCCESS(Status)) + ExFreePoolWithTag(pSafeDevCaps, TAG_TEMP); + DC_UnlockDc(dc); + + if (!NT_SUCCESS(Status)) { SetLastNtError(Status); - ExFreePoolWithTag(pSafeDevCaps, TAG_DC); - DC_UnlockDc(dc); return FALSE; } - - ExFreePoolWithTag(pSafeDevCaps, TAG_DC); - DC_UnlockDc( dc ); return TRUE; }
16 years, 2 months
1
0
0
0
[jimtabor] 36836: - Set GetBkColor for callers.
by jimtabor@svn.reactos.org
Author: jimtabor Date: Sun Oct 19 23:07:42 2008 New Revision: 36836 URL:
http://svn.reactos.org/svn/reactos?rev=36836&view=rev
Log: - Set GetBkColor for callers. Modified: trunk/reactos/dll/win32/gdi32/objects/painting.c Modified: trunk/reactos/dll/win32/gdi32/objects/painting.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/gdi32/objects/pa…
============================================================================== --- trunk/reactos/dll/win32/gdi32/objects/painting.c [iso-8859-1] (original) +++ trunk/reactos/dll/win32/gdi32/objects/painting.c [iso-8859-1] Sun Oct 19 23:07:42 2008 @@ -740,7 +740,7 @@ xMask, yMask, dwRop, - 0); + GetBkColor(hdcSrc)); } @@ -771,5 +771,5 @@ hbmMask, xMask, yMask, - 0); -} + GetBkColor(hdcSrc)); +}
16 years, 2 months
1
0
0
0
[arty] 36835: Sorry, wound up reversing my change. Misread the diff.
by arty@svn.reactos.org
Author: arty Date: Sun Oct 19 15:11:52 2008 New Revision: 36835 URL:
http://svn.reactos.org/svn/reactos?rev=36835&view=rev
Log: Sorry, wound up reversing my change. Misread the diff. Modified: branches/arty-newcc/drivers/filesystems/cdfs/rw.c Modified: branches/arty-newcc/drivers/filesystems/cdfs/rw.c URL:
http://svn.reactos.org/svn/reactos/branches/arty-newcc/drivers/filesystems/…
============================================================================== --- branches/arty-newcc/drivers/filesystems/cdfs/rw.c [iso-8859-1] (original) +++ branches/arty-newcc/drivers/filesystems/cdfs/rw.c [iso-8859-1] Sun Oct 19 15:11:52 2008 @@ -76,14 +76,23 @@ { LARGE_INTEGER FileOffset; IO_STATUS_BLOCK IoStatus; + CC_FILE_SIZES FileSizes; if (ReadOffset + Length > Fcb->Entry.DataLengthL) Length = Fcb->Entry.DataLengthL - ReadOffset; if (FileObject->PrivateCacheMap == NULL) { + FileSizes.AllocationSize = Fcb->RFCB.AllocationSize; + FileSizes.FileSize = Fcb->RFCB.FileSize; + FileSizes.ValidDataLength = Fcb->RFCB.ValidDataLength; + + DPRINT("Attach FCB to File: Size %08x%08x\n", + Fcb->RFCB.ValidDataLength.HighPart, + Fcb->RFCB.ValidDataLength.LowPart); + CcInitializeCacheMap(FileObject, - (PCC_FILE_SIZES)(&Fcb->RFCB.AllocationSize), + &FileSizes, FALSE, &(CdfsGlobalData->CacheMgrCallbacks), Fcb); @@ -103,25 +112,65 @@ if ((ReadOffset % BLOCKSIZE) != 0 || (Length % BLOCKSIZE) != 0) { - return STATUS_INVALID_PARAMETER; - } - - if (ReadOffset + Length > ROUND_UP(Fcb->Entry.DataLengthL, BLOCKSIZE)) - Length = ROUND_UP(Fcb->Entry.DataLengthL, BLOCKSIZE) - ReadOffset; - - Status = CdfsReadSectors(DeviceExt->StorageDevice, - Fcb->Entry.ExtentLocationL + (ReadOffset / BLOCKSIZE), - Length / BLOCKSIZE, - Buffer, - FALSE); - if (NT_SUCCESS(Status)) - { - *LengthRead = Length; - if (Length + ReadOffset > Fcb->Entry.DataLengthL) - { - memset(Buffer + Fcb->Entry.DataLengthL - ReadOffset, - 0, - Length + ReadOffset - Fcb->Entry.DataLengthL); + /* Then we need to do a partial or misaligned read ... */ + PVOID PageBuf = ExAllocatePool(NonPagedPool, BLOCKSIZE); + PCHAR ReadInPage = (PCHAR)PageBuf + (ReadOffset & (BLOCKSIZE - 1)); + PCHAR TargetRead = (PCHAR)Buffer; + ULONG ActualReadOffset, EndOfExtent, ReadLen; + + if (!PageBuf) + { + return STATUS_NO_MEMORY; + } + + ActualReadOffset = ReadOffset & ~(BLOCKSIZE - 1); + EndOfExtent = ReadOffset + Length; + + while (ActualReadOffset < EndOfExtent) + { + Status = CdfsReadSectors + (DeviceExt->StorageDevice, + Fcb->Entry.ExtentLocationL + (ActualReadOffset / BLOCKSIZE), + 1, + PageBuf, + FALSE); + + if (!NT_SUCCESS(Status)) + break; + + ReadLen = BLOCKSIZE - (ActualReadOffset & (BLOCKSIZE - 1)); + if (ReadLen > EndOfExtent - ActualReadOffset) + { + ReadLen = EndOfExtent - ActualReadOffset; + } + + RtlCopyMemory(TargetRead, ReadInPage, ReadLen); + + ActualReadOffset += ReadLen; + TargetRead += ReadLen; + } + + ExFreePool(PageBuf); + } + else + { + if (ReadOffset + Length > ROUND_UP(Fcb->Entry.DataLengthL, BLOCKSIZE)) + Length = ROUND_UP(Fcb->Entry.DataLengthL, BLOCKSIZE) - ReadOffset; + + Status = CdfsReadSectors(DeviceExt->StorageDevice, + Fcb->Entry.ExtentLocationL + (ReadOffset / BLOCKSIZE), + Length / BLOCKSIZE, + Buffer, + FALSE); + if (NT_SUCCESS(Status)) + { + *LengthRead = Length; + if (Length + ReadOffset > Fcb->Entry.DataLengthL) + { + memset(Buffer + Fcb->Entry.DataLengthL - ReadOffset, + 0, + Length + ReadOffset - Fcb->Entry.DataLengthL); + } } }
16 years, 2 months
1
0
0
0
[arty] 36834: Commit up some stuff from cdfs. Misc merged from trunk and my overhaul of noncached read.
by arty@svn.reactos.org
Author: arty Date: Sun Oct 19 14:18:04 2008 New Revision: 36834 URL:
http://svn.reactos.org/svn/reactos?rev=36834&view=rev
Log: Commit up some stuff from cdfs. Misc merged from trunk and my overhaul of noncached read. Added: branches/arty-newcc/drivers/filesystems/cdfs/cdfs.xml - copied unchanged from r21065, trunk/reactos/drivers/fs/cdfs/cdfs.xml Modified: branches/arty-newcc/drivers/filesystems/cdfs/fsctl.c branches/arty-newcc/drivers/filesystems/cdfs/rw.c Modified: branches/arty-newcc/drivers/filesystems/cdfs/fsctl.c URL:
http://svn.reactos.org/svn/reactos/branches/arty-newcc/drivers/filesystems/…
============================================================================== --- branches/arty-newcc/drivers/filesystems/cdfs/fsctl.c [iso-8859-1] (original) +++ branches/arty-newcc/drivers/filesystems/cdfs/fsctl.c [iso-8859-1] Sun Oct 19 14:18:04 2008 @@ -331,8 +331,7 @@ Status = IoCreateDevice(CdfsGlobalData->DriverObject, sizeof(DEVICE_EXTENSION), NULL, - FILE_DEVICE_FILE_SYSTEM, -// FILE_DEVICE_DISK_FILE_SYSTEM, + FILE_DEVICE_CD_ROM_FILE_SYSTEM, 0, FALSE, &NewDeviceObject); Modified: branches/arty-newcc/drivers/filesystems/cdfs/rw.c URL:
http://svn.reactos.org/svn/reactos/branches/arty-newcc/drivers/filesystems/…
============================================================================== --- branches/arty-newcc/drivers/filesystems/cdfs/rw.c [iso-8859-1] (original) +++ branches/arty-newcc/drivers/filesystems/cdfs/rw.c [iso-8859-1] Sun Oct 19 14:18:04 2008 @@ -76,23 +76,14 @@ { LARGE_INTEGER FileOffset; IO_STATUS_BLOCK IoStatus; - CC_FILE_SIZES FileSizes; if (ReadOffset + Length > Fcb->Entry.DataLengthL) Length = Fcb->Entry.DataLengthL - ReadOffset; if (FileObject->PrivateCacheMap == NULL) { - FileSizes.AllocationSize = Fcb->RFCB.AllocationSize; - FileSizes.FileSize = Fcb->RFCB.FileSize; - FileSizes.ValidDataLength = Fcb->RFCB.ValidDataLength; - - DPRINT("Attach FCB to File: Size %08x%08x\n", - Fcb->RFCB.ValidDataLength.HighPart, - Fcb->RFCB.ValidDataLength.LowPart); - CcInitializeCacheMap(FileObject, - &FileSizes, + (PCC_FILE_SIZES)(&Fcb->RFCB.AllocationSize), FALSE, &(CdfsGlobalData->CacheMgrCallbacks), Fcb); @@ -112,65 +103,25 @@ if ((ReadOffset % BLOCKSIZE) != 0 || (Length % BLOCKSIZE) != 0) { - /* Then we need to do a partial or misaligned read ... */ - PVOID PageBuf = ExAllocatePool(NonPagedPool, BLOCKSIZE); - PCHAR ReadInPage = (PCHAR)PageBuf + (ReadOffset & (BLOCKSIZE - 1)); - PCHAR TargetRead = (PCHAR)Buffer; - ULONG ActualReadOffset, EndOfExtent, ReadLen; + return STATUS_INVALID_PARAMETER; + } - if (!PageBuf) - { - return STATUS_NO_MEMORY; - } + if (ReadOffset + Length > ROUND_UP(Fcb->Entry.DataLengthL, BLOCKSIZE)) + Length = ROUND_UP(Fcb->Entry.DataLengthL, BLOCKSIZE) - ReadOffset; - ActualReadOffset = ReadOffset & ~(BLOCKSIZE - 1); - EndOfExtent = ReadOffset + Length; - - while (ActualReadOffset < EndOfExtent) - { - Status = CdfsReadSectors - (DeviceExt->StorageDevice, - Fcb->Entry.ExtentLocationL + (ActualReadOffset / BLOCKSIZE), - 1, - PageBuf, - FALSE); - - if (!NT_SUCCESS(Status)) - break; - - ReadLen = BLOCKSIZE - (ActualReadOffset & (BLOCKSIZE - 1)); - if (ReadLen > EndOfExtent - ActualReadOffset) - { - ReadLen = EndOfExtent - ActualReadOffset; - } - - RtlCopyMemory(TargetRead, ReadInPage, ReadLen); - - ActualReadOffset += ReadLen; - TargetRead += ReadLen; - } - - ExFreePool(PageBuf); - } - else + Status = CdfsReadSectors(DeviceExt->StorageDevice, + Fcb->Entry.ExtentLocationL + (ReadOffset / BLOCKSIZE), + Length / BLOCKSIZE, + Buffer, + FALSE); + if (NT_SUCCESS(Status)) { - if (ReadOffset + Length > ROUND_UP(Fcb->Entry.DataLengthL, BLOCKSIZE)) - Length = ROUND_UP(Fcb->Entry.DataLengthL, BLOCKSIZE) - ReadOffset; - - Status = CdfsReadSectors(DeviceExt->StorageDevice, - Fcb->Entry.ExtentLocationL + (ReadOffset / BLOCKSIZE), - Length / BLOCKSIZE, - Buffer, - FALSE); - if (NT_SUCCESS(Status)) - { - *LengthRead = Length; - if (Length + ReadOffset > Fcb->Entry.DataLengthL) - { - memset(Buffer + Fcb->Entry.DataLengthL - ReadOffset, - 0, - Length + ReadOffset - Fcb->Entry.DataLengthL); - } + *LengthRead = Length; + if (Length + ReadOffset > Fcb->Entry.DataLengthL) + { + memset(Buffer + Fcb->Entry.DataLengthL - ReadOffset, + 0, + Length + ReadOffset - Fcb->Entry.DataLengthL); } }
16 years, 2 months
1
0
0
0
[sginsberg] 36833: - SVN maintenance
by sginsberg@svn.reactos.org
Author: sginsberg Date: Sun Oct 19 14:17:01 2008 New Revision: 36833 URL:
http://svn.reactos.org/svn/reactos?rev=36833&view=rev
Log: - SVN maintenance Modified: trunk/rostests/win32/kernel32/tests/CreateFile.c (props changed) trunk/rostests/win32/kernel32/tests/setup.c (props changed) Propchange: trunk/rostests/win32/kernel32/tests/CreateFile.c ------------------------------------------------------------------------------ --- svn:needs-lock (original) +++ svn:needs-lock (removed) @@ -1,1 +1,0 @@ -* Propchange: trunk/rostests/win32/kernel32/tests/setup.c ------------------------------------------------------------------------------ --- svn:needs-lock (original) +++ svn:needs-lock (removed) @@ -1,1 +1,0 @@ -*
16 years, 2 months
1
0
0
0
[sginsberg] 36832: - SVN maintenance
by sginsberg@svn.reactos.org
Author: sginsberg Date: Sun Oct 19 14:11:18 2008 New Revision: 36832 URL:
http://svn.reactos.org/svn/reactos?rev=36832&view=rev
Log: - SVN maintenance Modified: trunk/rosapps/drivers/ramdrv/ramdrv.c (props changed) trunk/rosapps/drivers/ramdrv/ramdrv.h (props changed) trunk/rosapps/drivers/ramdrv/ramdrv.rc (props changed) Propchange: trunk/rosapps/drivers/ramdrv/ramdrv.c ------------------------------------------------------------------------------ --- svn:needs-lock (original) +++ svn:needs-lock (removed) @@ -1,1 +1,0 @@ -* Propchange: trunk/rosapps/drivers/ramdrv/ramdrv.h ------------------------------------------------------------------------------ --- svn:needs-lock (original) +++ svn:needs-lock (removed) @@ -1,1 +1,0 @@ -* Propchange: trunk/rosapps/drivers/ramdrv/ramdrv.rc ------------------------------------------------------------------------------ --- svn:needs-lock (original) +++ svn:needs-lock (removed) @@ -1,1 +1,0 @@ -*
16 years, 2 months
1
0
0
0
[tkreuzer] 36831: Win32 structure cleanup (WIP): - remove DesktopHeapBase and DesktopHeapLimit from W32THREADINFO, use DESKTOPINFO members instead
by tkreuzer@svn.reactos.org
Author: tkreuzer Date: Sun Oct 19 12:35:22 2008 New Revision: 36831 URL:
http://svn.reactos.org/svn/reactos?rev=36831&view=rev
Log: Win32 structure cleanup (WIP): - remove DesktopHeapBase and DesktopHeapLimit from W32THREADINFO, use DESKTOPINFO members instead Modified: trunk/reactos/dll/win32/user32/include/user32.h trunk/reactos/include/reactos/win32k/ntuser.h trunk/reactos/subsystems/win32/win32k/ntuser/desktop.c trunk/reactos/subsystems/win32/win32k/ntuser/misc.c Modified: trunk/reactos/dll/win32/user32/include/user32.h URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/user32/include/u…
============================================================================== --- trunk/reactos/dll/win32/user32/include/user32.h [iso-8859-1] (original) +++ trunk/reactos/dll/win32/user32/include/user32.h [iso-8859-1] Sun Oct 19 12:35:22 2008 @@ -64,13 +64,14 @@ static __inline PVOID DesktopPtrToUser(PVOID Ptr) { - PW32THREADINFO ti = GetW32ThreadInfo(); + GetW32ThreadInfo(); PCLIENTINFO pci = GetWin32ClientInfo(); + PDESKTOPINFO pdi = pci->pDeskInfo; ASSERT(Ptr != NULL); - ASSERT(ti != NULL); - if ((ULONG_PTR)Ptr >= (ULONG_PTR)ti->DesktopHeapBase && - (ULONG_PTR)Ptr < (ULONG_PTR)ti->DesktopHeapBase + ti->DesktopHeapLimit) + ASSERT(pdi != NULL); + if ((ULONG_PTR)Ptr >= (ULONG_PTR)pdi->pvDesktopBase && + (ULONG_PTR)Ptr < (ULONG_PTR)pdi->pvDesktopLimit) { return (PVOID)((ULONG_PTR)Ptr - pci->ulClientDelta); } Modified: trunk/reactos/include/reactos/win32k/ntuser.h URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/include/reactos/win32k/ntu…
============================================================================== --- trunk/reactos/include/reactos/win32k/ntuser.h [iso-8859-1] (original) +++ trunk/reactos/include/reactos/win32k/ntuser.h [iso-8859-1] Sun Oct 19 12:35:22 2008 @@ -40,6 +40,8 @@ PVOID pvDesktopBase; PVOID pvDesktopLimit; + HANDLE hKernelHeap; + ULONG_PTR HeapLimit; HWND hTaskManWindow; HWND hProgmanWindow; HWND hShellWindow; @@ -312,8 +314,8 @@ PW32PROCESSINFO pi; /* [USER] */ PW32PROCESSINFO kpi; /* [KERNEL] */ PDESKTOPINFO Desktop; - PVOID DesktopHeapBase; - ULONG_PTR DesktopHeapLimit; +// PVOID DesktopHeapBase; +// ULONG_PTR DesktopHeapLimit; /* A mask of what hooks are currently active */ ULONG Hooks; CLIENTTHREADINFO ClientThreadInfo; @@ -351,7 +353,7 @@ DWORD dwCompatFlags; DWORD dwCompatFlags2; DWORD dwTIFlags; - PVOID pDeskInfo; + PDESKTOPINFO pDeskInfo; ULONG_PTR ulClientDelta; PHOOK phkCurrent; ULONG fsHooks; Modified: trunk/reactos/subsystems/win32/win32k/ntuser/desktop.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/nt…
============================================================================== --- trunk/reactos/subsystems/win32/win32k/ntuser/desktop.c [iso-8859-1] (original) +++ trunk/reactos/subsystems/win32/win32k/ntuser/desktop.c [iso-8859-1] Sun Oct 19 12:35:22 2008 @@ -895,7 +895,7 @@ SIZE_T DesktopInfoSize; UNICODE_STRING SafeDesktopName; ULONG DummyContext; - ULONG_PTR HeapLimit = 4 * 1024 * 1024; /* FIXME */ + ULONG_PTR HeapSize = 4 * 1024 * 1024; /* FIXME */ DECLARE_RETURN(HDESK); @@ -983,7 +983,7 @@ DesktopObject->DesktopHeapSection = NULL; DesktopObject->pheapDesktop = UserCreateHeap(&DesktopObject->DesktopHeapSection, &DesktopHeapSystemBase, - HeapLimit); + HeapSize); if (DesktopObject->pheapDesktop == NULL) { ObDereferenceObject(DesktopObject); @@ -1009,7 +1009,7 @@ DesktopInfoSize); DesktopObject->DesktopInfo->pvDesktopBase = DesktopHeapSystemBase; - DesktopObject->DesktopInfo->pvDesktopLimit = (PVOID)HeapLimit; + DesktopObject->DesktopInfo->pvDesktopLimit = (PVOID)((ULONG_PTR)DesktopHeapSystemBase + HeapSize); RtlCopyMemory(DesktopObject->DesktopInfo->szDesktopName, lpszDesktopName->Buffer, lpszDesktopName->Length); @@ -1771,8 +1771,6 @@ if (ti->Desktop == DesktopObject->DesktopInfo) { ti->Desktop = NULL; - ti->DesktopHeapBase = NULL; - ti->DesktopHeapLimit = 0; } } GetWin32ClientInfo()->ulClientDelta = 0; @@ -1853,8 +1851,6 @@ if (ti->Desktop == NULL) { ti->Desktop = DesktopObject->DesktopInfo; - ti->DesktopHeapBase = DesktopObject->pheapDesktop; - ti->DesktopHeapLimit = ViewSize; } } GetWin32ClientInfo()->ulClientDelta = DesktopHeapGetUserDelta(); @@ -1910,7 +1906,12 @@ /* Hack for system threads */ if (NtCurrentTeb()) { - GetWin32ClientInfo()->ulClientDelta = DesktopHeapGetUserDelta(); + PCLIENTINFO pci = GetWin32ClientInfo(); + pci->ulClientDelta = DesktopHeapGetUserDelta(); + if (DesktopObject) + { + pci->pDeskInfo = (PVOID)((ULONG_PTR)DesktopObject->DesktopInfo - pci->ulClientDelta); + } } if (OldDesktop != NULL && Modified: trunk/reactos/subsystems/win32/win32k/ntuser/misc.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/nt…
============================================================================== --- trunk/reactos/subsystems/win32/win32k/ntuser/misc.c [iso-8859-1] (original) +++ trunk/reactos/subsystems/win32/win32k/ntuser/misc.c [iso-8859-1] Sun Oct 19 12:35:22 2008 @@ -462,14 +462,10 @@ if (W32Thread->Desktop != NULL) { ti->Desktop = W32Thread->Desktop->DesktopInfo; - ti->DesktopHeapBase = W32Thread->Desktop->DesktopInfo->pvDesktopBase; - ti->DesktopHeapLimit = (ULONG_PTR)W32Thread->Desktop->DesktopInfo->pvDesktopLimit; } else { ti->Desktop = NULL; - ti->DesktopHeapBase = NULL; - ti->DesktopHeapLimit = 0; } W32Thread->ThreadInfo = ti;
16 years, 2 months
1
0
0
0
← Newer
1
...
26
27
28
29
30
31
32
...
52
Older →
Jump to page:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
Results per page:
10
25
50
100
200