|
|
| version 1.2, 2004/08/07 10:53:01 | version 1.4, 2004/08/08 17:45:52 |
|---|---|
| Line 13 static void txt16_nor(UINT8 *dst, UINT8 | Line 13 static void txt16_nor(UINT8 *dst, UINT8 |
| pos = 0; // カウンタは戻る | pos = 0; // カウンタは戻る |
| do { | do { |
| dst[0] = src[pos+0]; | dst[0] = src[pos + 0]; |
| dst[64] = src[pos+1]; | dst[0 + MAKETEXT_STEP] = src[pos + 1]; |
| pos = (pos + 2) & 15; | pos = (pos + 2) & 15; |
| dst++; | dst++; |
| } while(dst < term); | } while(dst < term); |
| Line 28 static void txt16_x2left(UINT8 *dst, UIN | Line 28 static void txt16_x2left(UINT8 *dst, UIN |
| pos = 0; // カウンタは戻る | pos = 0; // カウンタは戻る |
| do { | do { |
| dst[0] = PATx2LEFT(src[pos]); | dst[0] = PATx2LEFT(src[pos]); |
| dst[64] = PATx2LEFT(src[pos+1]); | dst[0 + MAKETEXT_STEP] = PATx2LEFT(src[pos + 1]); |
| pos = (pos + 2) & 15; | pos = (pos + 2) & 15; |
| dst++; | dst++; |
| } while(dst < term); | } while(dst < term); |
| Line 42 static void txt16_x2right(UINT8 *dst, UI | Line 42 static void txt16_x2right(UINT8 *dst, UI |
| pos = 0; // カウンタは戻る | pos = 0; // カウンタは戻る |
| do { | do { |
| dst[0] = PATx2RIGHT(src[pos]); | dst[0] = PATx2RIGHT(src[pos]); |
| dst[64] = PATx2RIGHT(src[pos+1]); | dst[0 + MAKETEXT_STEP] = PATx2RIGHT(src[pos + 1]); |
| pos = (pos + 2) & 15; | pos = (pos + 2) & 15; |
| dst++; | dst++; |
| } while(dst < term); | } while(dst < term); |
| Line 59 static void txt16_Yx2(UINT8 *dst, UINT8 | Line 59 static void txt16_Yx2(UINT8 *dst, UINT8 |
| dat = src[pos]; | dat = src[pos]; |
| pos = (pos + 1) & 15; | pos = (pos + 1) & 15; |
| dst[0] = (UINT8)dat; | dst[0] = (UINT8)dat; |
| dst[64] = (UINT8)dat; | dst[0 + MAKETEXT_STEP] = (UINT8)dat; |
| dst++; | dst++; |
| } while(dst < term); | } while(dst < term); |
| } | } |
| Line 75 static void txt16_x4left(UINT8 *dst, UIN | Line 75 static void txt16_x4left(UINT8 *dst, UIN |
| dat = PATx2LEFT(src[pos]); | dat = PATx2LEFT(src[pos]); |
| pos = (pos + 1) & 15; | pos = (pos + 1) & 15; |
| dst[0] = (UINT8)dat; | dst[0] = (UINT8)dat; |
| dst[64] = (UINT8)dat; | dst[0 + MAKETEXT_STEP] = (UINT8)dat; |
| dst++; | dst++; |
| } while(dst < term); | } while(dst < term); |
| } | } |
| Line 91 static void txt16_x4right(UINT8 *dst, UI | Line 91 static void txt16_x4right(UINT8 *dst, UI |
| dat = PATx2RIGHT(src[pos]); | dat = PATx2RIGHT(src[pos]); |
| pos = (pos + 1) & 15; | pos = (pos + 1) & 15; |
| dst[0] = (UINT8)dat; | dst[0] = (UINT8)dat; |
| dst[64] = (UINT8)dat; | dst[0 + MAKETEXT_STEP] = (UINT8)dat; |
| dst++; | dst++; |
| } while(dst < term); | } while(dst < term); |
| } | } |
| Line 104 static void txt16_right4dot(UINT8 *dst, | Line 104 static void txt16_right4dot(UINT8 *dst, |
| pos = 0; // カウンタは戻る | pos = 0; // カウンタは戻る |
| do { | do { |
| dst[0] = (UINT8)(src[pos] << 4); | dst[0] = (UINT8)(src[pos] << 4); |
| dst[64] = (UINT8)(src[pos+1] << 4); | dst[0 + MAKETEXT_STEP] = (UINT8)(src[pos+1] << 4); |
| pos = (pos + 2) & 15; | pos = (pos + 2) & 15; |
| dst++; | dst++; |
| } while(dst < term); | } while(dst < term); |
| Line 121 static void txt16_right4half(UINT8 *dst, | Line 121 static void txt16_right4half(UINT8 *dst, |
| dat = src[pos] << 4; | dat = src[pos] << 4; |
| pos = 0; | pos = 0; |
| dst[0] = (UINT8)dat; | dst[0] = (UINT8)dat; |
| dst[64] = (UINT8)dat; | dst[0 + MAKETEXT_STEP] = (UINT8)dat; |
| dst++; | dst++; |
| } | } |
| while(dst < term) { | while(dst < term) { |
| dat = src[pos] << 4; | dat = src[pos] << 4; |
| pos = (pos + 2) & 15; | pos = (pos + 2) & 15; |
| dst[0] = (UINT8)dat; | dst[0] = (UINT8)dat; |
| dst[64] = (UINT8)dat; | dst[0 + MAKETEXT_STEP] = (UINT8)dat; |
| dst++; | dst++; |
| } | } |
| } | } |
| Line 144 static void txt16_right4x2(UINT8 *dst, U | Line 144 static void txt16_right4x2(UINT8 *dst, U |
| dat = src[pos] << 4; | dat = src[pos] << 4; |
| pos = (pos + 2) & 15; | pos = (pos + 2) & 15; |
| dst[0] = (UINT)dat; | dst[0] = (UINT)dat; |
| dst[64] = (UINT)dat; | dst[0 + MAKETEXT_STEP] = (UINT)dat; |
| dst++; | dst++; |
| } while(dst < term); | } while(dst < term); |
| } | } |
| Line 160 static void txt16_halfx2(UINT8 *dst, UIN | Line 160 static void txt16_halfx2(UINT8 *dst, UIN |
| dat = src[pos]; | dat = src[pos]; |
| pos = 0; | pos = 0; |
| dst[0] = (UINT8)dat; | dst[0] = (UINT8)dat; |
| dst[64] = (UINT8)dat; | dst[0 + MAKETEXT_STEP] = (UINT8)dat; |
| dst++; | dst++; |
| } | } |
| while(dst < term) { | while(dst < term) { |
| dat = src[pos]; | dat = src[pos]; |
| pos = (pos + 2) & 15; | pos = (pos + 2) & 15; |
| dst[0] = (UINT8)dat; | dst[0] = (UINT8)dat; |
| dst[1] = (UINT8)dat; | dst[0 + MAKETEXT_STEP] = (UINT8)dat; |
| dst++; | dst++; |
| } | } |
| } | } |
| Line 183 static void txt16_halfx4left(UINT8 *dst, | Line 183 static void txt16_halfx4left(UINT8 *dst, |
| dat = PATx2LEFT(src[pos]); | dat = PATx2LEFT(src[pos]); |
| pos = 0; | pos = 0; |
| dst[0] = (UINT8)dat; | dst[0] = (UINT8)dat; |
| dst[64] = (UINT8)dat; | dst[0 + MAKETEXT_STEP] = (UINT8)dat; |
| dst++; | dst++; |
| } | } |
| while(dst < term) { | while(dst < term) { |
| dat = PATx2LEFT(src[pos]); | dat = PATx2LEFT(src[pos]); |
| pos = (pos + 2) & 15; | pos = (pos + 2) & 15; |
| dst[0] = (UINT8)dat; | dst[0] = (UINT8)dat; |
| dst[64] = (UINT8)dat; | dst[0 + MAKETEXT_STEP] = (UINT8)dat; |
| dst++; | dst++; |
| } | } |
| } | } |
| Line 206 static void txt16_halfx4right(UINT8 *dst | Line 206 static void txt16_halfx4right(UINT8 *dst |
| dat = PATx2RIGHT(src[pos]); | dat = PATx2RIGHT(src[pos]); |
| pos = 0; | pos = 0; |
| dst[0] = (UINT8)dat; | dst[0] = (UINT8)dat; |
| dst[64] = (UINT8)dat; | dst[0 + MAKETEXT_STEP] = (UINT8)dat; |
| dst++; | dst++; |
| } | } |
| while(dst < term) { | while(dst < term) { |
| dat = PATx2RIGHT(src[pos]); | dat = PATx2RIGHT(src[pos]); |
| pos = (pos + 2) & 15; | pos = (pos + 2) & 15; |
| dst[0] = (UINT8)dat; | dst[0] = (UINT8)dat; |
| dst[64] = (UINT8)dat; | dst[0 + MAKETEXT_STEP] = (UINT8)dat; |
| dst++; | dst++; |
| } | } |
| } | } |
| Line 232 static void pcg8x2_nor(UINT8 *dst, UINT8 | Line 232 static void pcg8x2_nor(UINT8 *dst, UINT8 |
| dat = src[pos]; | dat = src[pos]; |
| pos = (pos + 1) & 7; | pos = (pos + 1) & 7; |
| dst[0] = (UINT8)dat; | dst[0] = (UINT8)dat; |
| dst[64] = (UINT8)dat; | dst[0 + MAKETEXT_STEP] = (UINT8)dat; |
| dst++; | dst++; |
| } while(dst < term); | } while(dst < term); |
| } | } |
| Line 248 static void pcg8x2_x2left(UINT8 *dst, UI | Line 248 static void pcg8x2_x2left(UINT8 *dst, UI |
| dat = PATx2LEFT(src[pos]); | dat = PATx2LEFT(src[pos]); |
| pos = (pos + 1) & 7; | pos = (pos + 1) & 7; |
| dst[0] = (UINT8)dat; | dst[0] = (UINT8)dat; |
| dst[64] = (UINT8)dat; | dst[0 + MAKETEXT_STEP] = (UINT8)dat; |
| dst++; | dst++; |
| } while(dst < term); | } while(dst < term); |
| } | } |
| Line 264 static void pcg8x2_x2right(UINT8 *dst, U | Line 264 static void pcg8x2_x2right(UINT8 *dst, U |
| dat = PATx2RIGHT(src[pos]); | dat = PATx2RIGHT(src[pos]); |
| pos = (pos + 1) & 7; | pos = (pos + 1) & 7; |
| dst[0] = (UINT8)dat; | dst[0] = (UINT8)dat; |
| dst[64] = (UINT8)dat; | dst[0 + MAKETEXT_STEP] = (UINT8)dat; |
| dst++; | dst++; |
| } while(dst < term); | } while(dst < term); |
| } | } |
| Line 281 static void pcg8x2_Yx2(UINT8 *dst, UINT8 | Line 281 static void pcg8x2_Yx2(UINT8 *dst, UINT8 |
| pos = (pos + 1) & 7; | pos = (pos + 1) & 7; |
| dst[0] = (UINT8)dat; | dst[0] = (UINT8)dat; |
| dst[1] = (UINT8)dat; | dst[1] = (UINT8)dat; |
| dst[64] = (UINT8)dat; | dst[0 + MAKETEXT_STEP] = (UINT8)dat; |
| dst[65] = (UINT8)dat; | dst[1 + MAKETEXT_STEP] = (UINT8)dat; |
| dst += 2; | dst += 2; |
| } while(dst < term); | } while(dst < term); |
| } | } |
| Line 299 static void pcg8x2_x4left(UINT8 *dst, UI | Line 299 static void pcg8x2_x4left(UINT8 *dst, UI |
| pos = (pos + 1) & 7; | pos = (pos + 1) & 7; |
| dst[0] = (UINT8)dat; | dst[0] = (UINT8)dat; |
| dst[1] = (UINT8)dat; | dst[1] = (UINT8)dat; |
| dst[64] = (UINT8)dat; | dst[0 + MAKETEXT_STEP] = (UINT8)dat; |
| dst[65] = (UINT8)dat; | dst[1 + MAKETEXT_STEP] = (UINT8)dat; |
| dst += 2; | dst += 2; |
| } while(dst < term); | } while(dst < term); |
| } | } |
| Line 317 static void pcg8x2_x4right(UINT8 *dst, U | Line 317 static void pcg8x2_x4right(UINT8 *dst, U |
| pos = (pos + 1) & 7; | pos = (pos + 1) & 7; |
| dst[0] = (UINT8)dat; | dst[0] = (UINT8)dat; |
| dst[1] = (UINT8)dat; | dst[1] = (UINT8)dat; |
| dst[64] = (UINT8)dat; | dst[0 + MAKETEXT_STEP] = (UINT8)dat; |
| dst[65] = (UINT8)dat; | dst[1 + MAKETEXT_STEP] = (UINT8)dat; |
| dst += 2; | dst += 2; |
| } while(dst < term); | } while(dst < term); |
| } | } |
| Line 334 static void pcg8x2_right4dot(UINT8 *dst, | Line 334 static void pcg8x2_right4dot(UINT8 *dst, |
| dat = src[pos] << 4; | dat = src[pos] << 4; |
| pos = (pos + 1) & 7; | pos = (pos + 1) & 7; |
| dst[0] = (UINT8)dat; | dst[0] = (UINT8)dat; |
| dst[64] = (UINT8)dat; | dst[0 + MAKETEXT_STEP] = (UINT8)dat; |
| dst++; | dst++; |
| } while(dst < term); | } while(dst < term); |
| } | } |
| Line 351 static void pcg8x2_right4half(UINT8 *dst | Line 351 static void pcg8x2_right4half(UINT8 *dst |
| pos = 0; | pos = 0; |
| dst[0] = (UINT8)dat; | dst[0] = (UINT8)dat; |
| dst[1] = (UINT8)dat; | dst[1] = (UINT8)dat; |
| dst[64] = (UINT8)dat; | dst[0 + MAKETEXT_STEP] = (UINT8)dat; |
| dst[65] = (UINT8)dat; | dst[1 + MAKETEXT_STEP] = (UINT8)dat; |
| dst += 2; | dst += 2; |
| } | } |
| while(dst < term) { | while(dst < term) { |
| Line 360 static void pcg8x2_right4half(UINT8 *dst | Line 360 static void pcg8x2_right4half(UINT8 *dst |
| pos = (pos + 2) & 7; | pos = (pos + 2) & 7; |
| dst[0] = (UINT8)dat; | dst[0] = (UINT8)dat; |
| dst[1] = (UINT8)dat; | dst[1] = (UINT8)dat; |
| dst[64] = (UINT8)dat; | dst[0 + MAKETEXT_STEP] = (UINT8)dat; |
| dst[65] = (UINT8)dat; | dst[1 + MAKETEXT_STEP] = (UINT8)dat; |
| dst += 2; | dst += 2; |
| } | } |
| } | } |
| Line 378 static void pcg8x2_right4x2(UINT8 *dst, | Line 378 static void pcg8x2_right4x2(UINT8 *dst, |
| pos = (pos + 1) & 7; | pos = (pos + 1) & 7; |
| dst[0] = (UINT)dat; | dst[0] = (UINT)dat; |
| dst[1] = (UINT)dat; | dst[1] = (UINT)dat; |
| dst[64] = (UINT)dat; | dst[0 + MAKETEXT_STEP] = (UINT)dat; |
| dst[65] = (UINT)dat; | dst[1 + MAKETEXT_STEP] = (UINT)dat; |
| dst += 2; | dst += 2; |
| } while(dst < term); | } while(dst < term); |
| } | } |
| Line 396 static void pcg8x2_halfx2(UINT8 *dst, UI | Line 396 static void pcg8x2_halfx2(UINT8 *dst, UI |
| pos = 0; | pos = 0; |
| dst[0] = (UINT8)dat; | dst[0] = (UINT8)dat; |
| dst[1] = (UINT8)dat; | dst[1] = (UINT8)dat; |
| dst[64] = (UINT8)dat; | dst[0 + MAKETEXT_STEP] = (UINT8)dat; |
| dst[65] = (UINT8)dat; | dst[1 + MAKETEXT_STEP] = (UINT8)dat; |
| dst += 2; | dst += 2; |
| } | } |
| while(dst < term) { | while(dst < term) { |
| Line 405 static void pcg8x2_halfx2(UINT8 *dst, UI | Line 405 static void pcg8x2_halfx2(UINT8 *dst, UI |
| pos = (pos + 2) & 7; | pos = (pos + 2) & 7; |
| dst[0] = (UINT8)dat; | dst[0] = (UINT8)dat; |
| dst[1] = (UINT8)dat; | dst[1] = (UINT8)dat; |
| dst[64] = (UINT8)dat; | dst[0 + MAKETEXT_STEP] = (UINT8)dat; |
| dst[65] = (UINT8)dat; | dst[1 + MAKETEXT_STEP] = (UINT8)dat; |
| dst += 2; | dst += 2; |
| } | } |
| } | } |
| Line 423 static void pcg8x2_halfx4left(UINT8 *dst | Line 423 static void pcg8x2_halfx4left(UINT8 *dst |
| pos = 0; | pos = 0; |
| dst[0] = (UINT8)dat; | dst[0] = (UINT8)dat; |
| dst[1] = (UINT8)dat; | dst[1] = (UINT8)dat; |
| dst[64] = (UINT8)dat; | dst[0 + MAKETEXT_STEP] = (UINT8)dat; |
| dst[65] = (UINT8)dat; | dst[1 + MAKETEXT_STEP] = (UINT8)dat; |
| dst += 2; | dst += 2; |
| } | } |
| while(dst < term) { | while(dst < term) { |
| Line 432 static void pcg8x2_halfx4left(UINT8 *dst | Line 432 static void pcg8x2_halfx4left(UINT8 *dst |
| pos = (pos + 2) & 7; | pos = (pos + 2) & 7; |
| dst[0] = (UINT8)dat; | dst[0] = (UINT8)dat; |
| dst[1] = (UINT8)dat; | dst[1] = (UINT8)dat; |
| dst[64] = (UINT8)dat; | dst[0 + MAKETEXT_STEP] = (UINT8)dat; |
| dst[65] = (UINT8)dat; | dst[1 + MAKETEXT_STEP] = (UINT8)dat; |
| dst += 2; | dst += 2; |
| } | } |
| } | } |
| Line 450 static void pcg8x2_halfx4right(UINT8 *ds | Line 450 static void pcg8x2_halfx4right(UINT8 *ds |
| pos = 0; | pos = 0; |
| dst[0] = (UINT8)dat; | dst[0] = (UINT8)dat; |
| dst[1] = (UINT8)dat; | dst[1] = (UINT8)dat; |
| dst[64] = (UINT8)dat; | dst[0 + MAKETEXT_STEP] = (UINT8)dat; |
| dst[65] = (UINT8)dat; | dst[1 + MAKETEXT_STEP] = (UINT8)dat; |
| dst += 2; | dst += 2; |
| } | } |
| while(dst < term) { | while(dst < term) { |
| Line 459 static void pcg8x2_halfx4right(UINT8 *ds | Line 459 static void pcg8x2_halfx4right(UINT8 *ds |
| pos = (pos + 2) & 7; | pos = (pos + 2) & 7; |
| dst[0] = (UINT8)dat; | dst[0] = (UINT8)dat; |
| dst[1] = (UINT8)dat; | dst[1] = (UINT8)dat; |
| dst[64] = (UINT8)dat; | dst[0 + MAKETEXT_STEP] = (UINT8)dat; |
| dst[65] = (UINT8)dat; | dst[1 + MAKETEXT_STEP] = (UINT8)dat; |
| dst += 2; | dst += 2; |
| } | } |
| } | } |
| Line 469 static void pcg8x2_halfx4right(UINT8 *ds | Line 469 static void pcg8x2_halfx4right(UINT8 *ds |
| // ---- | // ---- |
| static void draw_nop(UINT8 *dst, UINT8 *term, const UINT8 *src) { | static void draw_nop(UINT8 *dst, UINT8 *term, const UINT8 *src) { |
| (void)dst; | |
| (void)term; | |
| (void)src; | |
| } | } |