Re: [10/10] gdiplus: Filter tabs out until they are properly supported using stringformat.

2012-08-16 Thread Dmitry Timoshkov
Vincent Povirk wrote: > This should probably be handled somehow by gdip_format_string. > DrawDriverString doesn't have access to the StringFormat, and there's > a good change that the native implementation really does draw tabs as > squares. Also, MeasureCharacterRanges and MeasureString will hav

Re: [10/10] gdiplus: Filter tabs out until they are properly supported using stringformat.

2012-08-16 Thread Vincent Povirk
This should probably be handled somehow by gdip_format_string. DrawDriverString doesn't have access to the StringFormat, and there's a good change that the native implementation really does draw tabs as squares. Also, MeasureCharacterRanges and MeasureString will have to account for tabstops. gdip

Re: [08/10] gdiplus: GdipMeasureString/GdipDrawString should add extra space around the text.

2012-08-16 Thread Vincent Povirk
> Since I have no tests for GdipMeasureCharacterRanges I don't want to break > it inadvertently. If somebody proves that GdipMeasureCharacterRanges should > be affected by extra padding as well, merging the code to gdip_format_string > shouldn't be too hard. Well, I'm saying you'll break it if you

Re: [08/10] gdiplus: GdipMeasureString/GdipDrawString should add extra space around the text.

2012-08-16 Thread Dmitry Timoshkov
Vincent Povirk wrote: > >> >> Why can't this logic go in gdip_format_string? > >> > > >> > Because not all of its callers should be affected > >> > (GdipMeasureCharacterRanges > >> > is one of them). > >> > >> How not? If the padding is there when drawing the whole string, it > >> affects the po

Re: Re: DSSENH/tests: Added block cipher mode tests for the DSSENH cryptographic service provider (try2)

2012-08-16 Thread Marvin
Hi, While running your changed tests on Windows, I think I found new failures. Being a bot and all I'm not very good at pattern recognition, so I might be wrong, but could you please double-check? Full results can be found at http://testbot.winehq.org/JobDetails.pl?Key=20983 Your paranoid android

Re: [08/10] gdiplus: GdipMeasureString/GdipDrawString should add extra space around the text.

2012-08-16 Thread Vincent Povirk
>> >> Why can't this logic go in gdip_format_string? >> > >> > Because not all of its callers should be affected >> > (GdipMeasureCharacterRanges >> > is one of them). >> >> How not? If the padding is there when drawing the whole string, it >> affects the positions of individual characters. > > Ma

Re: [02/10] gdiplus: If source and destination rectangles differ it's not a reason to fallback to software blitting.

2012-08-16 Thread Dmitry Timoshkov
Vincent Povirk wrote: > You also removed the test for rotation and skewing, which are > definitely NOT handled by gdi32. I guess that this patch could be dropped then, other patches in the series shouldn't be affected. -- Dmitry.

Re: [08/10] gdiplus: GdipMeasureString/GdipDrawString should add extra space around the text.

2012-08-16 Thread Dmitry Timoshkov
Vincent Povirk wrote: > >> Why can't this logic go in gdip_format_string? > > > > Because not all of its callers should be affected > > (GdipMeasureCharacterRanges > > is one of them). > > How not? If the padding is there when drawing the whole string, it > affects the positions of individual c

Re: [08/10] gdiplus: GdipMeasureString/GdipDrawString should add extra space around the text.

2012-08-16 Thread Vincent Povirk
>> Why can't this logic go in gdip_format_string? > > Because not all of its callers should be affected (GdipMeasureCharacterRanges > is one of them). How not? If the padding is there when drawing the whole string, it affects the positions of individual characters.

Re: [08/10] gdiplus: GdipMeasureString/GdipDrawString should add extra space around the text.

2012-08-16 Thread Dmitry Timoshkov
Vincent Povirk wrote: > Why can't this logic go in gdip_format_string? Because not all of its callers should be affected (GdipMeasureCharacterRanges is one of them). -- Dmitry.

Re: [02/10] gdiplus: If source and destination rectangles differ it's not a reason to fallback to software blitting.

2012-08-16 Thread Vincent Povirk
>> > Both StretchBlt and GdiAlphaBlend handle that case just fine. >> >> Only if the graphics interpolation mode happens to be nearest >> neighbor, which isn't the default. > > Feel free to add a check for it, there is no need to penalize a common > case without a reason. You also removed the test

Re: [02/10] gdiplus: If source and destination rectangles differ it's not a reason to fallback to software blitting.

2012-08-16 Thread Dmitry Timoshkov
Vincent Povirk wrote: > > Both StretchBlt and GdiAlphaBlend handle that case just fine. > > Only if the graphics interpolation mode happens to be nearest > neighbor, which isn't the default. Feel free to add a check for it, there is no need to penalize a common case without a reason. -- Dmitr

Re: [08/10] gdiplus: GdipMeasureString/GdipDrawString should add extra space around the text.

2012-08-16 Thread Vincent Povirk
Why can't this logic go in gdip_format_string?

Re: DSSENH/tests: Added block cipher mode tests for the DSSENH cryptographic service provider

2012-08-16 Thread Marvin
Hi, While running your changed tests on Windows, I think I found new failures. Being a bot and all I'm not very good at pattern recognition, so I might be wrong, but could you please double-check? Full results can be found at http://testbot.winehq.org/JobDetails.pl?Key=20977 Your paranoid android

Re: [02/10] gdiplus: If source and destination rectangles differ it's not a reason to fallback to software blitting.

2012-08-16 Thread Vincent Povirk
> Both StretchBlt and GdiAlphaBlend handle that case just fine. Only if the graphics interpolation mode happens to be nearest neighbor, which isn't the default.

Re: [PATCH 2/3] riched20: Added support for UTF8 BOM stream. (Try 2)

