summaryrefslogtreecommitdiff
path: root/x11/qrash/files/patch-aj
diff options
context:
space:
mode:
authorSteve Price <steve@FreeBSD.org>1999-12-27 02:24:30 +0000
committerSteve Price <steve@FreeBSD.org>1999-12-27 02:24:30 +0000
commita08d0fc53fa06d278c80df68a9a40b88e357591b (patch)
tree85772236e476a67404beaab94dc888d9a81e4bcc /x11/qrash/files/patch-aj
parentAdding p5-Apache-DBI version 0.87. (diff)
Adding qrash version 1.0
An animated musical demo for X11. PR: 14554 Submitted by: Trevor Johnson <trevor@jpj.net>
Notes
Notes: svn path=/head/; revision=24143
Diffstat (limited to 'x11/qrash/files/patch-aj')
-rw-r--r--x11/qrash/files/patch-aj38
1 files changed, 38 insertions, 0 deletions
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<sizey; i++ ) {
+- register mask = 0x80 >> (offsetx&7);
++ register int mask = 0x80 >> (offsetx&7);
+ for( int j=0,k=0; j<sizex; j++ ) {
+ if( from[k] & mask ) to[j]=color;
+ mask >>= 1; if( !mask ) { mask = 0x80; k++; }
+@@ -285,7 +285,7 @@
+ int stepy = (sizeY<<16)/h; y=0;
+ for( int i=0; i<size_y; i++, y+=stepy ) {
+ from1 = from+(y>>16)*bytesPerLine;
+- register stepx = (sizeX<<16)/w;
++ register int stepx = (sizeX<<16)/w;
+ for( int j=0, x=0; j<size_x; j++, x+=stepx ) {
+ if( from1[x>>16] ) to[j] = from1[x>>16];
+ }
+@@ -316,7 +316,7 @@
+ int stepy = (sizeY<<16)/h; y=0;
+ for( int i=0; i<size_y; i++, y+=stepy ) {
+ from1 = from+(y>>16)*bytesPerLine;
+- register stepx = (sizeX<<16)/w;
++ register int stepx = (sizeX<<16)/w;
+ for( int j=0, x=0; j<size_x; j++, x+=stepx ) {
+ if( from1[x>>16] ) to[j] = color;
+ }
+@@ -347,7 +347,7 @@
+ int stepy = (sizeY<<16)/h; y=0;
+ for( int i=0; i<size_y; i++, y+=stepy ) {
+ from1 = from+(y>>16)*bytesPerLine;
+- register stepx = (sizeX<<16)/w;
++ register int stepx = (sizeX<<16)/w;
+ for( int j=0, x=0; j<size_x; j++, x+=stepx ) {
+ to[j] = from1[x>>16]+to[j] <= 255 ? from1[x>>16]+to[j] : 255;
+ }