X-Git-Url: http://pileus.org/git/?p=grits;a=blobdiff_plain;f=examples%2Fshader%2Fshader.c;h=3063c2641a3e085a5a657735698bbb88408f093c;hp=3d6d3d42942af6c3eca3f0ba0732f5acbabd761b;hb=bed3380cb43b0d9cfcb2da34fda9bb36258ae46d;hpb=34322d128e392c5087ae5c9c76e3de8a39d72473 diff --git a/examples/shader/shader.c b/examples/shader/shader.c index 3d6d3d4..3063c26 100644 --- a/examples/shader/shader.c +++ b/examples/shader/shader.c @@ -1,3 +1,20 @@ +/* + * Copyright (C) 2009-2010 Andy Spencer + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + #define GL_GLEXT_PROTOTYPES #include #include @@ -22,7 +39,7 @@ gchar *gl_program_log(guint program, int *_len) void on_key_press(GtkWidget *widget, GdkEventKey *event, gpointer user_data) { g_message("key-press"); - if (event->keyval == GDK_q) + if (event->keyval == GDK_KEY_q) gtk_main_quit(); }