aboutsummaryrefslogtreecommitdiff
path: root/field.c
diff options
context:
space:
mode:
authorJeffrey Armstrong <jeff@approximatrix.com>2020-04-22 17:38:27 -0400
committerJeffrey Armstrong <jeff@approximatrix.com>2020-04-22 17:38:27 -0400
commit24892a2a9d39e02444e4bf3e90fa23e6349a0810 (patch)
treec197ec907b049732fb4b4c615209059d36e1722e /field.c
parenta69422d7cb92492c8bdbd373fd5bbe1a08aa31ba (diff)
downloadgemworm-24892a2a9d39e02444e4bf3e90fa23e6349a0810.zip
gemworm-24892a2a9d39e02444e4bf3e90fa23e6349a0810.tar.gz
Fixed some undrawn space around border of the field.HEADmaster
Diffstat (limited to 'field.c')
-rw-r--r--field.c25
1 files changed, 25 insertions, 0 deletions
diff --git a/field.c b/field.c
index fee076b..8b50e10 100644
--- a/field.c
+++ b/field.c
@@ -276,6 +276,31 @@ GRECT crc;
}
}
+ /* Rounding can cause some blank space, so... */
+ crc.g_x = cellwidth*CELLW;
+ crc.g_y = play->g_y;
+ crc.g_w = play->g_w - crc.g_x;
+ crc.g_h = play->g_h;
+ crc.g_x += play->g_x;
+ if(crc.g_w > 0 && (dirty == NULL || rc_intersect(dirty, &crc))) {
+ vsf_color(h_vdi, (WORD)RED);
+ pts[0] = crc.g_x; pts[1] = crc.g_y;
+ pts[2] = crc.g_x+crc.g_w; pts[3] = crc.g_y+crc.g_h;
+ v_bar(h_vdi,pts);
+ }
+
+ crc.g_x = play->g_x;
+ crc.g_y = cellheight*CELLH;
+ crc.g_w = play->g_w;
+ crc.g_h = play->g_h - crc.g_y;
+ crc.g_y += play->g_y;
+ if(crc.g_h > 0 && (dirty == NULL || rc_intersect(dirty, &crc))) {
+ vsf_color(h_vdi, (WORD)RED);
+ pts[0] = crc.g_x; pts[1] = crc.g_y;
+ pts[2] = crc.g_x+crc.g_w; pts[3] = crc.g_y+crc.g_h;
+ v_bar(h_vdi,pts);
+ }
+
/* Done! */
}