summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--base/gxscanc.c36
1 files changed, 20 insertions, 16 deletions
diff --git a/base/gxscanc.c b/base/gxscanc.c
index f71bc0624..23197da88 100644
--- a/base/gxscanc.c
+++ b/base/gxscanc.c
@@ -1108,11 +1108,12 @@ static void mark_line_app(cursor *cr, fixed sx, fixed sy, fixed ex, fixed ey)
1108 } 1108 }
1109 1109
1110 /* Phase 3 */ 1110 /* Phase 3 */
1111 if (phase3_y_steps > 0) 1111 if (phase3_y_steps > 0) {
1112 output_cursor(cr, sx); 1112 output_cursor(cr, sx);
1113 cr->left = sx; 1113 cr->left = sx;
1114 cr->right = ex; 1114 cr->right = ex;
1115 cr->y -= phase3_y_steps; 1115 cr->y -= phase3_y_steps;
1116 }
1116 } else { 1117 } else {
1117 /* Lines decreasing in x. */ 1118 /* Lines decreasing in x. */
1118 int phase1_x_steps, phase3_x_steps; 1119 int phase1_x_steps, phase3_x_steps;
@@ -1162,11 +1163,12 @@ static void mark_line_app(cursor *cr, fixed sx, fixed sy, fixed ex, fixed ey)
1162 } 1163 }
1163 1164
1164 /* Phase 3 */ 1165 /* Phase 3 */
1165 if (phase3_y_steps > 0) 1166 if (phase3_y_steps > 0) {
1166 output_cursor(cr, sx); 1167 output_cursor(cr, sx);
1167 cr->right = sx; 1168 cr->right = sx;
1168 cr->left = ex; 1169 cr->left = ex;
1169 cr->y -= phase3_y_steps; 1170 cr->y -= phase3_y_steps;
1171 }
1170 } 1172 }
1171 } 1173 }
1172} 1174}
@@ -2381,11 +2383,12 @@ static void mark_line_tr_app(cursor_tr *cr, fixed sx, fixed sy, fixed ex, fixed
2381 } 2383 }
2382 2384
2383 /* Phase 3 */ 2385 /* Phase 3 */
2384 if (phase3_y_steps > 0) 2386 if (phase3_y_steps > 0) {
2385 output_cursor_tr(cr, sx, id); 2387 output_cursor_tr(cr, sx, id);
2386 cr->left = sx; 2388 cr->left = sx;
2387 cr->right = ex; 2389 cr->right = ex;
2388 cr->y -= phase3_y_steps; 2390 cr->y -= phase3_y_steps;
2391 }
2389 } else { 2392 } else {
2390 /* Lines decreasing in x. */ 2393 /* Lines decreasing in x. */
2391 int phase1_x_steps, phase3_x_steps; 2394 int phase1_x_steps, phase3_x_steps;
@@ -2437,11 +2440,12 @@ static void mark_line_tr_app(cursor_tr *cr, fixed sx, fixed sy, fixed ex, fixed
2437 } 2440 }
2438 2441
2439 /* Phase 3 */ 2442 /* Phase 3 */
2440 if (phase3_y_steps > 0) 2443 if (phase3_y_steps > 0) {
2441 output_cursor_tr(cr, sx, id); 2444 output_cursor_tr(cr, sx, id);
2442 cr->right = sx; 2445 cr->right = sx;
2443 cr->left = ex; 2446 cr->left = ex;
2444 cr->y -= phase3_y_steps; 2447 cr->y -= phase3_y_steps;
2448 }
2445 } 2449 }
2446 } 2450 }
2447} 2451}