Skip to content

Commit

Permalink
gtkglext: migrate patches
Browse files Browse the repository at this point in the history
  • Loading branch information
DomT4 committed Oct 7, 2015
1 parent f1d5d5b commit 21e7e01
Show file tree
Hide file tree
Showing 10 changed files with 25,730 additions and 0 deletions.
23,028 changes: 23,028 additions & 0 deletions gtkglext/patch-configure.diff

Large diffs are not rendered by default.

11 changes: 11 additions & 0 deletions gtkglext/patch-examples-pixmap-mixed.c.diff
@@ -0,0 +1,11 @@
--- examples/pixmap-mixed.c.orig 2003-09-14 02:23:33.000000000 -0700
+++ examples/pixmap-mixed.c 2010-07-26 22:28:55.000000000 -0700
@@ -154,7 +154,7 @@
gpointer data)
{
gdk_draw_drawable (widget->window,
- widget->style->fg_gc[GTK_WIDGET_STATE (widget)],
+ widget->style->fg_gc[gtk_widget_get_state (widget)],
pixmap,
event->area.x, event->area.y,
event->area.x, event->area.y,
11 changes: 11 additions & 0 deletions gtkglext/patch-examples-pixmap.c.diff
@@ -0,0 +1,11 @@
--- examples/pixmap.c.orig 2003-09-14 02:23:33.000000000 -0700
+++ examples/pixmap.c 2010-07-26 22:29:22.000000000 -0700
@@ -137,7 +137,7 @@
gpointer data)
{
gdk_draw_drawable (widget->window,
- widget->style->fg_gc[GTK_WIDGET_STATE (widget)],
+ widget->style->fg_gc[gtk_widget_get_state (widget)],
pixmap,
event->area.x, event->area.y,
event->area.x, event->area.y,
14 changes: 14 additions & 0 deletions gtkglext/patch-gdk-gdkglglext.h.diff
@@ -0,0 +1,14 @@
--- gdk/gdkglglext.h.orig 2009-08-24 14:47:39.000000000 +0400
+++ gdk/gdkglglext.h 2009-08-24 14:48:31.000000000 +0400
@@ -30,7 +30,11 @@
#include <windows.h>
#endif

+#ifdef GDK_WINDOWING_QUARTZ
+#include <OpenGL/gl.h>
+#else
#include <GL/gl.h>
+#endif

#include <gdk/gdkgldefs.h>
#include <gdk/gdkglquery.h>
14 changes: 14 additions & 0 deletions gtkglext/patch-gdk-gdkglquery.c.diff
@@ -0,0 +1,14 @@
--- gdk/gdkglquery.c.orig 2009-08-24 14:43:25.000000000 +0400
+++ gdk/gdkglquery.c 2009-08-24 14:44:18.000000000 +0400
@@ -27,7 +27,11 @@
#include <windows.h>
#endif

+#ifdef GDK_WINDOWING_QUARTZ
+#include <OpenGL/gl.h>
+#else
#include <GL/gl.h>
+#endif

/*
* This code is based on glutExtensionSupported().
16 changes: 16 additions & 0 deletions gtkglext/patch-gdk-gdkglshapes.c.diff
@@ -0,0 +1,16 @@
--- gdk/gdkglshapes.c.orig 2009-08-24 14:43:49.000000000 +0400
+++ gdk/gdkglshapes.c 2009-08-24 14:46:28.000000000 +0400
@@ -28,8 +28,13 @@
#include <windows.h>
#endif

+#ifdef GDK_WINDOWING_QUARTZ
+#include <OpenGL/gl.h>
+#include <OpenGL/glu.h>
+#else
#include <GL/gl.h>
#include <GL/glu.h>
+#endif

/*
* The following code is imported from GLUT.

0 comments on commit 21e7e01

Please sign in to comment.