aboutsummaryrefslogtreecommitdiffstats
path: root/src/x11/headless.rs
diff options
context:
space:
mode:
authortomaka <pierre.krieger1708@gmail.com>2014-11-05 17:01:57 +0100
committertomaka <pierre.krieger1708@gmail.com>2014-11-05 17:01:57 +0100
commit6208c59a48070aa3c58bb0372e95d1c946abe673 (patch)
tree91711433533faa6b44f62eb752d54c0a39129e12 /src/x11/headless.rs
parentc63511e9e670e865b891b6097546fcafeac6446f (diff)
parent584bb3e7df751d55aad189eacd85b1cd6c5aa5c5 (diff)
downloadglutin-6208c59a48070aa3c58bb0372e95d1c946abe673.tar.gz
glutin-6208c59a48070aa3c58bb0372e95d1c946abe673.zip
Merge pull request #100 from tomaka/correct-creation-error
Use a proper error type for window creation
Diffstat (limited to 'src/x11/headless.rs')
-rw-r--r--src/x11/headless.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/x11/headless.rs b/src/x11/headless.rs
index 4f4eb16..71232e5 100644
--- a/src/x11/headless.rs
+++ b/src/x11/headless.rs
@@ -1,4 +1,5 @@
use HeadlessRendererBuilder;
+use CreationError;
use libc;
use std::{mem, ptr};
use super::ffi;
@@ -11,7 +12,7 @@ pub struct HeadlessContext {
}
impl HeadlessContext {
- pub fn new(builder: HeadlessRendererBuilder) -> Result<HeadlessContext, String> {
+ pub fn new(builder: HeadlessRendererBuilder) -> Result<HeadlessContext, CreationError> {
Ok(HeadlessContext {
width: builder.dimensions.0,
height: builder.dimensions.1,