[retro-gtk/wip/aplazas/gl-display-2] Add traces
- From: Adrien Plazas <aplazas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [retro-gtk/wip/aplazas/gl-display-2] Add traces
- Date: Sat, 18 Nov 2017 11:49:12 +0000 (UTC)
commit 6ef6ab178d5b9a90abb80d63f3f661e48a4270d1
Author: Adrien Plazas <kekun plazas laposte net>
Date: Sat Nov 18 12:48:56 2017 +0100
Add traces
retro-gtk/retro-gl-display.c | 2 ++
retro-gtk/retro-pixdata.c | 6 +++---
2 files changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/retro-gtk/retro-gl-display.c b/retro-gtk/retro-gl-display.c
index 33aea97..61cdd56 100644
--- a/retro-gtk/retro-gl-display.c
+++ b/retro-gtk/retro-gl-display.c
@@ -56,6 +56,7 @@ static void
retro_gl_display_set_pixdata (RetroGLDisplay *self,
RetroPixdata *pixdata)
{
+ g_message ("set pixdata");
if (self->pixdata == pixdata)
return;
@@ -481,6 +482,7 @@ void
retro_gl_display_set_pixbuf (RetroGLDisplay *self,
GdkPixbuf *pixbuf)
{
+ g_message ("set pixbuf");
g_return_if_fail (RETRO_IS_GL_DISPLAY (self));
if (self->pixbuf == pixbuf)
diff --git a/retro-gtk/retro-pixdata.c b/retro-gtk/retro-pixdata.c
index 2be5945..37d6367 100644
--- a/retro-gtk/retro-pixdata.c
+++ b/retro-gtk/retro-pixdata.c
@@ -372,19 +372,19 @@ retro_pixdata_load_gl_texture (RetroPixdata *self)
switch (self->pixel_format) {
case RETRO_PIXEL_FORMAT_XRGB1555:
- g_message ("XRGB1555 stride %llu", self->rowstride);
+ g_message ("XRGB1555 stride %llux%llu stride %llu", self->width, self->height, self->rowstride);
format = GL_BGRA;
type = GL_UNSIGNED_SHORT_5_5_5_1;
break;
case RETRO_PIXEL_FORMAT_XRGB8888:
- g_message ("XRGB8888 stride %llu", self->rowstride);
+ g_message ("XRGB8888 %llux%llu stride %llu", self->width, self->height, self->rowstride);
format = GL_BGRA;
type = GL_UNSIGNED_BYTE;
break;
case RETRO_PIXEL_FORMAT_RGB565:
- g_message ("RGB565 stride %llu", self->rowstride);
+ g_message ("RGB565 stride %llux%llu stride %llu", self->width, self->height, self->rowstride);
format = GL_BGR;
type = GL_UNSIGNED_SHORT_5_6_5;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]