[retro-gtk/wip/aplazas/gl-display-2] Add traces



commit d270de4c20f79d84d50b13cfb7d048758ef26858
Author: Adrien Plazas <kekun plazas laposte net>
Date:   Sat Nov 18 12:39:59 2017 +0100

    Add traces

 retro-gtk/retro-gl-display.c |    4 ++++
 retro-gtk/retro-pixdata.c    |    3 +++
 2 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/retro-gtk/retro-gl-display.c b/retro-gtk/retro-gl-display.c
index fc43dae..33aea97 100644
--- a/retro-gtk/retro-gl-display.c
+++ b/retro-gtk/retro-gl-display.c
@@ -117,6 +117,8 @@ retro_gl_display_load_texture (RetroGLDisplay *self,
                                gint           *texture_height)
 {
   if (self->pixdata != NULL) {
+    g_message ("load texture from pixdata");
+
     *texture_width = retro_pixdata_get_width (self->pixdata);
     *texture_height = retro_pixdata_get_height (self->pixdata);
 
@@ -126,6 +128,8 @@ retro_gl_display_load_texture (RetroGLDisplay *self,
   if (retro_gl_display_get_pixbuf (self) == NULL)
     return FALSE;
 
+  g_message ("load texture from pixbuf");
+
   *texture_width = gdk_pixbuf_get_width (self->pixbuf),
   *texture_height = gdk_pixbuf_get_height (self->pixbuf),
 
diff --git a/retro-gtk/retro-pixdata.c b/retro-gtk/retro-pixdata.c
index 7ee61cd..2be5945 100644
--- a/retro-gtk/retro-pixdata.c
+++ b/retro-gtk/retro-pixdata.c
@@ -372,16 +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);
     format = GL_BGRA;
     type =  GL_UNSIGNED_SHORT_5_5_5_1;
 
     break;
   case RETRO_PIXEL_FORMAT_XRGB8888:
+    g_message ("XRGB8888 stride %llu", self->rowstride);
     format = GL_BGRA;
     type = GL_UNSIGNED_BYTE;
 
     break;
   case RETRO_PIXEL_FORMAT_RGB565:
+    g_message ("RGB565 stride %llu", 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]