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
June 2005
----- 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
22 participants
649 discussions
Start a n
N
ew thread
[hpoussin] 15749: Save DriverObject pointer to device extension
by hpoussin@svn.reactos.com
Save DriverObject pointer to device extension Use INTERFACE_TYPE type instead of ULONG Use OBJ_KERNEL_HANDLE when opening \Device\PhysicalMemory Modified: trunk/reactos/drivers/video/videoprt/resource.c Modified: trunk/reactos/drivers/video/videoprt/videoprt.c Modified: trunk/reactos/drivers/video/videoprt/videoprt.h _____ Modified: trunk/reactos/drivers/video/videoprt/resource.c --- trunk/reactos/drivers/video/videoprt/resource.c 2005-06-03 16:04:40 UTC (rev 15748) +++ trunk/reactos/drivers/video/videoprt/resource.c 2005-06-03 16:56:27 UTC (rev 15749) @@ -1,7 +1,7 @@ /* * VideoPort driver * - * Copyright (C) 2002, 2003, 2004 ReactOS Team + * Copyright (C) 2002 - 2005 ReactOS Team * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public @@ -43,7 +43,7 @@ RtlInitUnicodeString(&UnicodeString, L"\\Device\\PhysicalMemory"); InitializeObjectAttributes(&ObjAttribs, &UnicodeString, - OBJ_CASE_INSENSITIVE/* | OBJ_KERNEL_HANDLE*/, + OBJ_CASE_INSENSITIVE | OBJ_KERNEL_HANDLE, NULL, NULL); /* Open physical memory section */ _____ Modified: trunk/reactos/drivers/video/videoprt/videoprt.c --- trunk/reactos/drivers/video/videoprt/videoprt.c 2005-06-03 16:04:40 UTC (rev 15748) +++ trunk/reactos/drivers/video/videoprt/videoprt.c 2005-06-03 16:56:27 UTC (rev 15749) @@ -232,6 +232,7 @@ DeviceExtension = (PVIDEO_PORT_DEVICE_EXTENSION)((*DeviceObject)->DeviceExtension); DeviceExtension->DeviceNumber = DeviceNumber; + DeviceExtension->DriverObject = DriverObject; DeviceExtension->PhysicalDeviceObject = PhysicalDeviceObject; DeviceExtension->FunctionalDeviceObject = *DeviceObject; DeviceExtension->DriverExtension = DriverExtension; _____ Modified: trunk/reactos/drivers/video/videoprt/videoprt.h --- trunk/reactos/drivers/video/videoprt/videoprt.h 2005-06-03 16:04:40 UTC (rev 15748) +++ trunk/reactos/drivers/video/videoprt/videoprt.h 2005-06-03 16:56:27 UTC (rev 15749) @@ -84,6 +84,7 @@ typedef struct _VIDEO_PORT_DEVICE_EXTENSTION { ULONG DeviceNumber; + PDRIVER_OBJECT DriverObject; PDEVICE_OBJECT PhysicalDeviceObject; PDEVICE_OBJECT FunctionalDeviceObject; PDEVICE_OBJECT NextDeviceObject; @@ -94,7 +95,7 @@ ULONG InterruptVector; ULONG InterruptLevel; BOOLEAN InterruptShared; - ULONG AdapterInterfaceType; + INTERFACE_TYPE AdapterInterfaceType; ULONG SystemIoBusNumber; ULONG SystemIoSlotNumber; LIST_ENTRY AddressMappingListHead;
19 years, 6 months
1
0
0
0
[hbirr] 15748: Fixed the compiling with DBG set to 1.
by hbirr@svn.reactos.com
Fixed the compiling with DBG set to 1. Modified: trunk/reactos/drivers/usb/cromwell/core/config.c Modified: trunk/reactos/drivers/usb/cromwell/core/hub.c Modified: trunk/reactos/drivers/usb/cromwell/core/usb.c _____ Modified: trunk/reactos/drivers/usb/cromwell/core/config.c --- trunk/reactos/drivers/usb/cromwell/core/config.c 2005-06-03 12:30:09 UTC (rev 15747) +++ trunk/reactos/drivers/usb/cromwell/core/config.c 2005-06-03 16:04:40 UTC (rev 15748) @@ -453,8 +453,9 @@ /* configuration is */ result = usb_get_descriptor(dev, USB_DT_CONFIG, cfgno, buffer, 8); if (result < 8) { - if (result < 0) + if (result < 0) { err("unable to get descriptor"); + } else { err("config descriptor too short (expected %i, got %i)", 8, result); result = -EINVAL; _____ Modified: trunk/reactos/drivers/usb/cromwell/core/hub.c --- trunk/reactos/drivers/usb/cromwell/core/hub.c 2005-06-03 12:30:09 UTC (rev 15747) +++ trunk/reactos/drivers/usb/cromwell/core/hub.c 2005-06-03 16:04:40 UTC (rev 15748) @@ -289,9 +289,10 @@ int ret; ret = get_hub_status(dev, &hub->status->hub); - if (ret < 0) + if (ret < 0) { dev_err (hubdev (dev), "%s failed (err = %d)\n", __FUNCTION__, ret); + } else { *status = le16_to_cpu(hub->status->hub.wHubStatus); *change = le16_to_cpu(hub->status->hub.wHubChange); @@ -703,9 +704,10 @@ int ret; ret = get_port_status(dev, port + 1, &hub->status->port); - if (ret < 0) + if (ret < 0) { dev_err (hubdev (dev), "%s failed (err = %d)\n", __FUNCTION__, ret); + } else { *status = le16_to_cpu(hub->status->port.wPortStatus); *change = le16_to_cpu(hub->status->port.wPortChange); @@ -1115,8 +1117,9 @@ } /* end for i */ /* deal with hub status changes */ - if (hub_hub_status(hub, &hubstatus, &hubchange) < 0) + if (hub_hub_status(hub, &hubstatus, &hubchange) < 0) { dev_err (&hub->intf->dev, "get_hub_status failed\n"); + } else { if (hubchange & HUB_CHANGE_LOCAL_POWER) { dev_dbg (&hub->intf->dev, "power change\n"); @@ -1321,15 +1324,16 @@ ret = usb_get_device_descriptor(dev); if (ret < sizeof(dev->descriptor)) { - if (ret < 0) + if (ret < 0) { err("unable to get device %s descriptor " "(error=%d)", dev->devpath, ret); - else + } + else { err("USB device %s descriptor short read " "(expected %Zi, got %i)", dev->devpath, sizeof(dev->descriptor), ret); - + } clear_bit(dev->devnum, dev->bus->devmap.devicemap); dev->devnum = -1; return -EIO; _____ Modified: trunk/reactos/drivers/usb/cromwell/core/usb.c --- trunk/reactos/drivers/usb/cromwell/core/usb.c 2005-06-03 12:30:09 UTC (rev 15747) +++ trunk/reactos/drivers/usb/cromwell/core/usb.c 2005-06-03 16:04:40 UTC (rev 15748) @@ -275,12 +275,13 @@ return; // FIXME change API to report an error in this case - if (iface->driver) + if (iface->driver) { err ("%s driver booted %s off interface %p", driver->name, iface->driver->name, iface); - else + } + else { dbg("%s driver claimed interface %p", driver->name, iface); - + } iface->driver = driver; usb_set_intfdata(iface, priv); } @@ -1139,10 +1140,12 @@ } if (err < 8) { - if (err < 0) + if (err < 0) { dev_err(&dev->dev, "USB device not responding, giving up (error=%d)\n", err); - else + } + else { dev_err(&dev->dev, "USB device descriptor short read (expected %i, got %i)\n", 8, err); + } clear_bit(dev->devnum, dev->bus->devmap.devicemap); dev->devnum = -1; return 1; @@ -1156,11 +1159,13 @@ err = usb_get_device_descriptor(dev); if (err < (signed)sizeof(dev->descriptor)) { - if (err < 0) + if (err < 0) { dev_err(&dev->dev, "unable to get device descriptor (error=%d)\n", err); - else + } + else { dev_err(&dev->dev, "USB device descriptor short read (expected %Zi, got %i)\n", sizeof(dev->descriptor), err); + } clear_bit(dev->devnum, dev->bus->devmap.devicemap); dev->devnum = -1;
19 years, 6 months
1
0
0
0
[greatlrd] 15747: activate 32 to 32 bitblt code
by greatlrd@svn.reactos.com
activate 32 to 32 bitblt code Modified: trunk/reactos/subsys/win32k/dib/dib32bpp.c _____ Modified: trunk/reactos/subsys/win32k/dib/dib32bpp.c --- trunk/reactos/subsys/win32k/dib/dib32bpp.c 2005-06-03 12:03:44 UTC (rev 15746) +++ trunk/reactos/subsys/win32k/dib/dib32bpp.c 2005-06-03 12:30:09 UTC (rev 15747) @@ -305,8 +305,6 @@ BOOL UsesSource; BOOL UsesPattern; PULONG DestBits; - LONG DesmaxX, DesmaxY; - LONG SrcmaxX, SrcmaxY; switch (BltInfo->Rop4) { @@ -385,9 +383,7 @@ case BMF_1BPP: break; case BMF_4BPP: - break; - case BMF_8BPP: - break; + break; case BMF_16BPP: break; case BMF_24BPP: @@ -398,19 +394,22 @@ INT Sourcedelta; register PBYTE Destaddr; register PBYTE Srcaddr; + LONG DesmaxX, DesmaxY; + LONG SrcmaxX, SrcmaxY; + SrcmaxX = BltInfo->SourceSurface->sizlBitmap.cx - BltInfo->SourcePoint.x; SrcmaxY = BltInfo->SourceSurface->sizlBitmap.cy - BltInfo->SourcePoint.y; - /* calc the dst BMP size */ + DesmaxX = BltInfo->DestRect.right - BltInfo->DestRect.left; DesmaxY = BltInfo->DestRect.bottom - BltInfo->DestRect.top; - /* calc max X and Y size to blt */ + if (DesmaxX > SrcmaxX ) DesmaxX = SrcmaxX; if (DesmaxY > SrcmaxY ) DesmaxY = SrcmaxY; - /* do blt */ + Destdelta = BltInfo->DestSurface->lDelta; Sourcedelta = BltInfo->SourceSurface->lDelta; Destaddr = BltInfo->DestSurface->pvScan0 + BltInfo->DestRect.top * Destdelta + BltInfo->DestRect.left; @@ -427,8 +426,10 @@ } while (--DesmaxY); } + return TRUE; break; } + default: break;
19 years, 6 months
1
0
0
0
[hpoussin] 15746: Delete unneeded makefile
by hpoussin@svn.reactos.com
Delete unneeded makefile Deleted: trunk/reactos/drivers/input/i8042prt/makefile _____ Deleted: trunk/reactos/drivers/input/i8042prt/makefile --- trunk/reactos/drivers/input/i8042prt/makefile 2005-06-03 01:45:26 UTC (rev 15745) +++ trunk/reactos/drivers/input/i8042prt/makefile 2005-06-03 12:03:44 UTC (rev 15746) @@ -1,5 +0,0 @@ -# This file is automatically generated. - -TOP = ..\..\.. -DEFAULT = i8042prt -include $(TOP)/proxy.mak
19 years, 6 months
1
0
0
0
[blight] 15745: DIB_32BPP_BitBlt: Fix ROP4_SRCCOPY case for 32bpp.
by blight@svn.reactos.com
DIB_32BPP_BitBlt: Fix ROP4_SRCCOPY case for 32bpp. This file is ugly! Modified: trunk/reactos/subsys/win32k/dib/dib32bpp.c _____ Modified: trunk/reactos/subsys/win32k/dib/dib32bpp.c --- trunk/reactos/subsys/win32k/dib/dib32bpp.c 2005-06-03 01:18:02 UTC (rev 15744) +++ trunk/reactos/subsys/win32k/dib/dib32bpp.c 2005-06-03 01:45:26 UTC (rev 15745) @@ -393,9 +393,14 @@ case BMF_24BPP: break; case BMF_32BPP: - - SrcmaxX = BltInfo->SourceSurface->sizlBitmap.cx - BltInfo->SourcePoint.x; - SrcmaxY = BltInfo->SourceSurface->sizlBitmap.cy - BltInfo->SourcePoint.y; + { + INT Destdelta; + INT Sourcedelta; + register PBYTE Destaddr; + register PBYTE Srcaddr; + + SrcmaxX = BltInfo->SourceSurface->sizlBitmap.cx - BltInfo->SourcePoint.x; + SrcmaxY = BltInfo->SourceSurface->sizlBitmap.cy - BltInfo->SourcePoint.y; /* calc the dst BMP size */ DesmaxX = BltInfo->DestRect.right - BltInfo->DestRect.left; @@ -406,19 +411,24 @@ if (DesmaxY > SrcmaxY ) DesmaxY = SrcmaxY; /* do blt */ - INT Destdelta = BltInfo->DestSurface->lDelta; - INT Sourcedelta = BltInfo->SourceSurface->lDelta; - register PBYTE Destaddr = BltInfo->DestSurface->pvScan0 + BltInfo->DestRect.top * Destdelta + BltInfo->DestRect.left; - register PBYTE Srcaddr = BltInfo->SourceSurface->pvScan0 + BltInfo->SourcePoint.y * Sourcedelta + BltInfo->SourcePoint.x; + Destdelta = BltInfo->DestSurface->lDelta; + Sourcedelta = BltInfo->SourceSurface->lDelta; + Destaddr = BltInfo->DestSurface->pvScan0 + BltInfo->DestRect.top * Destdelta + BltInfo->DestRect.left; + Srcaddr = BltInfo->SourceSurface->pvScan0 + BltInfo->SourcePoint.y * Sourcedelta + BltInfo->SourcePoint.x; DesmaxX *= 4; - while (--DesmaxY) + if (DesmaxY > 0) { - RtlCopyMemory(Destaddr, Srcaddr, DesmaxX); - Destaddr += Destdelta; - Srcaddr += Sourcedelta; + do + { + RtlCopyMemory(Destaddr, Srcaddr, DesmaxX); + Destaddr += Destdelta; + Srcaddr += Sourcedelta; + } + while (--DesmaxY); } - break; + break; + } default: break;
19 years, 6 months
1
0
0
0
[greatlrd] 15744: blt fill did broke winquake fix it now.
by greatlrd@svn.reactos.com
blt fill did broke winquake fix it now. Modified: trunk/reactos/subsys/win32k/dib/dib32bpp.c _____ Modified: trunk/reactos/subsys/win32k/dib/dib32bpp.c --- trunk/reactos/subsys/win32k/dib/dib32bpp.c 2005-06-03 00:35:31 UTC (rev 15743) +++ trunk/reactos/subsys/win32k/dib/dib32bpp.c 2005-06-03 01:18:02 UTC (rev 15744) @@ -329,18 +329,17 @@ else { SourceX = ((BltInfo->DestRect.bottom - BltInfo->DestRect.top) * - BltInfo->DestRect.right) << 2; + BltInfo->DestRect.right); memset4(BltInfo->DestSurface->pvScan0 + BltInfo->DestRect.top * BltInfo->DestSurface->lDelta, 0x00000000, SourceX); } -#else - SourceX = (BltInfo->DestRect.right - BltInfo->DestRect.left) << 2; +#else for (DestY=BltInfo->DestRect.bottom-1;DestY>=BltInfo->DestRect.top;DestY--) { - DIB_32BPP_HLine(BltInfo->DestSurface, BltInfo->DestRect.bottom, SourceX, DestY, 0x00000000); + DIB_32BPP_HLine(BltInfo->DestSurface, BltInfo->DestRect.left, BltInfo->DestRect.right, DestY, 0x00000000); } #endif @@ -364,7 +363,7 @@ else { SourceX = ((BltInfo->DestRect.bottom - BltInfo->DestRect.top) * - BltInfo->DestRect.right) << 2; + BltInfo->DestRect.right); memset4(BltInfo->DestSurface->pvScan0 + BltInfo->DestRect.top * BltInfo->DestSurface->lDelta, 0xFFFFFFFF, SourceX); @@ -372,10 +371,9 @@ } #else - SourceX = (BltInfo->DestRect.right - BltInfo->DestRect.left) << 2; for (DestY=BltInfo->DestRect.bottom-1;DestY>=BltInfo->DestRect.top;DestY--) { - DIB_32BPP_HLine(BltInfo->DestSurface, BltInfo->DestRect.bottom, SourceX, DestY, 0xFFFFFFFF); + DIB_32BPP_HLine(BltInfo->DestSurface, BltInfo->DestRect.left, BltInfo->DestRect.left, DestY, 0xFFFFFFFF); } #endif return TRUE; @@ -395,6 +393,7 @@ case BMF_24BPP: break; case BMF_32BPP: + SrcmaxX = BltInfo->SourceSurface->sizlBitmap.cx - BltInfo->SourcePoint.x; SrcmaxY = BltInfo->SourceSurface->sizlBitmap.cy - BltInfo->SourcePoint.y;
19 years, 6 months
1
0
0
0
[greatlrd] 15743: thx agein blight and alex.
by greatlrd@svn.reactos.com
thx agein blight and alex. we got alot faster blt for source copy for 32bpp to 32bpp now. Modified: trunk/reactos/subsys/win32k/dib/dib32bpp.c _____ Modified: trunk/reactos/subsys/win32k/dib/dib32bpp.c --- trunk/reactos/subsys/win32k/dib/dib32bpp.c 2005-06-03 00:10:18 UTC (rev 15742) +++ trunk/reactos/subsys/win32k/dib/dib32bpp.c 2005-06-03 00:35:31 UTC (rev 15743) @@ -305,6 +305,8 @@ BOOL UsesSource; BOOL UsesPattern; PULONG DestBits; + LONG DesmaxX, DesmaxY; + LONG SrcmaxX, SrcmaxY; switch (BltInfo->Rop4) { @@ -378,7 +380,52 @@ #endif return TRUE; break; + case ROP4_SRCCOPY: + // return(Source); + switch (BltInfo->SourceSurface->iBitmapFormat) + { + case BMF_1BPP: + break; + case BMF_4BPP: + break; + case BMF_8BPP: + break; + case BMF_16BPP: + break; + case BMF_24BPP: + break; + case BMF_32BPP: + SrcmaxX = BltInfo->SourceSurface->sizlBitmap.cx - BltInfo->SourcePoint.x; + SrcmaxY = BltInfo->SourceSurface->sizlBitmap.cy - BltInfo->SourcePoint.y; + + /* calc the dst BMP size */ + DesmaxX = BltInfo->DestRect.right - BltInfo->DestRect.left; + DesmaxY = BltInfo->DestRect.bottom - BltInfo->DestRect.top; + + /* calc max X and Y size to blt */ + if (DesmaxX > SrcmaxX ) DesmaxX = SrcmaxX; + if (DesmaxY > SrcmaxY ) DesmaxY = SrcmaxY; + + /* do blt */ + INT Destdelta = BltInfo->DestSurface->lDelta; + INT Sourcedelta = BltInfo->SourceSurface->lDelta; + register PBYTE Destaddr = BltInfo->DestSurface->pvScan0 + BltInfo->DestRect.top * Destdelta + BltInfo->DestRect.left; + register PBYTE Srcaddr = BltInfo->SourceSurface->pvScan0 + BltInfo->SourcePoint.y * Sourcedelta + BltInfo->SourcePoint.x; + + DesmaxX *= 4; + while (--DesmaxY) + { + RtlCopyMemory(Destaddr, Srcaddr, DesmaxX); + Destaddr += Destdelta; + Srcaddr += Sourcedelta; + } + break; + default: + break; + } + break; + default: break; }
19 years, 6 months
1
0
0
0
[greatlrd] 15742: sorry wrong optimze for black and white fixing the start menu
by greatlrd@svn.reactos.com
sorry wrong optimze for black and white fixing the start menu Modified: trunk/reactos/subsys/win32k/dib/dib32bpp.c _____ Modified: trunk/reactos/subsys/win32k/dib/dib32bpp.c --- trunk/reactos/subsys/win32k/dib/dib32bpp.c 2005-06-02 22:14:53 UTC (rev 15741) +++ trunk/reactos/subsys/win32k/dib/dib32bpp.c 2005-06-03 00:10:18 UTC (rev 15742) @@ -310,15 +310,14 @@ { case ROP4_BLACKNESS: //return(0x00000000); + #ifdef _M_IX86 if (BltInfo->DestRect.left!=0) { - SourceX = (BltInfo->DestRect.right - BltInfo->DestRect.left) ; - if (SourceX<=0) return TRUE; - + SourceX = (BltInfo->DestRect.right - BltInfo->DestRect.left) << 2; for (DestY=BltInfo->DestRect.bottom-1;DestY>=BltInfo->DestRect.top;DestY--) - { + { memset4( (PDWORD) (BltInfo->DestSurface->pvScan0 + DestY * BltInfo->DestSurface->lDelta + BltInfo->DestRect.left), 0x00000000, SourceX); @@ -326,20 +325,21 @@ } else - { - - SourceX = ((BltInfo->DestRect.bottom - BltInfo->DestRect.top) * - BltInfo->DestRect.right) ; + { + SourceX = ((BltInfo->DestRect.bottom - BltInfo->DestRect.top) * + BltInfo->DestRect.right) << 2; - if (SourceX<=0) return TRUE; - memset4( (PDWORD) (BltInfo->DestSurface->pvScan0 + BltInfo->DestRect.top * - BltInfo->DestSurface->lDelta), 0x00000000, SourceX); + memset4(BltInfo->DestSurface->pvScan0 + BltInfo->DestRect.top * + BltInfo->DestSurface->lDelta, 0x00000000, SourceX); + + } -#else - for (DestY=BltInfo->DestRect.bottom-1;DestY>=BltInfo->DestRect.top;DestY--) - { +#else + SourceX = (BltInfo->DestRect.right - BltInfo->DestRect.left) << 2; + for (DestY=BltInfo->DestRect.bottom-1;DestY>=BltInfo->DestRect.top;DestY--) + { DIB_32BPP_HLine(BltInfo->DestSurface, BltInfo->DestRect.bottom, SourceX, DestY, 0x00000000); - } + } #endif return TRUE; @@ -347,13 +347,10 @@ case ROP4_WHITENESS: //return(0xFFFFFFFF); - SourceX = ((BltInfo->DestRect.bottom - BltInfo->DestRect.top) * BltInfo->DestRect.right) ; - if (SourceX<=0) return TRUE; - -#ifdef _M_IX86 - - if ( BltInfo->DestRect.left!=0) - { +#ifdef _M_IX86 + if (BltInfo->DestRect.left!=0) + { + SourceX = (BltInfo->DestRect.right - BltInfo->DestRect.left) << 2; for (DestY=BltInfo->DestRect.bottom-1;DestY>=BltInfo->DestRect.top;DestY--) { memset4( (PDWORD) (BltInfo->DestSurface->pvScan0 + DestY * @@ -361,19 +358,24 @@ BltInfo->DestRect.left), 0xFFFFFFFF, SourceX); } - } + } else - { - memset4( (PDWORD) (BltInfo->DestSurface->pvScan0 + BltInfo->DestRect.top * - BltInfo->DestSurface->lDelta), 0xFFFFFFFF, SourceX); + { + SourceX = ((BltInfo->DestRect.bottom - BltInfo->DestRect.top) * + BltInfo->DestRect.right) << 2; + + memset4(BltInfo->DestSurface->pvScan0 + BltInfo->DestRect.top * + BltInfo->DestSurface->lDelta, 0xFFFFFFFF, SourceX); + + } #else - for (DestY=BltInfo->DestRect.bottom-1;DestY>=BltInfo->DestRect.top;DestY--) - { + SourceX = (BltInfo->DestRect.right - BltInfo->DestRect.left) << 2; + for (DestY=BltInfo->DestRect.bottom-1;DestY>=BltInfo->DestRect.top;DestY--) + { DIB_32BPP_HLine(BltInfo->DestSurface, BltInfo->DestRect.bottom, SourceX, DestY, 0xFFFFFFFF); - } + } #endif - return TRUE; break;
19 years, 6 months
1
0
0
0
[mf] 15741: Sync from Wine - Henning Gerhardt <henning.gerhardt@web.de>: Update German resource files
by mf@svn.reactos.com
Sync from Wine - Henning Gerhardt <henning.gerhardt(a)web.de>: Update German resource files Modified: trunk/reactos/subsys/system/winefile/de.rc _____ Modified: trunk/reactos/subsys/system/winefile/de.rc --- trunk/reactos/subsys/system/winefile/de.rc 2005-06-02 22:09:06 UTC (rev 15740) +++ trunk/reactos/subsys/system/winefile/de.rc 2005-06-02 22:14:53 UTC (rev 15741) @@ -195,7 +195,7 @@ CONTROL "Vers&teckte/Systemdateien anzeigen",IDC_VIEW_TYPE_HIDDEN, "Button",BS_AUTOCHECKBOX | WS_TABSTOP,7,81,106,9 DEFPUSHBUTTON "OK",IDOK,104,7,50,14 - PUSHBUTTON "Cancel",IDCANCEL,104,24,50,14 + PUSHBUTTON "Abbrechen",IDCANCEL,104,24,50,14 END
19 years, 6 months
1
0
0
0
[mf] 15740: convert info strings to UTF-16
by mf@svn.reactos.com
convert info strings to UTF-16 Modified: trunk/reactos/subsys/system/winefile/winefile.c _____ Modified: trunk/reactos/subsys/system/winefile/winefile.c --- trunk/reactos/subsys/system/winefile/winefile.c 2005-06-02 21:39:00 UTC (rev 15739) +++ trunk/reactos/subsys/system/winefile/winefile.c 2005-06-02 22:09:06 UTC (rev 15740) @@ -1847,15 +1847,23 @@ for(p=InfoStrings; *p; ++p) { TCHAR subblock[200]; +#ifdef UNICODE + TCHAR infoStr[100]; +#endif LPCTSTR pTxt; UINT nValLen; LPCSTR pInfoString = *p; - wsprintf(subblock, sStringFileInfo, pTranslate->wLanguage, pTranslate->wCodePage, pInfoString); +#ifdef UNICODE + MultiByteToWideChar(CP_ACP, 0, pInfoString, -1, infoStr, 100); +#else +#define infoStr pInfoString +#endif + wsprintf(subblock, sStringFileInfo, pTranslate->wLanguage, pTranslate->wCodePage, infoStr); /* Retrieve file description for language and code page */ if (VerQueryValue(dlg->pVersionData, subblock, (PVOID)&pTxt, &nValLen)) { - int idx = ListBox_AddString(hlbox, pInfoString); + int idx = ListBox_AddString(hlbox, infoStr); ListBox_SetItemData(hlbox, idx, pTxt); } }
19 years, 6 months
1
0
0
0
← Newer
1
...
59
60
61
62
63
64
65
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
53
54
55
56
57
58
59
60
61
62
63
64
65
Results per page:
10
25
50
100
200