--- a/Depth24Image.st Tue Apr 08 14:32:24 2003 +0200
+++ b/Depth24Image.st Thu Apr 10 16:24:41 2003 +0200
@@ -2345,7 +2345,7 @@
!
magnifyRowFrom:srcBytes offset:srcStart
- into:dstBytes offset:dstStart factor:mX
+ into:dstBytes offset:dstStart factor:mX
"magnify a single pixel row - can only magnify by integer factors"
@@ -2360,28 +2360,29 @@
if (__bothSmallInteger(srcStart, dstStart)
&& __bothSmallInteger(w, mX)
&& __isByteArray(srcBytes) && __isByteArray(dstBytes)) {
- _mag = __intVal(mX);
- srcP = __ByteArrayInstPtr(srcBytes)->ba_element - 1 + __intVal(srcStart);
- dstP = __ByteArrayInstPtr(dstBytes)->ba_element - 1 + __intVal(dstStart);
- _pixels = __intVal(w);
-
- while (_pixels--) {
- byte1 = *srcP;
- byte2 = *(srcP+1);
- byte3 = *(srcP+2);
- srcP += 3;
- for (i=_mag; i>0; i--) {
- *dstP = byte1;
- *(dstP+1) = byte2;
- *(dstP+2) = byte3;
- dstP += 3;
- }
- }
- RETURN (self);
+ _mag = __intVal(mX);
+ srcP = __ByteArrayInstPtr(srcBytes)->ba_element - 1 + __intVal(srcStart);
+ dstP = __ByteArrayInstPtr(dstBytes)->ba_element - 1 + __intVal(dstStart);
+ _pixels = __intVal(w);
+
+ while (_pixels--) {
+ byte1 = *srcP;
+ byte2 = *(srcP+1);
+ byte3 = *(srcP+2);
+ srcP += 3;
+ for (i=_mag; i>0; i--) {
+ *dstP = byte1;
+ *(dstP+1) = byte2;
+ *(dstP+2) = byte3;
+ dstP += 3;
+ }
+ }
+ RETURN (self);
}
-%}
-.
- self primitiveFailed
+%}.
+ super
+ magnifyRowFrom:srcBytes offset:srcStart
+ into:dstBytes offset:dstStart factor:mX
! !
!Depth24Image methodsFor:'queries'!
@@ -2519,5 +2520,5 @@
!Depth24Image class methodsFor:'documentation'!
version
- ^ '$Header: /cvs/stx/stx/libview/Depth24Image.st,v 1.74 2001-09-13 15:16:04 cg Exp $'
+ ^ '$Header: /cvs/stx/stx/libview/Depth24Image.st,v 1.75 2003-04-10 14:24:38 cg Exp $'
! !