1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-01 01:17:02 +00:00
freebsd-ports/x11/qrash/files/patch-aj
Steve Price a08d0fc53f Adding qrash version 1.0
An animated musical demo for X11.

PR:		14554
Submitted by:	Trevor Johnson <trevor@jpj.net>
1999-12-27 02:24:30 +00:00

39 lines
1.4 KiB
Plaintext

--- 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;
}