[retro-gtk] retro-framebuffer: Make get_pixels() return gconstpointer
- From: Adrien Plazas <aplazas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [retro-gtk] retro-framebuffer: Make get_pixels() return gconstpointer
- Date: Mon, 23 Mar 2020 13:54:32 +0000 (UTC)
commit 27cb9ff5e263ffc843e2a92d24e02011c438b89f
Author: Alexander Mikhaylenko <alexm gnome org>
Date: Fri Jan 31 22:48:58 2020 +0500
retro-framebuffer: Make get_pixels() return gconstpointer
We're going to have a similar function for runner process soon, change the
return type to distinguish them better and to reflect its purpose better.
retro-gtk/retro-core.c | 2 +-
shared/retro-framebuffer-private.h | 2 +-
shared/retro-framebuffer.c | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/retro-gtk/retro-core.c b/retro-gtk/retro-core.c
index c2a2a6f..e44719d 100644
--- a/retro-gtk/retro-core.c
+++ b/retro-gtk/retro-core.c
@@ -903,7 +903,7 @@ video_output_cb (IpcRunner *runner,
gsize rowstride;
guint width, height;
gdouble aspect_ratio;
- gpointer pixels;
+ gconstpointer pixels;
retro_framebuffer_lock (self->framebuffer);
diff --git a/shared/retro-framebuffer-private.h b/shared/retro-framebuffer-private.h
index 4ddda32..5b4a3a5 100644
--- a/shared/retro-framebuffer-private.h
+++ b/shared/retro-framebuffer-private.h
@@ -40,7 +40,7 @@ gsize retro_framebuffer_get_rowstride (RetroFramebuffer *self);
guint retro_framebuffer_get_width (RetroFramebuffer *self);
guint retro_framebuffer_get_height (RetroFramebuffer *self);
gdouble retro_framebuffer_get_aspect_ratio (RetroFramebuffer *self);
-gpointer retro_framebuffer_get_pixels (RetroFramebuffer *self);
+gconstpointer retro_framebuffer_get_pixels (RetroFramebuffer *self);
#endif
diff --git a/shared/retro-framebuffer.c b/shared/retro-framebuffer.c
index 22ec576..621792f 100644
--- a/shared/retro-framebuffer.c
+++ b/shared/retro-framebuffer.c
@@ -282,7 +282,7 @@ retro_framebuffer_get_aspect_ratio (RetroFramebuffer *self)
return self->metadata->aspect_ratio;
}
-gpointer
+gconstpointer
retro_framebuffer_get_pixels (RetroFramebuffer *self)
{
gsize size;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]