2012-08-16 Thread Qian Hong
On Fri, Aug 17, 2012 at 1:37 AM, Alexandre Julliard wrote: > There's no reason to move the data. Thanks for review! Will provide a better version soon. -- Regards, Qian Hong - Sent from Ubuntu http://www.ubuntu.com/

Re: [PATCH 2/3] riched20: Added support for UTF8 BOM stream. (Try 2)

2012-08-16 Thread Alexandre Julliard
Qian Hong writes: > @@ -304,8 +307,19 @@ static LRESULT ME_StreamInText(ME_TextEditor *editor, > DWORD dwFormat, ME_InStrea > > if (!(dwFormat & SF_UNICODE)) > { > - /* FIXME? this is doomed to fail on true MBCS like UTF-8, luckily > they're unlikely to be used as CP_ACP */ > -

Re: [PATCH 2/2] comctl32: Correct values passed in MCN_SELECT/MCN_SELCHANGE notifications.

2012-08-16 Thread Nikolay Sivov
On Thu, Aug 16, 2012 at 5:20 PM, Sergey Guralnik wrote: > > -- > Sergey > > > You can use simple assignment with st_null instead of that: +memset(&nmsc.stSelEnd, 0, sizeof nmsc.stSelEnd);

Re: [PATCH 2/2] comctl32: Correct values passed in MCN_SELECT/MCN_SELCHANGE notifications.

2012-08-16 Thread Marvin
Hi, While running your changed tests on Windows, I think I found new failures. Being a bot and all I'm not very good at pattern recognition, so I might be wrong, but could you please double-check? Full results can be found at http://testbot.winehq.org/JobDetails.pl?Key=20934 Your paranoid android

Re: [PATCH 1/2] comctl32/tests: Add test for MCN_SELECT/MCN_SELCHANGE notifications.

2012-08-16 Thread Marvin
Hi, While running your changed tests on Windows, I think I found new failures. Being a bot and all I'm not very good at pattern recognition, so I might be wrong, but could you please double-check? Full results can be found at http://testbot.winehq.org/JobDetails.pl?Key=20933 Your paranoid android

Re: [PATCH 2/2] comctl32: Correct values passed in MCN_SELECT/MCN_SELCHANGE notifications.

2012-08-16 Thread Marvin
Hi, While running your changed tests on Windows, I think I found new failures. Being a bot and all I'm not very good at pattern recognition, so I might be wrong, but could you please double-check? Full results can be found at http://testbot.winehq.org/JobDetails.pl?Key=20934 Your paranoid android

Re: [PATCH 1/2] comctl32/tests: Add test for MCN_SELECT/MCN_SELCHANGE notifications.

2012-08-16 Thread Sergey Guralnik
On 2012-08-16 16:28, Marvin wrote: === WNT4WSSP6 (32 bit monthcal) === monthcal.c:1258: Test failed: monthcal hit test: the msg 0x000f was expected, but got msg 0x1001 instead This is unrelated to my patch. -- Sergey

Re: winedbg: Use standard fixed pitch UI font for the crash dialog.

2012-08-16 Thread Dmitry Timoshkov
Alexandre Julliard wrote: > > To clarify things a bit: current code uses empty font face name, and GDI > > uses "System" font in that case (regardless of requested FIXED_PITCH), which > > is absolutely not readable. ANSI_FIXED_FONT should use built-in "Courier", > > which is actually a FIXED_PITC

Re: comdlg32: Use proper helpers for iface calls

2012-08-16 Thread Marvin
Hi, While running your changed tests on Windows, I think I found new failures. Being a bot and all I'm not very good at pattern recognition, so I might be wrong, but could you please double-check? Full results can be found at http://testbot.winehq.org/JobDetails.pl?Key=20929 Your paranoid android

Re: [PATCH 1/4] include/wine/test.h: Added wine_dbgstr_a[n] to test framwork.

2012-08-16 Thread Qian Hong
On Thu, Aug 16, 2012 at 4:55 PM, Alexandre Julliard wrote: > > This shouldn't be necessary, you can use a simple printf. Functions > should only be added to test.h if there's a clear need across a wide > range of tests. Thanks for review! Will provide an updated patch set soon. -- Regards, Qia

Re: winedbg: Use standard fixed pitch UI font for the crash dialog.

2012-08-16 Thread Alexandre Julliard
Dmitry Timoshkov writes: > Dmitry Timoshkov wrote: > >> static void set_fixed_font( HWND dlg, UINT id ) >> { >> -HFONT hfont = (HFONT)SendDlgItemMessageW( dlg, id, WM_GETFONT, 0, 0); >> -LOGFONTW font; >> +HFONT hfont; >> >> -GetObjectW(hfont, sizeof(LOGFONTW), &font); >> -

Re: [PATCH] kernel32: add support for CAL_ICALINTVALUE

2012-08-16 Thread Michael Blumenkrantz
Perhaps not, but I'll be the first to admit that I know very little about wine internals; this seemed to return the correct result in the case that I tested it. On Thu, Aug 16, 2012 at 11:39 AM, Alexandre Julliard wrote: > Michael Blumenkrantz writes: > > > @@ -656,8 +656,8 @@ int WINAPI GetCale

Re: [PATCH] kernel32: add support for CAL_ICALINTVALUE

2012-08-16 Thread Alexandre Julliard
Michael Blumenkrantz writes: > @@ -656,8 +656,8 @@ int WINAPI GetCalendarInfoW(LCID Locale, CALID Calendar, > CALTYPE CalType, > * for the CALTYPES not requiring GetLocaleInfoA */ > switch (CalType & > ~(CAL_NOUSEROVERRIDE|CAL_RETURN_NUMBER|CAL_USE_CP_ACP)) { > case CAL_ICALINT