glfw: add Monitor.setGamma; return concrete Error types

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2021-07-17 20:50:29 -07:00
parent ed83d5128c
commit 5238e52d76
2 changed files with 28 additions and 4 deletions

View file

@ -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();
}