wine-devel Digest, Vol 186, Issue 37
Haoyang Chen
chenhaoyang at uniontech.com
Tue Jan 12 03:35:09 CST 2021
hi,
ID2D1HwndRenderTarget::DrawText() draws text position and size different
from windows 7.
在 2021/1/12 下午5:22, wine-devel-request at winehq.org 写道:
> Send wine-devel mailing list submissions to
> wine-devel at winehq.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
> https://www.winehq.org/mailman/listinfo/wine-devel
> or, via email, send a message with subject or body 'help' to
> wine-devel-request at winehq.org
>
> You can reach the person managing the list at
> wine-devel-owner at winehq.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of wine-devel digest..."
>
>
> Today's Topics:
>
> 1. [PATCH 2/2] dsound: Send CaptureBuffer stop notification
> whenever stopping. (Shawn M. Chapla)
> 2. [PATCH] user32: Send WM_NCCALCSIZE message, when a new window
> is displayed. (Haoyang Chen)
> 3. [PATCH] d2d1: Fix the size and position of the text.
> (Haoyang Chen)
> 4. [PATCH v2] d2d1: Fix the size and position of the text.
> (Haoyang Chen)
> 5. Re: [PATCH v2] d2d1: Fix the size and position of the text.
> (Nikolay Sivov)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Mon, 11 Jan 2021 20:41:23 -0500
> From: "Shawn M. Chapla"<schapla at codeweavers.com>
> To:aeikum at codeweavers.com
> Cc:wine-devel at winehq.org, "Shawn M. Chapla"<schapla at codeweavers.com>
> Subject: [PATCH 2/2] dsound: Send CaptureBuffer stop notification
> whenever stopping.
> Message-ID:<20210112014123.3909935-2-schapla at codeweavers.com>
>
> Signed-off-by: Shawn M. Chapla<schapla at codeweavers.com>
> ---
> dlls/dsound/capture.c | 7 ++++++-
> dlls/dsound/tests/capture.c | 2 +-
> 2 files changed, 7 insertions(+), 2 deletions(-)
>
> diff --git a/dlls/dsound/capture.c b/dlls/dsound/capture.c
> index 10690f7df0d..02579ca064c 100644
> --- a/dlls/dsound/capture.c
> +++ b/dlls/dsound/capture.c
> @@ -527,6 +527,8 @@ out:
> return DS_OK;
> }
>
> +static void capture_CheckNotify(IDirectSoundCaptureBufferImpl *This, DWORD from, DWORD len);
> +
> static HRESULT WINAPI IDirectSoundCaptureBufferImpl_Stop(IDirectSoundCaptureBuffer8 *iface)
> {
> IDirectSoundCaptureBufferImpl *This = impl_from_IDirectSoundCaptureBuffer8(iface);
> @@ -544,8 +546,10 @@ static HRESULT WINAPI IDirectSoundCaptureBufferImpl_Stop(IDirectSoundCaptureBuff
> TRACE("old This->device->state=%s\n",captureStateString[This->device->state]);
> if (This->device->state == STATE_CAPTURING)
> This->device->state = STATE_STOPPING;
> - else if (This->device->state == STATE_STARTING)
> + else if (This->device->state == STATE_STARTING) {
> This->device->state = STATE_STOPPED;
> + capture_CheckNotify(This->device->capture_buffer, 0, 0);
> + }
> TRACE("new This->device->state=%s\n",captureStateString[This->device->state]);
>
> if(This->device->client){
> @@ -880,6 +884,7 @@ static HRESULT DSOUND_capture_data(DirectSoundCaptureDevice *device)
>
> if(device->state == STATE_STOPPING){
> device->state = STATE_STOPPED;
> + capture_CheckNotify(device->capture_buffer, 0, 0);
> return S_FALSE;
> }
>
> diff --git a/dlls/dsound/tests/capture.c b/dlls/dsound/tests/capture.c
> index fb445794bd1..aa124ebd70d 100644
> --- a/dlls/dsound/tests/capture.c
> +++ b/dlls/dsound/tests/capture.c
> @@ -427,7 +427,7 @@ static void test_capture_buffer(LPDIRECTSOUNDCAPTURE dsco,
>
> /* wait for stop notification */
> rc = WaitForSingleObject(state.event[TIMESTAMP_CAPTURE_NTFCTNS], 3000);
> - todo_wine ok(rc == WAIT_OBJECT_0, "WaitForSingleObject failed: 0x%x\n", rc);
> + ok(rc == WAIT_OBJECT_0, "WaitForSingleObject failed: 0x%x\n", rc);
>
> rc=IDirectSoundCaptureBuffer_Stop(dscbo);
> ok(rc==DS_OK,"IDirectSoundCaptureBuffer_Stop() failed: %08x\n", rc);
More information about the wine-devel
mailing list