Skip to content

[BUG, BACKEND: D3D9] Clipboard paste broken for D3D9 backend #858

@PavelSharp

Description

@PavelSharp

The clipboard paste functionality in the Nuklear D3D9 backend is broken due to an incorrect check when opening the clipboard. In the current implementation of nk_d3d9_clipboard_paste:

if (!IsClipboardFormatAvailable(CF_UNICODETEXT) && OpenClipboard(NULL)) {
return;
}

This differs from other DirectX backends (D3D11, D3D12), where the paste function works correctly and this bug does not occur.

As enhancement. However, it is worth noting that even in those backends the order of operations is somewhat questionable: they call IsClipboardFormatAvailable before opening the clipboard with OpenClipboard(NULL).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions