On Fri, Sep 20, 2002 at 10:12:30PM +0200, Joaquin Perez wrote:
> 
> I installed Mesa and then, voil?, XGL compiled all right. Now I have just two 
> issues:
> 
> 1) won't run if I'm not root;
> 2) the screen gets repeated twice, with the second image overlapping the 
> first; the end result is that I have the left side of the screen repeated on 
> the right side.
> 
> anyone had this issues?

Someone else reported the repeated image.  Could you try the applied 
patch?

diff -Nur xmame-0.61.1-pr6/src/unix/video-drivers/glgen.c 
xmame-0.61.1-pr7/src/unix/video-drivers/glgen.c
--- xmame-0.61.1-pr6/src/unix/video-drivers/glgen.c     Mon Sep 16 21:06:00 2002
+++ xmame-0.61.1-pr7/src/unix/video-drivers/glgen.c     Thu Sep 19 23:41:23 2002
@@ -899,7 +899,7 @@
   int x=0, y=0, raw_line_len=0;
   GLint format=0;
   GLenum err;
-  unsigned char *line_1, *line_2=0;
+  unsigned char *line_1=0, *line_2=0;
   struct TexSquare *tsq=0;
 
   if (glContext == 0)
@@ -1022,6 +1022,12 @@
   /*raw_line_len = line_2 - line_1;*/
 
   raw_line_len = ((Machine->drv->screen_width + 7) & ~7) + 2 * BITMAP_SAFETY;
+
+  /* multiply line length by pixel size in bytes */
+  if (Machine->color_depth == 15 || Machine->color_depth == 16)
+    raw_line_len *= 2;
+  else if (Machine->color_depth == 32)
+    raw_line_len *= 4;
 
   memory_x_len = raw_line_len / bytes_per_pixel;

Reply via email to