[DEV] update the etk init

This commit is contained in:
Edouard DUPIN 2015-03-26 21:21:38 +01:00
parent 9bd62966ca
commit ce00a23475
5 changed files with 5 additions and 5 deletions

2
external/etk vendored

@ -1 +1 @@
Subproject commit 10d5116851d51facbae446ad00b7de535c3b58ef Subproject commit a06aee64cc8f05ee33e51f9299c66f17960ff121

View File

@ -247,7 +247,7 @@ int ewol::run(ewol::context::Application* _application, int _argc, const char *_
// Creat and relaese ewol::Context interface: // Creat and relaese ewol::Context interface:
void IOs::createInterface() { void IOs::createInterface() {
etk::setArgZero(l_argv[0]); etk::init(l_argc, l_argv);
EWOL_INFO("Create new interface"); EWOL_INFO("Create new interface");
interface = new MacOSInterface(l_application, l_argc, l_argv); interface = new MacOSInterface(l_application, l_argc, l_argv);
l_application = nullptr; l_application = nullptr;

View File

@ -173,7 +173,7 @@ void MacOs::setKeyboardMove(ewol::key::Special& _keyboardMode, enum ewol::key::k
* @return std IO * @return std IO
*/ */
int ewol::run(ewol::context::Application* _application, int _argc, const char *_argv[]) { int ewol::run(ewol::context::Application* _application, int _argc, const char *_argv[]) {
etk::setArgZero(_argv[0]); etk::init(_argc, _argv);
interface = new MacOSInterface(_application, _argc, _argv); interface = new MacOSInterface(_application, _argc, _argv);
if (nullptr == interface) { if (nullptr == interface) {
EWOL_CRITICAL("Can not create the X11 interface ... MEMORY allocation error"); EWOL_CRITICAL("Can not create the X11 interface ... MEMORY allocation error");

View File

@ -478,7 +478,7 @@ class WindowsContext : public ewol::Context {
* @return std IO * @return std IO
*/ */
int ewol::run(ewol::context::Application* _application, int _argc, const char *_argv[]) { int ewol::run(ewol::context::Application* _application, int _argc, const char *_argv[]) {
etk::setArgZero(_argv[0]); etk::init(_argc, _argv);
GLenum err = glewInit(); GLenum err = glewInit();
if (GLEW_OK != err) { if (GLEW_OK != err) {
// Problem: glewInit failed, something is seriously wrong. // Problem: glewInit failed, something is seriously wrong.

View File

@ -1323,7 +1323,7 @@ class X11Interface : public ewol::Context {
* @return std IO * @return std IO
*/ */
int ewol::run(ewol::context::Application* _application, int _argc, const char *_argv[]) { int ewol::run(ewol::context::Application* _application, int _argc, const char *_argv[]) {
etk::setArgZero(_argv[0]); etk::init(_argc, _argv);
X11Interface* interface = new X11Interface(_application, _argc, _argv); X11Interface* interface = new X11Interface(_application, _argc, _argv);
if (interface == nullptr) { if (interface == nullptr) {
EWOL_CRITICAL("Can not create the X11 interface ... MEMORY allocation error"); EWOL_CRITICAL("Can not create the X11 interface ... MEMORY allocation error");