mirror of
https://github.com/italicsjenga/rust_minifb.git
synced 2025-01-26 18:46:34 +11:00
Fixed Linux version
This commit is contained in:
parent
48da30a25f
commit
858b07f506
3 changed files with 8 additions and 2 deletions
|
@ -29,7 +29,7 @@ fn main() {
|
|||
|
||||
Status
|
||||
------
|
||||
Currently Mac and Windows has been tested. Linux will be tested and verified soon.
|
||||
Currently Mac, Windows has been Linux has been tested which are the supported platforms for now.
|
||||
|
||||
|
||||
Build instructions
|
||||
|
|
|
@ -19,6 +19,13 @@ extern {
|
|||
fn mfb_close();
|
||||
}
|
||||
|
||||
#[cfg(target_os = "linux")]
|
||||
#[link(name = "X11")]
|
||||
extern {
|
||||
fn mfb_open(name: *const c_char, width: c_int, height: c_int) -> c_int;
|
||||
fn mfb_update(buffer: *mut c_void) -> c_int;
|
||||
fn mfb_close();
|
||||
}
|
||||
|
||||
///
|
||||
/// Open up a window
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
#include <X11/Xlib.h>
|
||||
#include <X11/Xutil.h>
|
||||
#include <MiniFB.h>
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue