gl: clear w, h on reinit
[libpicofe.git] / gl.h
diff --git a/gl.h b/gl.h
index f87afb0..bddacdc 100644 (file)
--- a/gl.h
+++ b/gl.h
@@ -1,7 +1,11 @@
+#ifndef LIBPICOFE_GL_H
+#define LIBPICOFE_GL_H
+
 #ifdef HAVE_GLES
 
-int gl_init(void *display, void *window, int *quirks);
-int gl_flip(const void *fb, int w, int h);
+int  gl_init(void *display, void *window, int *quirks, int w, int h);
+void gl_announce(void);
+int  gl_flip(const void *fb, int w, int h);
 void gl_finish(void);
 
 /* for external flips */
@@ -10,10 +14,13 @@ extern void *gl_es_surface;
 
 #else
 
-static __inline int gl_init(void *display, void *window, int *quirks)
+static __inline int gl_init(void *display, void *window, int *quirks, int w, int h)
 {
   return -1;
 }
+static __inline void gl_announce(void)
+{
+}
 static __inline int gl_flip(const void *fb, int w, int h)
 {
   return -1;
@@ -28,3 +35,5 @@ static __inline void gl_finish(void)
 #endif
 
 #define GL_QUIRK_ACTIVATE_RECREATE 1
+
+#endif // LIBPICOFE_GL_H