pkgsrc/graphics/libggi/patches/patch-ae
2008-07-13 15:00:48 +00:00

20 lines
617 B
Text

$NetBSD: patch-ae,v 1.3 2008/07/13 15:00:48 obache Exp $
--- display/vgl/visual.c.orig 2008-06-05 08:54:51 +0300
+++ display/vgl/visual.c 2008-06-05 08:55:35 +0300
@@ -210,13 +210,12 @@ static int GGIopen(ggi_visual *vis, stru
error = GGI_ENOMEM;
goto error;
}
- VGL_PRIV(vis) = malloc(sizeof(struct vgl_priv));
- if (VGL_PRIV(vis) == NULL) {
+ LIBGGI_PRIVATE(vis) = priv = malloc(sizeof(struct vgl_priv));
+ if (priv == NULL) {
do_cleanup(vis);
error = GGI_ENOMEM;
goto error;
}
- priv = VGL_PRIV(vis);
memset(priv, 0, sizeof(*priv));
memset(priv->vgl_palred, 0, sizeof(priv->vgl_palred));