summaryrefslogtreecommitdiff
path: root/dviware/beebe/src/setrule.h
diff options
context:
space:
mode:
Diffstat (limited to 'dviware/beebe/src/setrule.h')
-rw-r--r--dviware/beebe/src/setrule.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/dviware/beebe/src/setrule.h b/dviware/beebe/src/setrule.h
new file mode 100644
index 0000000000..ac54111f2a
--- /dev/null
+++ b/dviware/beebe/src/setrule.h
@@ -0,0 +1,30 @@
+/* -*-C-*- setrule.h */
+/*-->setrule*/
+/**********************************************************************/
+/****************************** setrule *******************************/
+/**********************************************************************/
+
+void
+setrule(height, width, update_h)
+register UNSIGN32 height, width;
+register BOOLEAN update_h;
+
+{ /* draw a rule with bottom left corner at (h,v) */
+
+ if ((height > 0) && (width > 0)) /* non-empty rule */
+
+#if BBNBITGRAPH
+ fillrect(hh+xscreen, YSIZE-vv+yscreen,
+ rulepxl(width,conv) , rulepxl(height,conv));
+#else
+ fillrect(hh, YSIZE-vv,
+ rulepxl(width,conv), rulepxl(height,conv));
+#endif
+
+ if (update_h)
+ {
+ h += (INT32)width;
+ hh += rulepxl(width, conv);
+ hh = fixpos(hh-lmargin,h,conv) + lmargin;
+ }
+}