mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-30 21:49:25 +00:00
39 lines
1.4 KiB
Plaintext
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;
|
||
|
}
|