Update of /cvsroot/fink/dists/10.2/unstable/main/finkinfo/x11
In directory sc8-pr-cvs1:/tmp/cvs-serv18519

Added Files:
        xace-0.4-1.info xace-0.4-1.patch 
Log Message:
 

--- NEW FILE: xace-0.4-1.info ---
Package: xace
Version: 0.4
Revision: 1
Depends: x11
Source: http://hem.passagen.se/tiletech/xace-%v.tar.gz
Source-MD5: 4c84a0c6b56840323e60ca90fa15491e
Patch: %f.patch
DocFiles: COPYING README forth.txt
CompileScript: <<
 mv xmain.c xmain.c.orig
 cat xmain.c.orig | sed s^ace.rom^%p/share/xace/ace.rom^ > xmain.c
 make -f makefile.org
<<
InstallScript: <<
 install -d %i/bin/
 install xace %i/bin/
 install -d %i/share/xace
 install ace.rom %i/share/xace/
<<
Description: Jupiter ACE emulator
DescDetail: <<
This emulator was made by Edward Patel. The Jupiter ACE is the real
*outsider* micro from the 80's. Instead of having BASIC as the
programming language it had FORTH. It was designed by two guys who had
worked at Sinclair Research Ltd and was responsible for the famous
Sinclair ZX81 and ZX Spectrum. They are Steven Vickers and Richard
Altwasser.  For a FAQ (1999) see
http://users.aol.com/autismuk/ace/faq.htm
<<
License: GPL
Homepage: http://hem.passagen.se/tiletech/ace.htm
Maintainer: Jorge Acereda <[EMAIL PROTECTED]>




--- NEW FILE: xace-0.4-1.patch ---
diff -Nur xace-0.4/xmain.c xace-0.4-patched/xmain.c
--- xace-0.4/xmain.c    Mon Feb 15 13:54:15 1999
+++ xace-0.4-patched/xmain.c    Tue Jan 28 00:44:10 2003
@@ -526,7 +526,8 @@
          return 1;
       }
       xshminfo.shmid=shmget(IPC_PRIVATE,
-               ximage->bytes_per_line*(ximage->height+1),IPC_CREAT|0777);
+                           ximage->bytes_per_line*(ximage->height+1),
+                           IPC_CREAT|0777);
       if(xshminfo.shmid == -1){
          perror("Couldn't perform shmget");
          return 1;
@@ -545,8 +546,9 @@
    } else
 #endif
    {
-      ximage=XCreateImage(display,DefaultVisual(display,screen),
-             DefaultDepth(display,screen),ZPixmap,0,NULL,hsize,vsize,
+     ximage=XCreateImage(display,DefaultVisual(display,screen),
+                        DefaultDepth(display,screen),
+                        ZPixmap,0,NULL,hsize,vsize,
              8,0);
       if(!ximage){
          perror("XCreateImage failed");
@@ -560,7 +562,7 @@
       scrn_freq=rrnoshm;
    }
    linelen=ximage->bytes_per_line/SCALE;
-   if(linelen!=32 && linelen!=256 && linelen!=512)
+   if(linelen!=32 && linelen!=256 && linelen!=512 && linelen!=1024)
       fprintf(stderr,"Line length=%d; expect strange results!\n",linelen);
 #if 0
    if(linelen==32 &&
@@ -1584,6 +1586,22 @@
                       /* XXX doesn't support SCALE>1 */
                       image[(y*8+b)*linelen+x]=~d;
                     }
+                  else if (linelen == 1024)
+                    {
+                      unsigned * t;
+                      
+                      tmp=image+((y*8+b)*hsize+x*8)*SCALE*4;
+                      t = (unsigned *) tmp;
+                      mask=256;
+                      while((mask>>=1)) 
+                        {
+                          m=((d&mask)?black:white);
+                          for(j=0;j<SCALE;j++)
+                            for(k=0;k<SCALE;k++)
+                              t[j*hsize+k]=m;
+                          t+=SCALE;
+                        }
+                    }
                   else
                     {
                       /* assume 8-bit */
@@ -1602,7 +1620,7 @@
                         }
 #else
                       {
-                        m=((d&mask)?black:white);
+                        m=((d&mask)?black:white);
                         for(j=0;j<SCALE;j++)
                           for(k=0;k<SCALE;k++)
                             if (linelen==512) 




-------------------------------------------------------
This SF.net email is sponsored by: ValueWeb: 
Dedicated Hosting for just $79/mo with 500 GB of bandwidth! 
No other company gives more support or power for your dedicated server
http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/
_______________________________________________
Fink-commits mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-commits

Reply via email to