diff options
Diffstat (limited to 'zoomedit.cpp')
-rw-r--r-- | zoomedit.cpp | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/zoomedit.cpp b/zoomedit.cpp index e72aa55..1f199a4 100644 --- a/zoomedit.cpp +++ b/zoomedit.cpp @@ -1,26 +1,22 @@ #include <gtk/gtk.h> #include <gtk/gtkgl.h> -#include <stdlib.h> -#include "Level.h" #include "WindowManager.h" int main(int argc, char *argv[]) { - GdkGLConfig *glconfig; - gtk_init(&argc, &argv); gtk_gl_init(&argc, &argv); - glconfig = gdk_gl_config_new_by_mode((GdkGLConfigMode)(GDK_GL_MODE_RGB | GDK_GL_MODE_DOUBLE)); + GdkGLConfig *glconfig = gdk_gl_config_new_by_mode((GdkGLConfigMode)(GDK_GL_MODE_RGB | GDK_GL_MODE_DOUBLE)); if(!glconfig) glconfig = gdk_gl_config_new_by_mode(GDK_GL_MODE_RGB); if(!glconfig) { - g_print ("*** No appropriate OpenGL-capable visual found.\n"); - exit (1); + g_print("*** No appropriate OpenGL-capable visual found.\n"); + return 1; } - WindowManager window(glconfig); + WindowManager windowManager(glconfig); - window.run(); + windowManager.run(); return 0; } |