From e4f787acffbc0a743daa5b429804489be5e13390 Mon Sep 17 00:00:00 2001 From: Lars Brinkhoff Date: Sun, 18 Apr 2021 16:28:26 +0200 Subject: [PATCH] KA10: Move III display down slightly. To make the III wholine visible. --- PDP10/ka10_iii.c | 6 +++--- display/iii.c | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/PDP10/ka10_iii.c b/PDP10/ka10_iii.c index 89b29ce..3130fea 100644 --- a/PDP10/ka10_iii.c +++ b/PDP10/ka10_iii.c @@ -647,7 +647,7 @@ t_stat iii_reset (DEVICE *dptr) static void draw_point(int x, int y, int b, UNIT *uptr) { - if (x < -512 || x > 512 || y < -512 || y > 512) + if (x < -512 || x > 512 || y < -501 || y > 522) uptr->STATUS |= WRP_FBIT; iii_point(x, y, b); } @@ -656,9 +656,9 @@ draw_point(int x, int y, int b, UNIT *uptr) static void draw_line(int x1, int y1, int x2, int y2, int b, UNIT *uptr) { - if (x1 < -512 || x1 > 512 || y1 < -512 || y1 > 512) + if (x1 < -512 || x1 > 512 || y1 < -501 || y1 > 522) uptr->STATUS |= WRP_FBIT; - if (x2 < -512 || x2 > 512 || y2 < -512 || y2 > 512) + if (x2 < -512 || x2 > 512 || y2 < -501 || y2 > 522) uptr->STATUS |= WRP_FBIT; iii_draw_line(x1, y1, x2, y2, b); } diff --git a/display/iii.c b/display/iii.c index 396f5d5..b38243d 100644 --- a/display/iii.c +++ b/display/iii.c @@ -39,7 +39,7 @@ int iii_init(void *dev, int debug) void iii_point (int x, int y, int l) { - display_point(x + 512, y + 512, l, 0); + display_point(x + 512, y + 501, l, 0); } int iii_cycle(int us, int slowdown) @@ -59,9 +59,9 @@ iii_draw_line(int x1, int y1, int x2, int y2, int l) /* Origin us to 0 */ x1 += 512; - y1 += 512; + y1 += 501; x2 += 512; - y2 += 512; + y2 += 501; /* Always draw top to bottom */ if (y1 > y2) {