Index: [thread] [date] [subject] [author]
  From: Aki M Laukkanen <amlaukka@cc.helsinki.fi>
  To  : ggi-develop@eskimo.com
  Date: Fri, 18 Jun 1999 22:47:53 +0300 (EET DST)

beta2.0b2.1 fixes

Hello, I had to make these small changes to get my test applications to
work on the fbdev target (vesafb):

o stdformat not setup so crossblit falls back to the unearthly
slow unmap/map version.
o vesafb does not support panning and hence not multiple frames.

[apologies for possible problems, copying diff by hand]

--- libggi/display/fbdev/mode.c  Mon May 17 12:00:00 1999
+++ libggi-2.0b2.1/display/fbdev/mode.c  Mon May 17 12:00:00 1999
@@ -38,6 +38,7 @@
 #include <ggi/internal/ggi-dl.h>
 #include <ggi/display/fbdev.h>

+#include "../common/pixfmt-setup.inc"
 #include "../common/ggi-auto.inc"
 #include "../common/gt-auto.inc"

@@ -425,6 +426,8 @@
		LIBGGI_PIXFMT(vis)->bg_mask = 0xf000;
		break;
	}
+
+	setup_pixfmt(LIBGGI_PIXFMT(vis), gt);
	_ggi_build_pixfmt(LIBGGI_PIXFMT(vis));

	/* Set up DirectBuffers */
@@ -671,6 +674,11 @@

	if (mode->virt.y < mode->visible.y) {
		mode->virt.y = mode->visible.y;
+		err = -1;
+	}
+
+	if (!priv->orig_fix.ypanstep && mode->frames > 1) {
+		mode->frames = 1;
		err = -1;
	}


-- 
D.

Index: [thread] [date] [subject] [author]