From 0791033f7f6b187245150e203a3cfe1a79c908d7 Mon Sep 17 00:00:00 2001 From: neoraider Date: Tue, 23 Oct 2007 19:44:05 +0000 Subject: zoomedit: Einige ?nderungen in zoomedit.cpp. --- zoomedit.cpp | 14 +++++--------- 1 file 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 #include -#include -#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; } -- cgit v1.2.3