Re: [3/3] gdiplus: Make GdipMeasureCharacterRanges/GdipMeasureString/GdipDrawString add extra space around the text.

2012-08-27 Thread Dmitry Timoshkov
Vincent Povirk wrote: > > If there are only cosmetic objections, I'd like to see this patch accepted, > > and work of further improvements after that. > > I asked Alexandre to wait until I had more time to understand/test this patch. > > It seems you've introduced a problem with scaling (see at

Re: gdiplus: When copying an image do not round pixel positions up.

2012-08-27 Thread Vincent Povirk
>> I just did, and the behavior, though it looks wrong, is the same >> between builtin and native - the image is shifted by 1/2 pixel so that >> it's cut off at the upper-left and we have extra transparent space at >> the lower-right. > > With native gdiplus scenario described earlier works just fi

Re: gdiplus: When copying an image do not round pixel positions up.

2012-08-27 Thread Dmitry Timoshkov
Vincent Povirk wrote: > > Just write a test with GdipDrawImageI and scenario described above and > > you will see the problem. In my case it's even more visible because of > > indirect magnifaction: image with resolution 100 dpi is being copied to > > device with 300 dpi. > > I just did, and the

Re: gdiplus: When copying an image do not round pixel positions up.

2012-08-27 Thread Vincent Povirk
> Just write a test with GdipDrawImageI and scenario described above and > you will see the problem. In my case it's even more visible because of > indirect magnifaction: image with resolution 100 dpi is being copied to > device with 300 dpi. I just did, and the behavior, though it looks wrong, is

Re: gdiplus: When copying an image do not round pixel positions up.

2012-08-27 Thread Dmitry Timoshkov
Vincent Povirk wrote: > > In my tests (which replicate the behaviour of a target application) if > > an image of say 10x10 pixels is being copied with a magnification world > > transform then the destination image has right/bottom border completely > > wrong, and my patch fixes this. Besides, bil

Re: gdiplus: When copying an image do not round pixel positions up.

2012-08-27 Thread Vincent Povirk
> In my tests (which replicate the behaviour of a target application) if > an image of say 10x10 pixels is being copied with a magnification world > transform then the destination image has right/bottom border completely > wrong, and my patch fixes this. Besides, bilinear interpolation does > exact

Re: gdiplus: When copying an image do not round pixel positions up.

2012-08-27 Thread Dmitry Timoshkov
Vincent Povirk wrote: > I know this looks wrong, but it's there for a reason, and it matches > the behavior of the other interpolations. In my tests, the center of a > bitmap pixel is at an integral value, meaning that the pixel at (0,0) > is a rectangle extending from (-0.5, -0.5) to (0.5, 0.5),

Re: gdiplus: Use outside color from image attributes for an out of bounds pixel.

2012-08-27 Thread Vincent Povirk
> if (src_pointf.X >= srcx && src_pointf.X < srcx + > srcwidth && src_pointf.Y >= srcy && src_pointf.Y < srcy+srcheight) > *dst_color = resample_bitmap_pixel(&src_area, > src_data, bitmap->width, bitmap->height, &src_pointf, imageAttributes, > interp

Re: gdiplus: When copying an image do not round pixel positions up.

2012-08-27 Thread Vincent Povirk
I know this looks wrong, but it's there for a reason, and it matches the behavior of the other interpolations. In my tests, the center of a bitmap pixel is at an integral value, meaning that the pixel at (0,0) is a rectangle extending from (-0.5, -0.5) to (0.5, 0.5), and if you enlarge an image you

re: xmllite: Store DTD processing mode in reader

2012-08-27 Thread Dan Kegel
Alexandre Julliard wrote: > Explicit ok() calls are better than hiding them inside a macro. Uh-oh. Want me to get rid of this macro +#define CHECK_RET_ERRNO(ret, ex) \ +do { \ +ok(ret == ex, "ret is %d, expected %d\n", ret, ex); \ +ok(errno == ex, "errno is %d, expected %d\n"

Re: [PATCH 1/2] msvcrt: Detect UTF-8 mode

2012-08-27 Thread Alexandre Julliard
Detlef Riekenberg writes: > @@ -1286,6 +1288,17 @@ static int msvcrt_get_flags(const MSVCRT_wchar_t* > mode, int *open_flags, int* st > case '+': > case ' ': >break; > +case ',': > + if (!memcmp(mode, encoding_utf8, sizeof(encoding_utf8)) ) > + { > +*open_

Re: xmllite: Store DTD processing mode in reader

2012-08-27 Thread Alexandre Julliard
Nikolay Sivov writes: > @@ -350,34 +353,47 @@ static void test_reader_create(void) > HRESULT hr; > IXmlReader *reader; > IUnknown *input; > +DtdProcessing dtd; > > /* crashes native */ > if (0) > { > pCreateXmlReader(&IID_IXmlReader, NULL, NULL); > -

Re: [3/3] gdiplus: Make GdipMeasureCharacterRanges/GdipMeasureString/GdipDrawString add extra space around the text.

2012-08-27 Thread Vincent Povirk
> If there are only cosmetic objections, I'd like to see this patch accepted, > and work of further improvements after that. I asked Alexandre to wait until I had more time to understand/test this patch. It seems you've introduced a problem with scaling (see attached test program and screenshot).

Re: Unused msvcp100 functions?

2012-08-27 Thread Piotr Caban
On 08/27/12 02:02, Francois Gouget wrote: There are a lot of msvcp100 functions that look like they are unused: * In string.c all of the MSVCP__String_base_*(), MSVCP_basic_string_*(), MSVCP_basic_string_wchar_*() and MSVCP_char_traits_*() functions, basic_string_w?char_replace_hel