[retro-gtk/to-c: 12/15] rotation: Port Rotation to C
- From: Adrien Plazas <aplazas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [retro-gtk/to-c: 12/15] rotation: Port Rotation to C
- Date: Fri, 7 Jul 2017 07:12:13 +0000 (UTC)
commit 4c0b69f64c4f4ad2a9fe086567605ded3dea4f0a
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.
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]