-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #99 from geon/fix-macos-build
Fix macos build
- Loading branch information
Showing
4 changed files
with
32 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
const lib = @import("../../capy.zig"); | ||
|
||
const Monitor = @This(); | ||
|
||
var monitor_list: [0]Monitor = .{}; | ||
|
||
pub fn getList() []Monitor { | ||
return &monitor_list; | ||
} | ||
|
||
pub fn getNumberOfVideoModes(self: *Monitor) usize { | ||
_ = self; | ||
return 0; | ||
} | ||
|
||
pub fn getVideoMode(self: *Monitor, index: usize) lib.VideoMode { | ||
_ = self; | ||
_ = index; | ||
return .{ | ||
.width = 0, | ||
.height = 0, | ||
.refresh_rate_millihertz = 0, | ||
.bit_depth = 0, | ||
}; | ||
} | ||
|
||
pub fn deinitAllPeers() void {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters