[prev in list] [next in list] [prev in thread] [next in thread] 

List:       wine-devel
Subject:    Re: wined3d: Fix context backup window handling.
From:       Henri Verbeet <hverbeet () gmail ! com>
Date:       2017-07-25 21:38:01
Message-ID: CAOsNvwxDuw+2ybSOtQXBL3c0QpewePFQvXyzhVMraLbZO5ScUA () mail ! gmail ! com
[Download RAW message or body]

On 25 July 2017 at 22:35, Sebastian Lackner <sebastian@fds-team.de> wrote:
> -    if (dc == context->hdc && !context->hdc_is_private && WindowFromDC(dc) != context->win_handle)
> +    if (dc == context->hdc && !private && WindowFromDC(dc) != context->win_handle)

While that works, I think I'd feel happier about the code if the "dc",
"private" and "format" parameters just went away.

I.e., the reason they still exist is mostly the backup window path in
context_set_gl_context(), and I don't think there's a reason that
particular path shouldn't just set the appropriate (hdc,
hdc_is_private, hdc_has_format) fields in the context instead.



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic