[retro-gtk/count: 3/5] video-filter: Drop the COUNT value
- From: Adrien Plazas <aplazas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [retro-gtk/count: 3/5] video-filter: Drop the COUNT value
- Date: Sat, 12 Sep 2020 10:54:59 +0000 (UTC)
commit dbd3a0435f4479d6c0f87e4524a649d6bf8f68b7
Author: Adrien Plazas <kekun plazas laposte net>
Date: Fri Sep 11 09:54:04 2020 +0200
video-filter: Drop the COUNT value
It's not per-se a value and hence shouldn't be presented as such.
retro-gtk/retro-gl-display.c | 2 ++
retro-gtk/retro-video-filter.h | 2 --
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/retro-gtk/retro-gl-display.c b/retro-gtk/retro-gl-display.c
index ae21e7c1..0b4a08de 100644
--- a/retro-gtk/retro-gl-display.c
+++ b/retro-gtk/retro-gl-display.c
@@ -14,6 +14,8 @@
#include "retro-pixbuf.h"
#include "retro-pixdata.h"
+#define RETRO_VIDEO_FILTER_COUNT (RETRO_VIDEO_FILTER_CRT + 1)
+
struct _RetroGLDisplay
{
GtkGLArea parent_instance;
diff --git a/retro-gtk/retro-video-filter.h b/retro-gtk/retro-video-filter.h
index beaff7f7..efbfc69a 100644
--- a/retro-gtk/retro-video-filter.h
+++ b/retro-gtk/retro-video-filter.h
@@ -19,7 +19,6 @@ GType retro_video_filter_get_type (void) G_GNUC_CONST;
* @RETRO_VIDEO_FILTER_SMOOTH: a smooth but blurry video filer
* @RETRO_VIDEO_FILTER_SHARP: a sharp video filter showing every pixel
* @RETRO_VIDEO_FILTER_CRT: a video filter mimicking CRT screens
- * @RETRO_VIDEO_FILTER_COUNT: the number of video filters
*
* Represents the filters that can be applied to the video output.
*/
@@ -28,7 +27,6 @@ typedef enum
RETRO_VIDEO_FILTER_SMOOTH,
RETRO_VIDEO_FILTER_SHARP,
RETRO_VIDEO_FILTER_CRT,
- RETRO_VIDEO_FILTER_COUNT,
} RetroVideoFilter;
RetroVideoFilter retro_video_filter_from_string (const gchar *filter);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]