From a08d0fc53fa06d278c80df68a9a40b88e357591b Mon Sep 17 00:00:00 2001 From: Steve Price Date: Mon, 27 Dec 1999 02:24:30 +0000 Subject: Adding qrash version 1.0 An animated musical demo for X11. PR: 14554 Submitted by: Trevor Johnson --- x11/qrash/files/patch-aj | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 x11/qrash/files/patch-aj (limited to 'x11/qrash/files/patch-aj') diff --git a/x11/qrash/files/patch-aj b/x11/qrash/files/patch-aj new file mode 100644 index 000000000000..12ecae9cebcd --- /dev/null +++ b/x11/qrash/files/patch-aj @@ -0,0 +1,38 @@ +--- image.cc.orig Sun Dec 26 17:22:13 1999 ++++ image.cc Sun Dec 26 17:22:52 1999 +@@ -221,7 +221,7 @@ + uchar* from = data + offsety*bytesPerLine + offsetx/8; + uchar* to = page + y*vidBytesPerLine + x; + for( int i=0; i> (offsetx&7); ++ register int mask = 0x80 >> (offsetx&7); + for( int j=0,k=0; j>= 1; if( !mask ) { mask = 0x80; k++; } +@@ -285,7 +285,7 @@ + int stepy = (sizeY<<16)/h; y=0; + for( int i=0; i>16)*bytesPerLine; +- register stepx = (sizeX<<16)/w; ++ register int stepx = (sizeX<<16)/w; + for( int j=0, x=0; j>16] ) to[j] = from1[x>>16]; + } +@@ -316,7 +316,7 @@ + int stepy = (sizeY<<16)/h; y=0; + for( int i=0; i>16)*bytesPerLine; +- register stepx = (sizeX<<16)/w; ++ register int stepx = (sizeX<<16)/w; + for( int j=0, x=0; j>16] ) to[j] = color; + } +@@ -347,7 +347,7 @@ + int stepy = (sizeY<<16)/h; y=0; + for( int i=0; i>16)*bytesPerLine; +- register stepx = (sizeX<<16)/w; ++ register int stepx = (sizeX<<16)/w; + for( int j=0, x=0; j>16]+to[j] <= 255 ? from1[x>>16]+to[j] : 255; + } -- cgit v1.2.3