projects
/
matthijs
/
ABM2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
* Make the InputTask quit the program on escape.
[matthijs/ABM2.git]
/
ABM2
/
Amaltheia
/
Graphics.cpp
diff --git
a/ABM2/Amaltheia/Graphics.cpp
b/ABM2/Amaltheia/Graphics.cpp
index 270f6c5080e747b06b7c0ae4307994d31ab92d47..68242976390b5fb89757d13d30cbfa065c1b4305 100644
(file)
--- a/
ABM2/Amaltheia/Graphics.cpp
+++ b/
ABM2/Amaltheia/Graphics.cpp
@@
-373,9
+373,6
@@
int Graphics::createDisplay()
std::cerr << "Video query failed: " << SDL_GetError() << std::endl;
return 2;
}
std::cerr << "Video query failed: " << SDL_GetError() << std::endl;
return 2;
}
- ilInit();
- iluInit();
- ilutRenderer(ILUT_OPENGL);
/*
* Now, we want to setup our requested
/*
* Now, we want to setup our requested
@@
-415,6
+412,10
@@
int Graphics::createDisplay()
return 2;
}
return 2;
}
+ ilInit();
+ iluInit();
+ ilutRenderer(ILUT_OPENGL);
+
SDL_SetGamma(1.8, 1.8, 1.8);
float ratio = ( float ) width / ( float ) height;
SDL_SetGamma(1.8, 1.8, 1.8);
float ratio = ( float ) width / ( float ) height;