diff options
author | Jeffrey Armstrong <jeff@approximatrix.com> | 2020-04-22 17:38:27 -0400 |
---|---|---|
committer | Jeffrey Armstrong <jeff@approximatrix.com> | 2020-04-22 17:38:27 -0400 |
commit | 24892a2a9d39e02444e4bf3e90fa23e6349a0810 (patch) | |
tree | c197ec907b049732fb4b4c615209059d36e1722e | |
parent | a69422d7cb92492c8bdbd373fd5bbe1a08aa31ba (diff) | |
download | gemworm-24892a2a9d39e02444e4bf3e90fa23e6349a0810.zip gemworm-24892a2a9d39e02444e4bf3e90fa23e6349a0810.tar.gz |
-rw-r--r-- | field.c | 25 | ||||
-rw-r--r-- | worm.c | 4 |
2 files changed, 29 insertions, 0 deletions
@@ -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! */
}
@@ -46,6 +46,10 @@ #include "player.h"
#include "scores.h"
+#ifndef BORDER
+#define BORDER 0x8000
+#endif
+
WORD app_wflags = NAME | CLOSER | MOVER | SIZER;
WORD app_accid;
WORD app_appid;
|