not-fl3/egui-miniquad

Doesn't build on macos

HughHoyland opened this issue · 2 comments

The methods have different signatures on MacOS:

    #[cfg(not(target_os = "macos"))]
    fn set_clipboard(&mut self, text: String) {
        mq::window::clipboard_set(&text);
    }

    #[cfg(not(target_os = "macos"))]
    fn get_clipboard(&mut self) -> Option<String> {
        mq::window::clipboard_get()
    }

    #[cfg(target_os = "macos")]
    fn set_clipboard(&mut self, _mq_ctx: &mut mq::Context, text: String) {...}

    #[cfg(target_os = "macos")]
    fn get_clipboard(&mut self, _mq_ctx: &mut mq::Context) -> Option<String> {...}

but their calls only use the non-macos signature.

As the _mq_ctx argument is no longer used, can it be removed please?

sure, feel free to send a PR!

Oh, sure. Sorry, had a brain freeze. I couldn't fix the previous version I tried.
#67