[retro-gtk] rotation: Port Rotation to C



commit 204980ee3b09836a8d749c7fbe67c5b77c843ad3
Author: Adrien Plazas <kekun plazas laposte net>
Date:   Thu Jul 6 12:55:04 2017 +0200

    rotation: Port Rotation to C
    
    This help porting the library to C.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=777489

 retro-gtk/retro-core.h     |    1 +
 retro-gtk/retro-rotation.h |   20 ++++++++++++++++++++
 retro-gtk/video.vala       |   10 ----------
 3 files changed, 21 insertions(+), 10 deletions(-)
---
diff --git a/retro-gtk/retro-core.h b/retro-gtk/retro-core.h
index c645d4f..3d4a578 100644
--- a/retro-gtk/retro-core.h
+++ b/retro-gtk/retro-core.h
@@ -4,6 +4,7 @@
 #define RETRO_CORE_H
 
 #include "retro-gtk-internal.h"
+#include "retro-rotation.h"
 
 G_BEGIN_DECLS
 
diff --git a/retro-gtk/retro-rotation.h b/retro-gtk/retro-rotation.h
new file mode 100644
index 0000000..2cd673d
--- /dev/null
+++ b/retro-gtk/retro-rotation.h
@@ -0,0 +1,20 @@
+#ifndef RETRO_ROTATION_H
+#define RETRO_ROTATION_H
+
+#include <glib.h>
+
+G_BEGIN_DECLS
+
+typedef enum _RetroRotation RetroRotation;
+
+enum _RetroRotation
+{
+  NONE,
+  COUNTERCLOCKWISE,
+  UPSIDEDOWN,
+  CLOCKWISE,
+};
+
+G_END_DECLS
+
+#endif /* RETRO_ROTATION_H */
diff --git a/retro-gtk/video.vala b/retro-gtk/video.vala
index bd2669c..ee0f357 100644
--- a/retro-gtk/video.vala
+++ b/retro-gtk/video.vala
@@ -3,16 +3,6 @@
 namespace Retro {
 
 /**
- * The rotation type of a display.
- */
-public enum Rotation {
-       NONE,
-       COUNTERCLOCKWISE,
-       UPSIDEDOWN,
-       CLOCKWISE
-}
-
-/**
  * Pixel formats used by Libretro.
  */
 public enum PixelFormat {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]