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
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
July 2007
----- 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
3 participants
957 discussions
Start a n
N
ew thread
Paul Vriens : user32/tests: Use skip.
by Alexandre Julliard
04 Jul '07
04 Jul '07
Module: wine Branch: master Commit: 24123e8603eec0dd3dcbf8d942df219a747a35cf URL:
http://source.winehq.org/git/wine.git/?a=commit;h=24123e8603eec0dd3dcbf8d94…
Author: Paul Vriens <paul.vriens.wine(a)gmail.com> Date: Tue Jul 3 14:50:06 2007 +0200 user32/tests: Use skip. --- dlls/user32/tests/wsprintf.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/dlls/user32/tests/wsprintf.c b/dlls/user32/tests/wsprintf.c index 6ca3ae7..c0ca1c6 100644 --- a/dlls/user32/tests/wsprintf.c +++ b/dlls/user32/tests/wsprintf.c @@ -44,7 +44,10 @@ static void wsprintfWTest(void) rc=wsprintfW(buf, fmt, -1); if (rc==0 && GetLastError()==ERROR_CALL_NOT_IMPLEMENTED) + { + skip("wsprintfW is not implemented\n"); return; + } ok(rc == 10, "wsPrintfW length failure: rc=%d error=%d\n",rc,GetLastError()); ok((lstrcmpW(buf, target) == 0), "wsprintfW zero padded negative value failure\n");
1
0
0
0
Paul Vriens : user32/tests: Use skip.
by Alexandre Julliard
04 Jul '07
04 Jul '07
Module: wine Branch: master Commit: 918a2911bf2ee73016d67ab7657921d31774ca90 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=918a2911bf2ee73016d67ab76…
Author: Paul Vriens <paul.vriens.wine(a)gmail.com> Date: Tue Jul 3 14:45:09 2007 +0200 user32/tests: Use skip. --- dlls/user32/tests/winstation.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/dlls/user32/tests/winstation.c b/dlls/user32/tests/winstation.c index 9d64aa0..ac49d4a 100644 --- a/dlls/user32/tests/winstation.c +++ b/dlls/user32/tests/winstation.c @@ -250,7 +250,7 @@ START_TEST(winstation) GetProcessWindowStation(); if (GetLastError() == ERROR_CALL_NOT_IMPLEMENTED) { - trace("WindowStation calls not supported on this platform\n"); + skip("WindowStation calls not supported on this platform\n"); return; }
1
0
0
0
Huw Davies : winex11.drv: Use global Pictures for the tiles.
by Alexandre Julliard
04 Jul '07
04 Jul '07
Module: wine Branch: master Commit: bd2fe1a2fa06212461e341e214f35c32fa31d200 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=bd2fe1a2fa06212461e341e21…
Author: Huw Davies <huw(a)codeweavers.com> Date: Tue Jul 3 15:21:32 2007 +0100 winex11.drv: Use global Pictures for the tiles. --- dlls/winex11.drv/xrender.c | 147 +++++++++++++++++++++++--------------------- 1 files changed, 76 insertions(+), 71 deletions(-) diff --git a/dlls/winex11.drv/xrender.c b/dlls/winex11.drv/xrender.c index 33da629..846e352 100644 --- a/dlls/winex11.drv/xrender.c +++ b/dlls/winex11.drv/xrender.c @@ -84,9 +84,6 @@ struct tagXRENDERINFO { int cache_index; Picture pict; - Picture tile_pict; - Pixmap tile_xpm; - COLORREF lastTextColor; }; @@ -602,17 +599,6 @@ void X11DRV_XRender_UpdateDrawable(X11DRV_PDEVICE *physDev) pXRenderFreePicture(gdi_display, physDev->xrender->pict); physDev->xrender->pict = 0; } - if(physDev->xrender->tile_pict) - { - pXRenderFreePicture(gdi_display, physDev->xrender->tile_pict); - physDev->xrender->tile_pict = 0; - } - if(physDev->xrender->tile_xpm) - { - XFreePixmap(gdi_display, physDev->xrender->tile_xpm); - physDev->xrender->tile_xpm = 0; - } - wine_tsx11_unlock(); return; @@ -1071,6 +1057,76 @@ static void SmoothGlyphGray(XImage *image, int x, int y, void *bitmap, XGlyphInf } } +/************************************************************* + * get_tile_pict + * + * Returns an appropiate Picture for tiling the text colour. + * Call and use result within the xrender_cs + */ +static Picture get_tile_pict(enum drawable_depth_type type, int text_pixel) +{ + static struct + { + Pixmap xpm; + Picture pict; + int current_color; + } tiles[2], *tile; + XRenderColor col; + + tile = &tiles[type]; + + if(!tile->xpm) + { + XRenderPictureAttributes pa; + + wine_tsx11_lock(); + tile->xpm = XCreatePixmap(gdi_display, root_window, 1, 1, pict_formats[type]->depth); + + pa.repeat = True; + tile->pict = pXRenderCreatePicture(gdi_display, tile->xpm, pict_formats[type], CPRepeat, &pa); + wine_tsx11_unlock(); + + /* init current_color to something different from text_pixel */ + tile->current_color = ~text_pixel; + + if(type == mono_drawable) + { + /* for a 1bpp bitmap we always need a 1 in the tile */ + col.red = col.green = col.blue = 0; + col.alpha = 0xffff; + wine_tsx11_lock(); + pXRenderFillRectangle(gdi_display, PictOpSrc, tile->pict, &col, 0, 0, 1, 1); + wine_tsx11_unlock(); + } + } + + if(text_pixel != tile->current_color && type == color_drawable) + { + /* Map 0 -- 0xff onto 0 -- 0xffff */ + int r_shift, r_len; + int g_shift, g_len; + int b_shift, b_len; + + ExamineBitfield (visual->red_mask, &r_shift, &r_len ); + ExamineBitfield (visual->green_mask, &g_shift, &g_len); + ExamineBitfield (visual->blue_mask, &b_shift, &b_len); + + col.red = GetField(text_pixel, r_shift, r_len); + col.red |= col.red << 8; + col.green = GetField(text_pixel, g_shift, g_len); + col.green |= col.green << 8; + col.blue = GetField(text_pixel, b_shift, b_len); + col.blue |= col.blue << 8; + col.alpha = 0x0; + + wine_tsx11_lock(); + pXRenderFillRectangle(gdi_display, PictOpSrc, tile->pict, &col, 0, 0, 1, 1); + wine_tsx11_unlock(); + tile->current_color = text_pixel; + } + return tile->pict; +} + static int XRenderErrorHandler(Display *dpy, XErrorEvent *event, void *arg) { return 1; @@ -1083,7 +1139,6 @@ BOOL X11DRV_XRender_ExtTextOut( X11DRV_PDEVICE *physDev, INT x, INT y, UINT flag const RECT *lprect, LPCWSTR wstr, UINT count, const INT *lpDx ) { - XRenderColor col; RGNDATA *data; XGCValues xgcval; int render_op = PictOpOver; @@ -1100,6 +1155,7 @@ BOOL X11DRV_XRender_ExtTextOut( X11DRV_PDEVICE *physDev, INT x, INT y, UINT flag double cosEsc, sinEsc; LOGFONTW lf; enum drawable_depth_type depth_type = (physDev->depth == 1) ? mono_drawable : color_drawable; + Picture tile_pict = 0; /* Do we need to disable antialiasing because of palette mode? */ if( !physDev->bitmap || GetObjectW( physDev->bitmap->hbitmap, sizeof(bmp), &bmp ) != sizeof(bmp) ) { @@ -1170,6 +1226,8 @@ BOOL X11DRV_XRender_ExtTextOut( X11DRV_PDEVICE *physDev, INT x, INT y, UINT flag DeleteObject( clip_region ); } + EnterCriticalSection(&xrender_cs); + if(X11DRV_XRender_Installed) { if(!physDev->xrender->pict) { XRenderPictureAttributes pa; @@ -1198,68 +1256,15 @@ BOOL X11DRV_XRender_ExtTextOut( X11DRV_PDEVICE *physDev, INT x, INT y, UINT flag wine_tsx11_unlock(); HeapFree( GetProcessHeap(), 0, data ); } - } - - if(X11DRV_XRender_Installed) { - /* Create a 1x1 pixmap to tile over the font mask */ - if(!physDev->xrender->tile_xpm) { - XRenderPictureAttributes pa; - - XRenderPictFormat *format = pict_formats[depth_type]; - wine_tsx11_lock(); - physDev->xrender->tile_xpm = XCreatePixmap(gdi_display, - root_window, - 1, 1, - format->depth); - pa.repeat = True; - physDev->xrender->tile_pict = pXRenderCreatePicture(gdi_display, - physDev->xrender->tile_xpm, - format, - CPRepeat, &pa); - wine_tsx11_unlock(); - TRACE("Created pixmap of depth %d\n", format->depth); - /* init lastTextColor to something different from textPixel */ - physDev->xrender->lastTextColor = ~physDev->textPixel; - - } - if(physDev->textPixel != physDev->xrender->lastTextColor) { - if(physDev->depth != 1) { - /* Map 0 -- 0xff onto 0 -- 0xffff */ - int r_shift, r_len; - int g_shift, g_len; - int b_shift, b_len; - - ExamineBitfield (visual->red_mask, &r_shift, &r_len ); - ExamineBitfield (visual->green_mask, &g_shift, &g_len); - ExamineBitfield (visual->blue_mask, &b_shift, &b_len); - - col.red = GetField(physDev->textPixel, r_shift, r_len); - col.red |= col.red << 8; - col.green = GetField(physDev->textPixel, g_shift, g_len); - col.green |= col.green << 8; - col.blue = GetField(physDev->textPixel, b_shift, b_len); - col.blue |= col.blue << 8; - col.alpha = 0x0; - } else { /* for a 1bpp bitmap we always need a 1 in the tile */ - col.red = col.green = col.blue = 0; - col.alpha = 0xffff; - } - wine_tsx11_lock(); - pXRenderFillRectangle(gdi_display, PictOpSrc, - physDev->xrender->tile_pict, - &col, 0, 0, 1, 1); - wine_tsx11_unlock(); - physDev->xrender->lastTextColor = physDev->textPixel; - } + tile_pict = get_tile_pict(depth_type, physDev->textPixel); /* FIXME the mapping of Text/BkColor onto 1 or 0 needs investigation. */ - if((physDev->depth == 1) && (textPixel == 0)) + if((depth_type == mono_drawable) && (textPixel == 0)) render_op = PictOpOutReverse; /* This gives us 'black' text */ } - EnterCriticalSection(&xrender_cs); entry = glyphsetCache + physDev->xrender->cache_index; if( disable_antialias == FALSE ) aa_type = entry->aa_default; @@ -1325,7 +1330,7 @@ BOOL X11DRV_XRender_ExtTextOut( X11DRV_PDEVICE *physDev, INT x, INT y, UINT flag } wine_tsx11_lock(); pXRenderCompositeText16(gdi_display, render_op, - physDev->xrender->tile_pict, + tile_pict, physDev->xrender->pict, formatEntry->font_format, 0, 0, 0, 0, elts, count);
1
0
0
0
Huw Davies : winex11.drv: Move the PictFormats into an array.
by Alexandre Julliard
04 Jul '07
04 Jul '07
Module: wine Branch: master Commit: 030ef1ef0567ab77c1c5bbcadd70e6ec48f5f034 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=030ef1ef0567ab77c1c5bbcad…
Author: Huw Davies <huw(a)codeweavers.com> Date: Tue Jul 3 15:18:55 2007 +0100 winex11.drv: Move the PictFormats into an array. --- dlls/winex11.drv/xrender.c | 33 +++++++++++++++++---------------- 1 files changed, 17 insertions(+), 16 deletions(-) diff --git a/dlls/winex11.drv/xrender.c b/dlls/winex11.drv/xrender.c index e677cea..33da629 100644 --- a/dlls/winex11.drv/xrender.c +++ b/dlls/winex11.drv/xrender.c @@ -46,8 +46,9 @@ WINE_DEFAULT_DEBUG_CHANNEL(xrender); #include <X11/Xlib.h> #include <X11/extensions/Xrender.h> -static XRenderPictFormat *screen_format; /* format of screen */ -static XRenderPictFormat *mono_format; /* format of mono bitmap */ + +enum drawable_depth_type {mono_drawable, color_drawable}; +static XRenderPictFormat *pict_formats[2]; typedef struct { @@ -203,8 +204,8 @@ LOAD_OPTIONAL_FUNCPTR(XRenderSetPictureTransform) if(pXRenderQueryExtension(gdi_display, &event_base, &xrender_error_base)) { X11DRV_XRender_Installed = TRUE; TRACE("Xrender is up and running error_base = %d\n", xrender_error_base); - screen_format = pXRenderFindVisualFormat(gdi_display, visual); - if(!screen_format) + pict_formats[color_drawable] = pXRenderFindVisualFormat(gdi_display, visual); + if(!pict_formats[color_drawable]) { /* Xrender doesn't like DirectColor visuals, try to find a TrueColor one instead */ if (visual->class == DirectColor) @@ -213,12 +214,12 @@ LOAD_OPTIONAL_FUNCPTR(XRenderSetPictureTransform) if (XMatchVisualInfo( gdi_display, DefaultScreen(gdi_display), screen_depth, TrueColor, &info )) { - screen_format = pXRenderFindVisualFormat(gdi_display, info.visual); - if (screen_format) visual = info.visual; + pict_formats[color_drawable] = pXRenderFindVisualFormat(gdi_display, info.visual); + if (pict_formats[color_drawable]) visual = info.visual; } } } - if(!screen_format) /* This fails in buggy versions of libXrender.so */ + if(!pict_formats[color_drawable]) /* This fails in buggy versions of libXrender.so */ { wine_tsx11_unlock(); WINE_MESSAGE( @@ -232,10 +233,10 @@ LOAD_OPTIONAL_FUNCPTR(XRenderSetPictureTransform) pf.depth = 1; pf.direct.alpha = 0; pf.direct.alphaMask = 1; - mono_format = pXRenderFindFormat(gdi_display, PictFormatType | - PictFormatDepth | PictFormatAlpha | - PictFormatAlphaMask, &pf, 0); - if(!mono_format) { + pict_formats[mono_drawable] = pXRenderFindFormat(gdi_display, PictFormatType | + PictFormatDepth | PictFormatAlpha | + PictFormatAlphaMask, &pf, 0); + if(!pict_formats[mono_drawable]) { ERR("mono_format == NULL?\n"); X11DRV_XRender_Installed = FALSE; } @@ -1098,6 +1099,7 @@ BOOL X11DRV_XRender_ExtTextOut( X11DRV_PDEVICE *physDev, INT x, INT y, UINT flag unsigned int idx; double cosEsc, sinEsc; LOGFONTW lf; + enum drawable_depth_type depth_type = (physDev->depth == 1) ? mono_drawable : color_drawable; /* Do we need to disable antialiasing because of palette mode? */ if( !physDev->bitmap || GetObjectW( physDev->bitmap->hbitmap, sizeof(bmp), &bmp ) != sizeof(bmp) ) { @@ -1176,8 +1178,7 @@ BOOL X11DRV_XRender_ExtTextOut( X11DRV_PDEVICE *physDev, INT x, INT y, UINT flag wine_tsx11_lock(); physDev->xrender->pict = pXRenderCreatePicture(gdi_display, physDev->drawable, - (physDev->depth == 1) ? - mono_format : screen_format, + pict_formats[depth_type], CPSubwindowMode, &pa); wine_tsx11_unlock(); @@ -1204,7 +1205,7 @@ BOOL X11DRV_XRender_ExtTextOut( X11DRV_PDEVICE *physDev, INT x, INT y, UINT flag if(!physDev->xrender->tile_xpm) { XRenderPictureAttributes pa; - XRenderPictFormat *format = (physDev->depth == 1) ? mono_format : screen_format; + XRenderPictFormat *format = pict_formats[depth_type]; wine_tsx11_lock(); physDev->xrender->tile_xpm = XCreatePixmap(gdi_display, root_window, @@ -1534,6 +1535,7 @@ BOOL X11DRV_AlphaBlend(X11DRV_PDEVICE *devDst, INT xDst, INT yDst, INT widthDst, POINT pts[2]; BOOL top_down = FALSE; RGNDATA *rgndata; + enum drawable_depth_type dst_depth_type = (devDst->depth == 1) ? mono_drawable : color_drawable; if(!X11DRV_XRender_Installed) { FIXME("Unable to AlphaBlend without Xrender\n"); @@ -1616,8 +1618,7 @@ BOOL X11DRV_AlphaBlend(X11DRV_PDEVICE *devDst, INT xDst, INT yDst, INT widthDst, /* FIXME use devDst->xrender->pict ? */ dst_pict = pXRenderCreatePicture(gdi_display, devDst->drawable, - (devDst->depth == 1) ? - mono_format : screen_format, + pict_formats[dst_depth_type], CPSubwindowMode, &pa); TRACE("dst_pict %08lx\n", dst_pict); TRACE("src_drawable = %08lx\n", devSrc->drawable);
1
0
0
0
Huw Davies : winex11.drv: Pass root_window to XCreatePixmap to avoid BadDrawable errors.
by Alexandre Julliard
04 Jul '07
04 Jul '07
Module: wine Branch: master Commit: ee40cb4b9f67eb5aa93033b25d2bba0ad881a01f URL:
http://source.winehq.org/git/wine.git/?a=commit;h=ee40cb4b9f67eb5aa93033b25…
Author: Huw Davies <huw(a)codeweavers.com> Date: Tue Jul 3 15:03:23 2007 +0100 winex11.drv: Pass root_window to XCreatePixmap to avoid BadDrawable errors. --- dlls/winex11.drv/xrender.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dlls/winex11.drv/xrender.c b/dlls/winex11.drv/xrender.c index eafe0e7..e677cea 100644 --- a/dlls/winex11.drv/xrender.c +++ b/dlls/winex11.drv/xrender.c @@ -1207,7 +1207,7 @@ BOOL X11DRV_XRender_ExtTextOut( X11DRV_PDEVICE *physDev, INT x, INT y, UINT flag XRenderPictFormat *format = (physDev->depth == 1) ? mono_format : screen_format; wine_tsx11_lock(); physDev->xrender->tile_xpm = XCreatePixmap(gdi_display, - physDev->drawable, + root_window, 1, 1, format->depth); pa.repeat = True; @@ -1425,7 +1425,7 @@ BOOL X11DRV_XRender_ExtTextOut( X11DRV_PDEVICE *physDev, INT x, INT y, UINT flag image_w, image_h, AllPlanes, ZPixmap, physDev->depth, image); if(!image) { - Pixmap xpm = XCreatePixmap(gdi_display, physDev->drawable, image_w, image_h, + Pixmap xpm = XCreatePixmap(gdi_display, root_window, image_w, image_h, physDev->depth); GC gc; XGCValues gcv; @@ -1622,7 +1622,7 @@ BOOL X11DRV_AlphaBlend(X11DRV_PDEVICE *devDst, INT xDst, INT yDst, INT widthDst, TRACE("dst_pict %08lx\n", dst_pict); TRACE("src_drawable = %08lx\n", devSrc->drawable); xpm = XCreatePixmap(gdi_display, - devSrc->drawable, + root_window, widthSrc, heightSrc, 32); gcv.graphics_exposures = False; gc = XCreateGC(gdi_display, xpm, GCGraphicsExposures, &gcv);
1
0
0
0
lostwages/templates/en download.template
by Jeremy Newman
03 Jul '07
03 Jul '07
ChangeSet ID: 31238 CVSROOT: /opt/cvs-commit Module name: lostwages Changes by: jnewman(a)winehq.org 2007/07/03 09:05:35 Modified files: templates/en : download.template Log message: Andreas Bierfert Fixed/Improved fedora packages download link Patch:
http://cvs.winehq.org/patch.py?id=31238
Old revision New revision Changes Path 1.92 1.93 +3 -3 lostwages/templates/en/download.template Index: lostwages/templates/en/download.template diff -u -p lostwages/templates/en/download.template:1.92 lostwages/templates/en/download.template:1.93 --- lostwages/templates/en/download.template:1.92 3 Jul 2007 14: 5:35 -0000 +++ lostwages/templates/en/download.template 3 Jul 2007 14: 5:35 -0000 @@ -24,11 +24,11 @@ for post-installation instructions.</b>< <td align=center><a href="{$root}/site/download-rh"> <img src="{$root}/images/distro/redhat.png" width="50" height="50" alt="RedHat Linux" border="0"></a> </td> - <td> <b><a href="
http://download.fedora.redhat.com/pub/fedora/linux/extras/5/i386/repodata/r…
">Red Hat / Fedora</a></b> - binary and source .rpms for RedHat 8, 9; Fedora Core 3, 4, 5; and + <td> <b><a href="
http://fedoraproject.org/wiki/AndreasBierfert/Wine
">Red Hat / CentOS / Fedora</a></b> + binary and source .rpms for Red Hat Enterprise Linux 4, 5; CentOS 4, 5; Fedora Core 5, 6; Fedora Linux 7 and compatible distributions. The wine meta package is available via <tt>yum</tt> - through the Fedora Extras repository by running <tt>$ yum install + through the EPEL / Fedora Extras / Fedora repository by running <tt>$ yum install wine </tt>" </td> <td><a href="mailto:andreas.bierfert_at_lowlatency.de">Andreas Bierfert</a></td>
1
0
0
0
James Hawkins : msi: Read the components state directly from the registry.
by Alexandre Julliard
03 Jul '07
03 Jul '07
Module: wine Branch: master Commit: 39a5638268095be901f4a0103c2be51959cd86ca URL:
http://source.winehq.org/git/wine.git/?a=commit;h=39a5638268095be901f4a0103…
Author: James Hawkins <truiken(a)gmail.com> Date: Mon Jul 2 20:24:40 2007 -0700 msi: Read the components state directly from the registry. --- dlls/msi/msi.c | 21 +++++++++++---------- dlls/msi/msipriv.h | 1 + dlls/msi/registry.c | 38 ++++++++++++++++++++++++++++++++++++++ dlls/msi/tests/msi.c | 10 ++-------- 4 files changed, 52 insertions(+), 18 deletions(-) diff --git a/dlls/msi/msi.c b/dlls/msi/msi.c index b352595..b669c37 100644 --- a/dlls/msi/msi.c +++ b/dlls/msi/msi.c @@ -1229,7 +1229,7 @@ INSTALLSTATE WINAPI MsiQueryFeatureStateW(LPCWSTR szProduct, LPCWSTR szFeature) { WCHAR squishProduct[33], comp[GUID_SIZE]; GUID guid; - LPWSTR components, p, parent_feature; + LPWSTR components, p, parent_feature, path; UINT rc; HKEY hkey; INSTALLSTATE r; @@ -1284,17 +1284,18 @@ INSTALLSTATE WINAPI MsiQueryFeatureStateW(LPCWSTR szProduct, LPCWSTR szFeature) } StringFromGUID2(&guid, comp, GUID_SIZE); - r = MsiGetComponentPathW(szProduct, comp, NULL, 0); - TRACE("component %s state %d\n", debugstr_guid(&guid), r); - switch (r) + rc = MSIREG_OpenUserDataComponentKey(comp, &hkey, FALSE); + if (rc != ERROR_SUCCESS) { - case INSTALLSTATE_NOTUSED: - case INSTALLSTATE_LOCAL: - case INSTALLSTATE_SOURCE: - break; - default: - missing = TRUE; + msi_free(components); + return INSTALLSTATE_ADVERTISED; } + + path = msi_reg_get_val_str(hkey, squishProduct); + if (!path) + missing = TRUE; + + msi_free(path); } TRACE("%s %s -> %d\n", debugstr_w(szProduct), debugstr_w(szFeature), r); diff --git a/dlls/msi/msipriv.h b/dlls/msi/msipriv.h index 33ca027..bb85e9a 100644 --- a/dlls/msi/msipriv.h +++ b/dlls/msi/msipriv.h @@ -707,6 +707,7 @@ extern UINT MSIREG_OpenUserDataFeaturesKey(LPCWSTR szProduct, HKEY *key, BOOL cr extern UINT MSIREG_OpenComponents(HKEY* key); extern UINT MSIREG_OpenUserComponentsKey(LPCWSTR szComponent, HKEY* key, BOOL create); extern UINT MSIREG_OpenComponentsKey(LPCWSTR szComponent, HKEY* key, BOOL create); +extern UINT MSIREG_OpenUserDataComponentKey(LPCWSTR szComponent, HKEY *key, BOOL create); extern UINT MSIREG_OpenProductsKey(LPCWSTR szProduct, HKEY* key, BOOL create); extern UINT MSIREG_OpenPatchesKey(LPCWSTR szPatch, HKEY* key, BOOL create); extern UINT MSIREG_OpenUserDataProductKey(LPCWSTR szProduct, HKEY* key, BOOL create); diff --git a/dlls/msi/registry.c b/dlls/msi/registry.c index 22a2498..b9c0af4 100644 --- a/dlls/msi/registry.c +++ b/dlls/msi/registry.c @@ -103,6 +103,15 @@ static const WCHAR szUser_Components_fmt[] = { 'C','o','m','p','o','n','e','n','t','s','\\', '%','s',0}; +static const WCHAR szUserDataComp_fmt[] = { +'S','o','f','t','w','a','r','e','\\', +'M','i','c','r','o','s','o','f','t','\\', +'W','i','n','d','o','w','s','\\', +'C','u','r','r','e','n','t','V','e','r','s','i','o','n','\\', +'I','n','s','t','a','l','l','e','r','\\', +'U','s','e','r','D','a','t','a','\\', +'%','s','\\','C','o','m','p','o','n','e','n','t','s','\\','%','s',0}; + static const WCHAR szUninstall_fmt[] = { 'S','o','f','t','w','a','r','e','\\', 'M','i','c','r','o','s','o','f','t','\\', @@ -631,6 +640,35 @@ UINT MSIREG_OpenUserComponentsKey(LPCWSTR szComponent, HKEY* key, BOOL create) return rc; } +UINT MSIREG_OpenUserDataComponentKey(LPCWSTR szComponent, HKEY *key, BOOL create) +{ + UINT rc; + WCHAR comp[GUID_SIZE]; + WCHAR keypath[0x200]; + LPWSTR usersid; + + TRACE("%s\n", debugstr_w(szComponent)); + squash_guid(szComponent, comp); + TRACE("squished (%s)\n", debugstr_w(comp)); + + rc = get_user_sid(&usersid); + if (rc != ERROR_SUCCESS || !usersid) + { + ERR("Failed to retrieve user SID: %d\n", rc); + return rc; + } + + sprintfW(keypath, szUserDataComp_fmt, usersid, comp); + + if (create) + rc = RegCreateKeyW(HKEY_LOCAL_MACHINE, keypath, key); + else + rc = RegOpenKeyW(HKEY_LOCAL_MACHINE, keypath, key); + + msi_free(usersid); + return rc; +} + UINT MSIREG_OpenUserDataProductKey(LPCWSTR szProduct, HKEY *key, BOOL create) { UINT rc; diff --git a/dlls/msi/tests/msi.c b/dlls/msi/tests/msi.c index 7814571..38126d4 100644 --- a/dlls/msi/tests/msi.c +++ b/dlls/msi/tests/msi.c @@ -626,19 +626,13 @@ static void test_MsiQueryFeatureState(void) ok(res == ERROR_SUCCESS, "Expected ERROR_SUCCESS, got %d\n", res); state = MsiQueryFeatureStateA(prodcode, "feature"); - todo_wine - { - ok(state == INSTALLSTATE_LOCAL, "Expected INSTALLSTATE_LOCAL, got %d\n", state); - } + ok(state == INSTALLSTATE_LOCAL, "Expected INSTALLSTATE_LOCAL, got %d\n", state); res = RegSetValueExA(compkey, prod_squashed, 0, REG_SZ, (const BYTE *)"apple", 1); ok(res == ERROR_SUCCESS, "Expected ERROR_SUCCESS, got %d\n", res); state = MsiQueryFeatureStateA(prodcode, "feature"); - todo_wine - { - ok(state == INSTALLSTATE_LOCAL, "Expected INSTALLSTATE_LOCAL, got %d\n", state); - } + ok(state == INSTALLSTATE_LOCAL, "Expected INSTALLSTATE_LOCAL, got %d\n", state); RegDeleteValueA(compkey, prod_squashed); RegDeleteValueA(compkey, "");
1
0
0
0
James Hawkins : msi: Return INSTALLSTATE_BADCONFIG if we can' t decode the first component.
by Alexandre Julliard
03 Jul '07
03 Jul '07
Module: wine Branch: master Commit: 34f6af95b4cafc25f06a1ca85c6eb555c34966b5 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=34f6af95b4cafc25f06a1ca85…
Author: James Hawkins <truiken(a)gmail.com> Date: Mon Jul 2 20:23:58 2007 -0700 msi: Return INSTALLSTATE_BADCONFIG if we can't decode the first component. --- dlls/msi/msi.c | 10 +++++++--- dlls/msi/tests/msi.c | 5 +---- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/dlls/msi/msi.c b/dlls/msi/msi.c index 6d69cf9..b352595 100644 --- a/dlls/msi/msi.c +++ b/dlls/msi/msi.c @@ -1272,13 +1272,17 @@ INSTALLSTATE WINAPI MsiQueryFeatureStateW(LPCWSTR szProduct, LPCWSTR szFeature) if (!components) return INSTALLSTATE_ADVERTISED; - for( p = components; *p != 2 ; p += 20) + for( p = components; *p && *p != 2 ; p += 20) { if (!decode_base85_guid( p, &guid )) { - ERR("%s\n", debugstr_w(p)); - break; + if (p != components) + break; + + msi_free(components); + return INSTALLSTATE_BADCONFIG; } + StringFromGUID2(&guid, comp, GUID_SIZE); r = MsiGetComponentPathW(szProduct, comp, NULL, 0); TRACE("component %s state %d\n", debugstr_guid(&guid), r); diff --git a/dlls/msi/tests/msi.c b/dlls/msi/tests/msi.c index 589b161..7814571 100644 --- a/dlls/msi/tests/msi.c +++ b/dlls/msi/tests/msi.c @@ -591,10 +591,7 @@ static void test_MsiQueryFeatureState(void) ok(res == ERROR_SUCCESS, "Expected ERROR_SUCCESS, got %d\n", res); state = MsiQueryFeatureStateA(prodcode, "feature"); - todo_wine - { - ok(state == INSTALLSTATE_BADCONFIG, "Expected INSTALLSTATE_BADCONFIG, got %d\n", state); - } + ok(state == INSTALLSTATE_BADCONFIG, "Expected INSTALLSTATE_BADCONFIG, got %d\n", state); res = RegSetValueExA(localkey, "feature", 0, REG_SZ, (const BYTE *)"aaaaaaaaaaaaaaaaaaaa", 21); ok(res == ERROR_SUCCESS, "Expected ERROR_SUCCESS, got %d\n", res);
1
0
0
0
James Hawkins : msi: Return INSTALLSTATE_ADVERTISED if the component list is empty.
by Alexandre Julliard
03 Jul '07
03 Jul '07
Module: wine Branch: master Commit: 73e0a87477c4b0fe792988061397a5241b72a985 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=73e0a87477c4b0fe792988061…
Author: James Hawkins <truiken(a)gmail.com> Date: Mon Jul 2 20:23:28 2007 -0700 msi: Return INSTALLSTATE_ADVERTISED if the component list is empty. --- dlls/msi/msi.c | 6 +----- dlls/msi/tests/msi.c | 5 +---- 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/dlls/msi/msi.c b/dlls/msi/msi.c index 4511f34..6d69cf9 100644 --- a/dlls/msi/msi.c +++ b/dlls/msi/msi.c @@ -1270,11 +1270,7 @@ INSTALLSTATE WINAPI MsiQueryFeatureStateW(LPCWSTR szProduct, LPCWSTR szFeature) TRACE("rc = %d buffer = %s\n", rc, debugstr_w(components)); if (!components) - { - ERR("components missing %s %s\n", - debugstr_w(szProduct), debugstr_w(szFeature)); - return INSTALLSTATE_UNKNOWN; - } + return INSTALLSTATE_ADVERTISED; for( p = components; *p != 2 ; p += 20) { diff --git a/dlls/msi/tests/msi.c b/dlls/msi/tests/msi.c index 4e7b5e2..589b161 100644 --- a/dlls/msi/tests/msi.c +++ b/dlls/msi/tests/msi.c @@ -585,10 +585,7 @@ static void test_MsiQueryFeatureState(void) ok(res == ERROR_SUCCESS, "Expected ERROR_SUCCESS, got %d\n", res); state = MsiQueryFeatureStateA(prodcode, "feature"); - todo_wine - { - ok(state == INSTALLSTATE_ADVERTISED, "Expected INSTALLSTATE_ADVERTISED, got %d\n", state); - } + ok(state == INSTALLSTATE_ADVERTISED, "Expected INSTALLSTATE_ADVERTISED, got %d\n", state); res = RegSetValueExA(localkey, "feature", 0, REG_SZ, (const BYTE *)"aaaaaaaaaaaaaaaaaaa", 20); ok(res == ERROR_SUCCESS, "Expected ERROR_SUCCESS, got %d\n", res);
1
0
0
0
James Hawkins : msi: Open the correct key and return INSTALLSTATE_ADVERTISED if it's missing.
by Alexandre Julliard
03 Jul '07
03 Jul '07
Module: wine Branch: master Commit: 1130d5909b102581fb669c7ed3339e657e85cb5f URL:
http://source.winehq.org/git/wine.git/?a=commit;h=1130d5909b102581fb669c7ed…
Author: James Hawkins <truiken(a)gmail.com> Date: Mon Jul 2 20:22:57 2007 -0700 msi: Open the correct key and return INSTALLSTATE_ADVERTISED if it's missing. --- dlls/msi/msi.c | 4 +- dlls/msi/msipriv.h | 1 + dlls/msi/registry.c | 81 ++++++++++++++++++++++++++++++++++------------ dlls/msi/tests/install.c | 35 ++++++++++++++++---- dlls/msi/tests/msi.c | 30 +++++++---------- 5 files changed, 103 insertions(+), 48 deletions(-) Diff:
http://source.winehq.org/git/wine.git/?a=commitdiff;h=1130d5909b102581fb669…
1
0
0
0
← Newer
1
...
86
87
88
89
90
91
92
...
96
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
Results per page:
10
25
50
100
200