Skip to content

Redox backend does not compile #420

Description

@emoon

src/os/redox/mod.rs fails to build for target_os = \"redox\":

  • Line 14: use std::{cmp, std::ffi::c_void}; — invalid path (std::std::ffi).
  • Lines 5 + 9: Renderer imported twice, once from the nonexistent crate::os::redox::orbclient path.
  • Line 265: process_events iterates self.window.events() (mutable borrow) while calling self.map_key_to_minifb inside the loop — E0502.
  • Methods lib.rs delegates to are missing: update_with_buffer_stride, update_rate, set_rate, get_delta_time, topmost, set_background_color, get_position.

Also, once it builds: EventOption::Scroll overwrites mouse_pos with scroll deltas and never sets mouse_scroll (lines 288-290), and set_icon/get_mouse_down(Back/Forward) are unimplemented!() panics on legal API calls (lines 104-106, 162-163).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugredoxRedox OS backend

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions