glfw: add Monitor.setGamma; return concrete Error types
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
ed83d5128c
commit
5238e52d76
2 changed files with 28 additions and 4 deletions
|
|
@ -90,7 +90,7 @@ pub inline fn terminate() void {
|
|||
/// @remarks This function may be called before glfw.init.
|
||||
///
|
||||
/// @thread_safety This function must only be called from the main thread.
|
||||
pub inline fn initHint(hint: c_int, value: c_int) !void {
|
||||
pub inline fn initHint(hint: c_int, value: c_int) Error!void {
|
||||
c.glfwInitHint(hint, value);
|
||||
try getError();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue