winehq.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
2025
June
May
April
March
February
January
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
January
2003
December
November
October
September
August
July
June
May
April
March
February
January
2002
December
November
October
September
August
July
June
May
April
March
February
January
2001
December
November
October
September
August
July
June
May
April
March
February
List overview
wine-commits
September 2011
----- 2025 -----
June 2025
May 2025
April 2025
March 2025
February 2025
January 2025
----- 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
January 2004
----- 2003 -----
December 2003
November 2003
October 2003
September 2003
August 2003
July 2003
June 2003
May 2003
April 2003
March 2003
February 2003
January 2003
----- 2002 -----
December 2002
November 2002
October 2002
September 2002
August 2002
July 2002
June 2002
May 2002
April 2002
March 2002
February 2002
January 2002
----- 2001 -----
December 2001
November 2001
October 2001
September 2001
August 2001
July 2001
June 2001
May 2001
April 2001
March 2001
February 2001
wine-commits@winehq.org
2 participants
996 discussions
Start a n
N
ew thread
Alexandre Julliard : winex11: Get rid of the no longer used RLE support.
by Alexandre Julliard
06 Sep '11
06 Sep '11
Module: wine Branch: master Commit: cd7ccebb9b0c2f3f7bd6f718027bbb5070731914 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=cd7ccebb9b0c2f3f7bd6f7180…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Tue Sep 6 14:48:37 2011 +0200 winex11: Get rid of the no longer used RLE support. --- dlls/winex11.drv/dib.c | 261 ++---------------------------------------------- 1 files changed, 8 insertions(+), 253 deletions(-) Diff:
http://source.winehq.org/git/wine.git/?a=commitdiff;h=cd7ccebb9b0c2f3f7bd6f…
1
0
0
0
Alexandre Julliard : gdi32: Add RLE support in SetDIBitsToDevice.
by Alexandre Julliard
06 Sep '11
06 Sep '11
Module: wine Branch: master Commit: 6ae21b934595dd286aa3a0a088650ad88e7a671e URL:
http://source.winehq.org/git/wine.git/?a=commit;h=6ae21b934595dd286aa3a0a08…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Tue Sep 6 14:36:27 2011 +0200 gdi32: Add RLE support in SetDIBitsToDevice. --- dlls/gdi32/dib.c | 66 +++++++++---- dlls/gdi32/tests/bitmap.c | 222 +++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 268 insertions(+), 20 deletions(-) Diff:
http://source.winehq.org/git/wine.git/?a=commitdiff;h=6ae21b934595dd286aa3a…
1
0
0
0
Alexandre Julliard : winex11: Get rid of the SetDIBitsToDevice implementation.
by Alexandre Julliard
06 Sep '11
06 Sep '11
Module: wine Branch: master Commit: 3a260497be246f93c8b2891dba9c6fcee4ad5d13 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=3a260497be246f93c8b2891db…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Tue Sep 6 14:44:11 2011 +0200 winex11: Get rid of the SetDIBitsToDevice implementation. --- dlls/gdi32/tests/bitmap.c | 16 ++++- dlls/winex11.drv/dib.c | 135 --------------------------------------------- dlls/winex11.drv/init.c | 2 +- dlls/winex11.drv/x11drv.h | 2 - 4 files changed, 14 insertions(+), 141 deletions(-) diff --git a/dlls/gdi32/tests/bitmap.c b/dlls/gdi32/tests/bitmap.c index a2dbfd9..a66113c 100644 --- a/dlls/gdi32/tests/bitmap.c +++ b/dlls/gdi32/tests/bitmap.c @@ -929,7 +929,12 @@ static void test_dib_formats(void) "SetDIBits succeeded for %u/%u/%u\n", bpp, planes, compr ); ret = SetDIBitsToDevice( memdc, 0, 0, 1, 1, 0, 0, 0, 1, data, bi, DIB_RGB_COLORS ); if (expect_ok) - ok( ret, "SetDIBitsToDevice failed for %u/%u/%u\n", bpp, planes, compr ); + { + if (todo) + todo_wine ok( ret, "SetDIBitsToDevice failed for %u/%u/%u\n", bpp, planes, compr ); + else + ok( ret, "SetDIBitsToDevice failed for %u/%u/%u\n", bpp, planes, compr ); + } else ok( !ret || broken((bpp == 4 && compr == BI_RLE4) || (bpp == 8 && compr == BI_RLE8)), /* nt4 */ @@ -978,7 +983,12 @@ static void test_dib_formats(void) ok( !ret, "SetDIBits succeeded for %u/%u/%u\n", bpp, planes, compr ); ret = SetDIBitsToDevice( memdc, 0, 0, 1, 1, 0, 0, 0, 1, data, bi, DIB_RGB_COLORS ); if (expect_ok) - ok( ret, "SetDIBitsToDevice failed for %u/%u/%u\n", bpp, planes, compr ); + { + if (todo) + todo_wine ok( ret, "SetDIBitsToDevice failed for %u/%u/%u\n", bpp, planes, compr ); + else + ok( ret, "SetDIBitsToDevice failed for %u/%u/%u\n", bpp, planes, compr ); + } else ok( !ret, "SetDIBitsToDevice succeeded for %u/%u/%u\n", bpp, planes, compr ); ret = StretchDIBits( memdc, 0, 0, 1, 1, 0, 0, 1, 1, data, bi, DIB_RGB_COLORS, SRCCOPY ); @@ -1023,7 +1033,7 @@ static void test_dib_formats(void) ok( hdib != NULL, "CreateDIBitmap failed with null bitfields\n" ); DeleteObject( hdib ); ret = SetDIBitsToDevice( memdc, 0, 0, 1, 1, 0, 0, 0, 1, data, bi, DIB_RGB_COLORS ); - ok( ret, "SetDIBitsToDevice failed with null bitfields\n" ); + todo_wine ok( ret, "SetDIBitsToDevice failed with null bitfields\n" ); ret = StretchDIBits( memdc, 0, 0, 1, 1, 0, 0, 1, 1, data, bi, DIB_RGB_COLORS, SRCCOPY ); todo_wine ok( ret, "StretchDIBits failed with null bitfields\n" ); ret = GetDIBits(hdc, hbmp, 0, 2, data, bi, DIB_RGB_COLORS); diff --git a/dlls/winex11.drv/dib.c b/dlls/winex11.drv/dib.c index ba58f57..df68c2e 100644 --- a/dlls/winex11.drv/dib.c +++ b/dlls/winex11.drv/dib.c @@ -3713,141 +3713,6 @@ static int X11DRV_DIB_GetImageBits( const X11DRV_DIB_IMAGEBITS_DESCR *descr ) return lines; } -/************************************************************************* - * X11DRV_SetDIBitsToDevice - * - */ -INT X11DRV_SetDIBitsToDevice( PHYSDEV dev, INT xDest, INT yDest, DWORD cx, DWORD cy, - INT xSrc, INT ySrc, UINT startscan, UINT lines, LPCVOID bits, - BITMAPINFO *info, UINT coloruse ) -{ - X11DRV_PDEVICE *physDev = get_x11drv_dev( dev ); - X11DRV_DIB_IMAGEBITS_DESCR descr; - INT result; - LONG height; - BOOL top_down; - POINT pt; - int rop = X11DRV_XROPfunction[GetROP2(dev->hdc) - 1]; - - top_down = (info->bmiHeader.biHeight < 0); - height = abs( info->bmiHeader.biHeight ); - descr.infoBpp = info->bmiHeader.biBitCount; - descr.compression = info->bmiHeader.biCompression; - - pt.x = xDest; - pt.y = yDest; - LPtoDP(dev->hdc, &pt, 1); - if (GetLayout( dev->hdc ) & LAYOUT_RTL) pt.x -= cx - 1; - - if (!lines || (startscan >= height)) return 0; - if (!top_down && startscan + lines > height) lines = height - startscan; - - /* make xSrc,ySrc point to the upper-left corner, not the lower-left one, - * and clamp all values to fit inside [startscan,startscan+lines] - */ - if (ySrc + cy <= startscan + lines) - { - UINT y = startscan + lines - (ySrc + cy); - if (ySrc < startscan) cy -= (startscan - ySrc); - if (!top_down) - { - /* avoid getting unnecessary lines */ - ySrc = 0; - if (y >= lines) return 0; - lines -= y; - } - else - { - if (y >= lines) return lines; - ySrc = y; /* need to get all lines in top down mode */ - } - } - else - { - if (ySrc >= startscan + lines) return 0; - pt.y += ySrc + cy - (startscan + lines); - cy = startscan + lines - ySrc; - ySrc = 0; - if (cy > lines) cy = lines; - } - if (xSrc >= info->bmiHeader.biWidth) return lines; - if (xSrc + cx <= 0) return lines; - if (xSrc + cx >= info->bmiHeader.biWidth) cx = info->bmiHeader.biWidth - xSrc; - if (xSrc < 0) - { - pt.x -= xSrc; - cx += xSrc; - xSrc = 0; - } - if (!cx || !cy) return lines; - - /* Update the pixmap from the DIB section */ - X11DRV_LockDIBSection(physDev, DIB_Status_GdiMod); - - X11DRV_SetupGCForText( physDev ); /* To have the correct colors */ - wine_tsx11_lock(); - XSetFunction(gdi_display, physDev->gc, rop); - wine_tsx11_unlock(); - - switch (descr.infoBpp) - { - case 1: - case 4: - case 8: - descr.colorMap = (RGBQUAD *)X11DRV_DIB_BuildColorMap( - physDev, coloruse, - physDev->depth, info, &descr.nColorMap ); - if (!descr.colorMap) return 0; - descr.rMask = descr.gMask = descr.bMask = 0; - break; - case 15: - case 16: - descr.rMask = (descr.compression == BI_BITFIELDS) ? *(const DWORD *)info->bmiColors : 0x7c00; - descr.gMask = (descr.compression == BI_BITFIELDS) ? *((const DWORD *)info->bmiColors + 1) : 0x03e0; - descr.bMask = (descr.compression == BI_BITFIELDS) ? *((const DWORD *)info->bmiColors + 2) : 0x001f; - descr.colorMap = 0; - break; - - case 24: - case 32: - descr.rMask = (descr.compression == BI_BITFIELDS) ? *(const DWORD *)info->bmiColors : 0xff0000; - descr.gMask = (descr.compression == BI_BITFIELDS) ? *((const DWORD *)info->bmiColors + 1) : 0x00ff00; - descr.bMask = (descr.compression == BI_BITFIELDS) ? *((const DWORD *)info->bmiColors + 2) : 0x0000ff; - descr.colorMap = 0; - break; - } - - descr.physDev = physDev; - descr.bits = bits; - descr.image = NULL; - descr.palentry = NULL; - descr.lines = top_down ? -lines : lines; - descr.infoWidth = info->bmiHeader.biWidth; - descr.depth = physDev->depth; - descr.shifts = physDev->color_shifts; - descr.drawable = physDev->drawable; - descr.gc = physDev->gc; - descr.xSrc = xSrc; - descr.ySrc = ySrc; - descr.xDest = physDev->dc_rect.left + pt.x; - descr.yDest = physDev->dc_rect.top + pt.y; - descr.width = cx; - descr.height = cy; - descr.shm_mode = X11DRV_SHM_NONE; - descr.dibpitch = X11DRV_DIB_GetDIBWidthBytes( info->bmiHeader.biWidth, info->bmiHeader.biBitCount ); - descr.physBitmap = NULL; - - result = X11DRV_DIB_SetImageBits( &descr ); - - if (descr.infoBpp <= 8) - HeapFree(GetProcessHeap(), 0, descr.colorMap); - - /* Update the DIBSection of the pixmap */ - X11DRV_UnlockDIBSection(physDev, TRUE); - - return result; -} - /*********************************************************************** * X11DRV_DIB_DoCopyDIBSection */ diff --git a/dlls/winex11.drv/init.c b/dlls/winex11.drv/init.c index 111676c..95e0a0b 100644 --- a/dlls/winex11.drv/init.c +++ b/dlls/winex11.drv/init.c @@ -532,7 +532,7 @@ static const struct gdi_dc_funcs x11drv_funcs = X11DRV_SetDCBrushColor, /* pSetDCBrushColor */ X11DRV_SetDCPenColor, /* pSetDCPenColor */ X11DRV_SetDIBColorTable, /* pSetDIBColorTable */ - X11DRV_SetDIBitsToDevice, /* pSetDIBitsToDevice */ + NULL, /* pSetDIBitsToDevice */ X11DRV_SetDeviceClipping, /* pSetDeviceClipping */ X11DRV_SetDeviceGammaRamp, /* pSetDeviceGammaRamp */ NULL, /* pSetLayout */ diff --git a/dlls/winex11.drv/x11drv.h b/dlls/winex11.drv/x11drv.h index 69845d3..545182c 100644 --- a/dlls/winex11.drv/x11drv.h +++ b/dlls/winex11.drv/x11drv.h @@ -236,8 +236,6 @@ extern COLORREF X11DRV_SetDCPenColor( PHYSDEV dev, COLORREF crColor ) DECLSPEC_H extern void X11DRV_SetDeviceClipping( PHYSDEV dev, HRGN vis_rgn, HRGN clip_rgn ) DECLSPEC_HIDDEN; extern BOOL X11DRV_SetDeviceGammaRamp( PHYSDEV dev, LPVOID ramp ) DECLSPEC_HIDDEN; extern UINT X11DRV_SetDIBColorTable( PHYSDEV dev, UINT start, UINT count, const RGBQUAD *colors ) DECLSPEC_HIDDEN; -extern INT X11DRV_SetDIBitsToDevice( PHYSDEV dev, INT xDest, INT yDest, DWORD cx, DWORD cy, INT xSrc, INT ySrc, - UINT startscan, UINT lines, LPCVOID bits, BITMAPINFO *info, UINT coloruse ) DECLSPEC_HIDDEN; extern COLORREF X11DRV_SetPixel( PHYSDEV dev, INT x, INT y, COLORREF color ) DECLSPEC_HIDDEN; extern BOOL X11DRV_SetPixelFormat(PHYSDEV dev, int iPixelFormat, const PIXELFORMATDESCRIPTOR *ppfd) DECLSPEC_HIDDEN; extern COLORREF X11DRV_SetTextColor( PHYSDEV dev, COLORREF color ) DECLSPEC_HIDDEN;
1
0
0
0
Alexandre Julliard : gdi32: Add a SetDIBitsToDevice implementation in the null driver using PutImage.
by Alexandre Julliard
06 Sep '11
06 Sep '11
Module: wine Branch: master Commit: 6f275874f359dce37c38936ed78800c611121697 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=6f275874f359dce37c38936ed…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Tue Sep 6 13:27:03 2011 +0200 gdi32: Add a SetDIBitsToDevice implementation in the null driver using PutImage. --- dlls/gdi32/dib.c | 101 +++++++++++++++++++++++++++++++++++++++++++++ dlls/gdi32/driver.c | 7 --- dlls/gdi32/gdi_private.h | 3 + dlls/gdi32/tests/bitmap.c | 5 ++ 4 files changed, 109 insertions(+), 7 deletions(-) diff --git a/dlls/gdi32/dib.c b/dlls/gdi32/dib.c index 927a74f..c1de074 100644 --- a/dlls/gdi32/dib.c +++ b/dlls/gdi32/dib.c @@ -610,6 +610,107 @@ done: } +INT nulldrv_SetDIBitsToDevice( PHYSDEV dev, INT x_dst, INT y_dst, DWORD cx, DWORD cy, + INT x_src, INT y_src, UINT startscan, UINT lines, + const void *bits, BITMAPINFO *src_info, UINT coloruse ) +{ + DC *dc = get_nulldrv_dc( dev ); + char dst_buffer[FIELD_OFFSET( BITMAPINFO, bmiColors[256] )]; + BITMAPINFO *dst_info = (BITMAPINFO *)dst_buffer; + struct bitblt_coords src, dst; + struct gdi_image_bits src_bits; + DWORD err; + UINT height; + BOOL top_down; + POINT pt; + RECT rect; + + top_down = (src_info->bmiHeader.biHeight < 0); + height = abs( src_info->bmiHeader.biHeight ); + + src_bits.ptr = (void *)bits; + src_bits.is_copy = FALSE; + src_bits.free = NULL; + + if (coloruse == DIB_PAL_COLORS && !fill_color_table_from_palette( src_info, dev->hdc )) return 0; + + if (!lines || (startscan >= height)) return 0; + if (!top_down && lines > height - startscan) lines = height - startscan; + + /* map src to top-down coordinates with startscan as origin */ + src.x = x_src; + src.y = startscan + lines - (y_src + cy); + src.width = cx; + src.height = cy; + if (src.y > 0) + { + if (!top_down) + { + /* get rid of unnecessary lines */ + if (src.y >= lines) return 0; + lines -= src.y; + src.y = 0; + } + else if (src.y >= lines) return lines; + } + src_info->bmiHeader.biHeight = top_down ? -lines : lines; + + src.visrect.left = src.x; + src.visrect.top = src.y; + src.visrect.right = src.x + cx; + src.visrect.bottom = src.y + cy; + rect.left = 0; + rect.top = 0; + rect.right = src_info->bmiHeader.biWidth; + rect.bottom = abs( src_info->bmiHeader.biHeight ); + if (!intersect_rect( &src.visrect, &src.visrect, &rect )) return 0; + + pt.x = x_dst; + pt.y = y_dst; + LPtoDP( dev->hdc, &pt, 1 ); + dst.x = pt.x; + dst.y = pt.y; + dst.width = cx; + dst.height = cy; + if (GetLayout( dev->hdc ) & LAYOUT_RTL) dst.x -= cx - 1; + + dst.visrect.left = dst.x; + dst.visrect.top = dst.y; + dst.visrect.right = dst.x + cx; + dst.visrect.bottom = dst.y + cy; + if (get_clip_box( dc, &rect )) intersect_rect( &dst.visrect, &dst.visrect, &rect ); + + offset_rect( &src.visrect, dst.x - src.x, dst.y - src.y ); + intersect_rect( &rect, &src.visrect, &dst.visrect ); + src.visrect = dst.visrect = rect; + offset_rect( &src.visrect, src.x - dst.x, src.y - dst.y ); + if (is_rect_empty( &dst.visrect )) return lines; + + dev = GET_DC_PHYSDEV( dc, pPutImage ); + memcpy( dst_info, src_info, FIELD_OFFSET( BITMAPINFO, bmiColors[256] )); + err = dev->funcs->pPutImage( dev, 0, 0, dst_info, &src_bits, &src, &dst, SRCCOPY ); + if (err == ERROR_BAD_FORMAT) + { + void *ptr; + + dst_info->bmiHeader.biWidth = src.visrect.right - src.visrect.left; + ptr = HeapAlloc( GetProcessHeap(), 0, get_dib_image_size( dst_info )); + if (ptr) + { + err = convert_bitmapinfo( src_info, src_bits.ptr, &src, dst_info, ptr ); + if (src_bits.free) src_bits.free( &src_bits ); + src_bits.ptr = ptr; + src_bits.is_copy = TRUE; + src_bits.free = free_heap_bits; + if (!err) err = dev->funcs->pPutImage( dev, 0, 0, dst_info, &src_bits, &src, &dst, SRCCOPY ); + } + else err = ERROR_OUTOFMEMORY; + } + if (err) lines = 0; + if (src_bits.free) src_bits.free( &src_bits ); + return lines; +} + /*********************************************************************** * SetDIBitsToDevice (GDI32.@) */ diff --git a/dlls/gdi32/driver.c b/dlls/gdi32/driver.c index 6233525..5beb04d 100644 --- a/dlls/gdi32/driver.c +++ b/dlls/gdi32/driver.c @@ -502,13 +502,6 @@ static UINT nulldrv_SetDIBColorTable( PHYSDEV dev, UINT pos, UINT count, const R return 0; } -static INT nulldrv_SetDIBitsToDevice( PHYSDEV dev, INT x_dst, INT y_dst, DWORD width, DWORD height, - INT x_src, INT y_src, UINT start, UINT lines, - const void *bits, BITMAPINFO *info, UINT coloruse ) -{ - return 0; -} - static void nulldrv_SetDeviceClipping( PHYSDEV dev, HRGN vis_rgn, HRGN clip_rgn ) { } diff --git a/dlls/gdi32/gdi_private.h b/dlls/gdi32/gdi_private.h index 82dbc36..c4ed75a 100644 --- a/dlls/gdi32/gdi_private.h +++ b/dlls/gdi32/gdi_private.h @@ -499,6 +499,9 @@ extern INT nulldrv_SaveDC( PHYSDEV dev ) DECLSPEC_HIDDEN; extern BOOL nulldrv_ScaleViewportExtEx( PHYSDEV dev, INT x_num, INT x_denom, INT y_num, INT y_denom, SIZE *size ) DECLSPEC_HIDDEN; extern BOOL nulldrv_ScaleWindowExtEx( PHYSDEV dev, INT x_num, INT x_denom, INT y_num, INT y_denom, SIZE *size ) DECLSPEC_HIDDEN; extern BOOL nulldrv_SelectClipPath( PHYSDEV dev, INT mode ) DECLSPEC_HIDDEN; +extern INT nulldrv_SetDIBitsToDevice( PHYSDEV dev, INT x_dst, INT y_dst, DWORD width, DWORD height, + INT x_src, INT y_src, UINT start, UINT lines, + const void *bits, BITMAPINFO *info, UINT coloruse ) DECLSPEC_HIDDEN; extern INT nulldrv_SetMapMode( PHYSDEV dev, INT mode ) DECLSPEC_HIDDEN; extern BOOL nulldrv_SetViewportExtEx( PHYSDEV dev, INT cx, INT cy, SIZE *size ) DECLSPEC_HIDDEN; extern BOOL nulldrv_SetViewportOrgEx( PHYSDEV dev, INT x, INT y, POINT *pt ) DECLSPEC_HIDDEN; diff --git a/dlls/gdi32/tests/bitmap.c b/dlls/gdi32/tests/bitmap.c index 6a80232..a2dbfd9 100644 --- a/dlls/gdi32/tests/bitmap.c +++ b/dlls/gdi32/tests/bitmap.c @@ -4265,6 +4265,11 @@ static void test_SetDIBitsToDevice(void) for (i = 0; i < 64; i++) ok( dib_bits[i] == 0xaaaaaaaa, "%d: got %08x\n", i, dib_bits[i] ); memset( dib_bits, 0xaa, 64 * 4 ); + ret = SetDIBitsToDevice( hdc, 0, 2, 8, 4, 0, -1, 3, 12, data, info, DIB_RGB_COLORS ); + ok( ret == 0, "got %d\n", ret ); + for (i = 0; i < 64; i++) ok( dib_bits[i] == 0xaaaaaaaa, "%d: got %08x\n", i, dib_bits[i] ); + memset( dib_bits, 0xaa, 64 * 4 ); + SetMapMode( hdc, MM_ANISOTROPIC ); SetWindowExtEx( hdc, 3, 3, NULL ); ret = SetDIBitsToDevice( hdc, 2, 2, 2, 2, 1, 2, 1, 5, data, info, DIB_RGB_COLORS );
1
0
0
0
André Hentschel : dbghelp: Add some new dwarf enumerations.
by Alexandre Julliard
06 Sep '11
06 Sep '11
Module: wine Branch: master Commit: 650e000bc99ee8928ed4bd83e8df78a15a618e40 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=650e000bc99ee8928ed4bd83e…
Author: André Hentschel <nerv(a)dawncrow.de> Date: Mon Sep 5 20:55:30 2011 +0200 dbghelp: Add some new dwarf enumerations. --- dlls/dbghelp/dwarf.h | 13 ++++++++++++- 1 files changed, 12 insertions(+), 1 deletions(-) diff --git a/dlls/dbghelp/dwarf.h b/dlls/dbghelp/dwarf.h index 0605da3..683d4e1 100644 --- a/dlls/dbghelp/dwarf.h +++ b/dlls/dbghelp/dwarf.h @@ -282,7 +282,13 @@ typedef enum dwarf_type_e DW_ATE_unsigned = 0x7, DW_ATE_unsigned_char = 0x8, /* Dwarf3 new values */ - DW_ATE_imaginary_float = 0x9 + DW_ATE_imaginary_float = 0x9, + DW_ATE_packed_decimal = 0xa, + DW_ATE_numeric_string = 0xb, + DW_ATE_edited = 0xc, + DW_ATE_signed_fixed = 0xd, + DW_ATE_unsigned_fixed = 0xe, + DW_ATE_decimal_float = 0xf, } dwarf_type_t; typedef enum dwarf_operation_e @@ -454,6 +460,11 @@ typedef enum dwarf_operation_e DW_OP_GNU_encoded_addr = 0xf1, DW_OP_GNU_implicit_pointer = 0xf2, DW_OP_GNU_entry_value = 0xf3, + DW_OP_GNU_const_type = 0xf4, + DW_OP_GNU_regval_type = 0xf5, + DW_OP_GNU_deref_type = 0xf6, + DW_OP_GNU_convert = 0xf7, + DW_OP_GNU_reinterpret = 0xf9, } dwarf_operation_t; enum dwarf_calling_convention
1
0
0
0
Christian Costa : attrib: Move implementation from cmd. exe to the standalone command.
by Alexandre Julliard
06 Sep '11
06 Sep '11
Module: wine Branch: master Commit: 7b41ffbf61cb849b3486188f19bf0557d79c0a18 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=7b41ffbf61cb849b3486188f1…
Author: Christian Costa <titan.costa(a)wanadoo.fr> Date: Tue Sep 6 09:35:02 2011 +0200 attrib: Move implementation from cmd.exe to the standalone command. --- configure | 2 +- configure.ac | 2 +- po/ar.po | 45 ++++++++--- po/bg.po | 45 ++++++++--- po/ca.po | 43 ++++++++--- po/cs.po | 43 ++++++++--- po/da.po | 47 ++++++++--- po/de.po | 47 ++++++++--- po/el.po | 45 ++++++++--- po/en.po | 47 ++++++++--- po/en_US.po | 66 ++++++++++++--- po/eo.po | 45 ++++++++--- po/es.po | 47 ++++++++--- po/fa.po | 45 ++++++++--- po/fi.po | 45 ++++++++--- po/fr.po | 47 ++++++++--- po/he.po | 47 ++++++++--- po/hi.po | 43 ++++++++--- po/hu.po | 45 ++++++++--- po/it.po | 47 ++++++++--- po/ja.po | 47 ++++++++--- po/ko.po | 47 ++++++++--- po/lt.po | 47 ++++++++--- po/ml.po | 43 ++++++++--- po/nb_NO.po | 49 ++++++++--- po/nl.po | 47 ++++++++--- po/or.po | 43 ++++++++--- po/pa.po | 43 ++++++++--- po/pl.po | 47 ++++++++--- po/pt_BR.po | 47 ++++++++--- po/pt_PT.po | 49 ++++++++--- po/rm.po | 45 ++++++++--- po/ro.po | 47 ++++++++--- po/ru.po | 47 ++++++++--- po/sk.po | 45 ++++++++--- po/sl.po | 49 ++++++++--- po/sr_RS(a)cyrillic.po | 45 ++++++++--- po/sr_RS(a)latin.po | 45 ++++++++--- po/sv.po | 47 ++++++++--- po/te.po | 43 ++++++++--- po/th.po | 45 ++++++++--- po/tr.po | 49 ++++++++--- po/uk.po | 47 ++++++++--- po/wa.po | 45 ++++++++--- po/wine.pot | 43 ++++++++--- po/zh_CN.po | 43 ++++++++--- po/zh_TW.po | 45 ++++++++--- programs/attrib/Makefile.in | 4 + programs/attrib/attrib.c | 190 +++++++++++++++++++++++++++++++++++++++++-- programs/attrib/attrib.h | 28 +++++++ programs/attrib/attrib.rc | 49 +++++++++++ programs/cmd/builtins.c | 83 ------------------- programs/cmd/wcmd.h | 1 - programs/cmd/wcmdmain.c | 3 - 54 files changed, 1831 insertions(+), 609 deletions(-) Diff:
http://source.winehq.org/git/wine.git/?a=commitdiff;h=7b41ffbf61cb849b34861…
1
0
0
0
Alexandre Julliard : qcap: Include system headers before Windows headers.
by Alexandre Julliard
06 Sep '11
06 Sep '11
Module: wine Branch: master Commit: b870cd1a162e84accbce1255be2394915214c0bf URL:
http://source.winehq.org/git/wine.git/?a=commit;h=b870cd1a162e84accbce1255b…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Tue Sep 6 12:12:05 2011 +0200 qcap: Include system headers before Windows headers. --- dlls/qcap/v4l.c | 29 ++++++++++++++--------------- 1 files changed, 14 insertions(+), 15 deletions(-) diff --git a/dlls/qcap/v4l.c b/dlls/qcap/v4l.c index fadcd49..a7995e2 100644 --- a/dlls/qcap/v4l.c +++ b/dlls/qcap/v4l.c @@ -24,29 +24,14 @@ #include "config.h" #include "wine/port.h" -#include "wine/library.h" #define NONAMELESSSTRUCT #define NONAMELESSUNION #define COBJMACROS #include <stdarg.h> -#include "windef.h" -#include "winbase.h" -#include "wtypes.h" -#include "wingdi.h" -#include "winuser.h" -#include "dshow.h" -#include "vfwmsgs.h" -#include "amvideo.h" -#include "wine/debug.h" - -#include "capture.h" -#include "qcap_main.h" - #include <stdio.h> #include <fcntl.h> - #ifdef HAVE_SYS_IOCTL_H #include <sys/ioctl.h> #endif @@ -69,6 +54,20 @@ #include <unistd.h> #endif +#include "windef.h" +#include "winbase.h" +#include "wtypes.h" +#include "wingdi.h" +#include "winuser.h" +#include "dshow.h" +#include "vfwmsgs.h" +#include "amvideo.h" +#include "wine/debug.h" +#include "wine/library.h" + +#include "capture.h" +#include "qcap_main.h" + WINE_DEFAULT_DEBUG_CHANNEL(qcap_v4l); #ifdef HAVE_LINUX_VIDEODEV_H
1
0
0
0
Alexandre Julliard : openal32: Include system headers before Windows headers.
by Alexandre Julliard
06 Sep '11
06 Sep '11
Module: wine Branch: master Commit: 34a7180caf14fe7006b66e5da94b076e1713182d URL:
http://source.winehq.org/git/wine.git/?a=commit;h=34a7180caf14fe7006b66e5da…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Tue Sep 6 12:11:55 2011 +0200 openal32: Include system headers before Windows headers. --- dlls/openal32/openal.c | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dlls/openal32/openal.c b/dlls/openal32/openal.c index 9e0a8f2..6a8e8f1 100644 --- a/dlls/openal32/openal.c +++ b/dlls/openal32/openal.c @@ -25,10 +25,6 @@ #include <stdarg.h> #include <string.h> -#include "windef.h" -#include "winbase.h" -#include "wine/debug.h" - #ifdef HAVE_AL_AL_H #include <AL/al.h> #include <AL/alc.h> @@ -37,6 +33,10 @@ #include <OpenAL/alc.h> #endif +#include "windef.h" +#include "winbase.h" +#include "wine/debug.h" + WINE_DEFAULT_DEBUG_CHANNEL(openal32); static ALCboolean (ALC_APIENTRY*alcSetThreadContext)(ALCcontext *context);
1
0
0
0
Alexandre Julliard : kernel32: Include system headers before Windows headers.
by Alexandre Julliard
06 Sep '11
06 Sep '11
Module: wine Branch: master Commit: 3e4a9cb4d4cb0431546a3af94c9a4091e95a7a04 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=3e4a9cb4d4cb0431546a3af94…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Tue Sep 6 12:11:46 2011 +0200 kernel32: Include system headers before Windows headers. --- dlls/kernel32/process.c | 10 +++++++--- 1 files changed, 7 insertions(+), 3 deletions(-) diff --git a/dlls/kernel32/process.c b/dlls/kernel32/process.c index b0eba7c..3c6ae63 100644 --- a/dlls/kernel32/process.c +++ b/dlls/kernel32/process.c @@ -41,6 +41,13 @@ # include <sys/prctl.h> #endif #include <sys/types.h> +#ifdef HAVE_UNISTD_H +# include <unistd.h> +#endif +#ifdef __APPLE__ +#include <CoreFoundation/CoreFoundation.h> +#include <pthread.h> +#endif #include "ntstatus.h" #define WIN32_NO_STATUS @@ -57,9 +64,6 @@ WINE_DECLARE_DEBUG_CHANNEL(file); WINE_DECLARE_DEBUG_CHANNEL(relay); #ifdef __APPLE__ -#include <CoreFoundation/CoreFoundation.h> -#include <pthread.h> -#include <unistd.h> extern char **__wine_get_main_environment(void); #else extern char **__wine_main_environ;
1
0
0
0
Alexandre Julliard : mountmgr.sys: Include system headers before Windows headers.
by Alexandre Julliard
06 Sep '11
06 Sep '11
Module: wine Branch: master Commit: 2fff57a5e7f501dbb736b4edb7903324dabccfcf URL:
http://source.winehq.org/git/wine.git/?a=commit;h=2fff57a5e7f501dbb736b4edb…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Tue Sep 6 12:11:41 2011 +0200 mountmgr.sys: Include system headers before Windows headers. --- dlls/mountmgr.sys/diskarb.c | 5 +++-- dlls/mountmgr.sys/hal.c | 7 ++++--- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/dlls/mountmgr.sys/diskarb.c b/dlls/mountmgr.sys/diskarb.c index d3912ca..9a7616e 100644 --- a/dlls/mountmgr.sys/diskarb.c +++ b/dlls/mountmgr.sys/diskarb.c @@ -26,6 +26,9 @@ #include <stdarg.h> #include <stdio.h> #include <sys/time.h> +#ifdef HAVE_DISKARBITRATION_DISKARBITRATION_H +#include <DiskArbitration/DiskArbitration.h> +#endif #include "mountmgr.h" #include "wine/debug.h" @@ -34,8 +37,6 @@ WINE_DEFAULT_DEBUG_CHANNEL(mountmgr); #ifdef HAVE_DISKARBITRATION_DISKARBITRATION_H -#include <DiskArbitration/DiskArbitration.h> - static void appeared_callback( DADiskRef disk, void *context ) { CFDictionaryRef dict = DADiskCopyDescription( disk ); diff --git a/dlls/mountmgr.sys/hal.c b/dlls/mountmgr.sys/hal.c index 82a70e9..d369879 100644 --- a/dlls/mountmgr.sys/hal.c +++ b/dlls/mountmgr.sys/hal.c @@ -26,6 +26,10 @@ #include <stdarg.h> #include <stdio.h> #include <sys/time.h> +#ifdef SONAME_LIBHAL +# include <dbus/dbus.h> +# include <hal/libhal.h> +#endif #include "mountmgr.h" #include "winnls.h" @@ -39,9 +43,6 @@ WINE_DEFAULT_DEBUG_CHANNEL(mountmgr); #ifdef SONAME_LIBHAL -#include <dbus/dbus.h> -#include <hal/libhal.h> - #define DBUS_FUNCS \ DO_FUNC(dbus_bus_get); \ DO_FUNC(dbus_connection_close); \
1
0
0
0
← Newer
1
...
83
84
85
86
87
88
89
...
100
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
Results per page:
10
25
50
100
200