M gnot/screen.c => gnot/screen.c +4 -8
@@ 9,7 9,10 @@
#include <libg.h>
#include <gnot.h>
-#include "mouse.h"
+#include "screen.h"
+
+/* gnot screen.h defines gbitblt to use balu; doesn't work here */
+#undef gbitblt
#define MINX 8
@@ 78,13 81,6 @@ screenputc(int c)
}
}
-/* Use the balu version */
-void
-gbitblt(GBitmap *d, Point p, GBitmap *s, Rectangle r, Fcode f)
-{
- balubitblt(d, p, s, r, f);
-}
-
void
screenputs(char *s, int n)
{
A gnot/screen.h => gnot/screen.h +31 -0
@@ 0,0 1,31 @@
+typedef struct Mouseinfo Mouseinfo;
+typedef struct Cursorinfo Cursorinfo;
+
+struct Mouseinfo{
+ /*
+ * First three fields are known in some l.s's
+ */
+ int dx; /* interrupt-time delta */
+ int dy;
+ int track; /* update cursor on screen */
+ Mouse;
+ int changed; /* mouse structure changed since last read */
+ Rendez r;
+ int newbuttons; /* interrupt time access only */
+ int clock; /* check mouse.track on RTE */
+};
+
+struct Cursorinfo{
+ Cursor;
+ Lock;
+ int visible; /* on screen */
+ Rectangle r; /* location */
+};
+
+
+extern Mouseinfo mouse;
+extern Cursorinfo cursor;
+
+extern void mouseupdate(int);
+
+#define gbitblt(d,p,s,r,f) balubitblt(d,p,s,r,f)
M port/devbit.c => port/devbit.c +1 -1
@@ 9,7 9,7 @@
#include <libg.h>
#include <gnot.h>
-#include "mouse.h"
+#include "screen.h"
extern GFont *defont;
M power/main.c => power/main.c +1 -1
@@ 377,7 377,7 @@ exit(void)
splhi();
for(i=0; i<2000000; i++)
;
-/* duartreset(); /**/
+ duartenable0();
firmware();
}
M ss/screen.c => ss/screen.c +1 -1
@@ 9,7 9,7 @@
#include <libg.h>
#include <gnot.h>
-#include "mouse.h"
+#include "screen.h"
#define MINX 8
A ss/screen.h => ss/screen.h +29 -0
@@ 0,0 1,29 @@
+typedef struct Mouseinfo Mouseinfo;
+typedef struct Cursorinfo Cursorinfo;
+
+struct Mouseinfo{
+ /*
+ * First three fields are known in some l.s's
+ */
+ int dx; /* interrupt-time delta */
+ int dy;
+ int track; /* update cursor on screen */
+ Mouse;
+ int changed; /* mouse structure changed since last read */
+ Rendez r;
+ int newbuttons; /* interrupt time access only */
+ int clock; /* check mouse.track on RTE */
+};
+
+struct Cursorinfo{
+ Cursor;
+ Lock;
+ int visible; /* on screen */
+ Rectangle r; /* location */
+};
+
+
+extern Mouseinfo mouse;
+extern Cursorinfo cursor;
+
+extern void mouseupdate(int);