summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorneoraider <devnull@localhost>2007-10-23 21:44:05 +0200
committerneoraider <devnull@localhost>2007-10-23 21:44:05 +0200
commit0791033f7f6b187245150e203a3cfe1a79c908d7 (patch)
tree1427a3b24694de2c13db5ead4e1968a5ff29c1b5
parent65bcb3040dfae00625a95ae1ffd02720513ded13 (diff)
downloadzoomedit-0791033f7f6b187245150e203a3cfe1a79c908d7.tar
zoomedit-0791033f7f6b187245150e203a3cfe1a79c908d7.zip
zoomedit: Einige ?nderungen in zoomedit.cpp.
-rw-r--r--zoomedit.cpp14
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;
}