[retro-gtk/wip/aplazas/gl-display: 6/12] pixdata: Don't check the rowstride in the constructor



commit 022b6ff6502828263784d438fc857b2d3af4fcca
Author: Adrien Plazas <kekun plazas laposte net>
Date:   Sat Nov 18 08:01:05 2017 +0100

    pixdata: Don't check the rowstride in the constructor
    
    This avoids failing constructing a RetroPixdata for a non-zero
    rowstride, as it is a valid value.

 retro-gtk/retro-pixdata.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
---
diff --git a/retro-gtk/retro-pixdata.c b/retro-gtk/retro-pixdata.c
index 4927ea3..87c2b06 100644
--- a/retro-gtk/retro-pixdata.c
+++ b/retro-gtk/retro-pixdata.c
@@ -167,7 +167,6 @@ retro_pixdata_new (gconstpointer    data,
   RetroPixdata *self;
 
   g_return_val_if_fail (data != NULL, NULL);
-  g_return_val_if_fail (rowstride != 0, NULL);
   g_return_val_if_fail (width != 0, NULL);
   g_return_val_if_fail (height != 0, NULL);
   g_return_val_if_fail (aspect_ratio > 0.f, NULL);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]