shithub: rd

Download patch

ref: 70d7ad71e24e0073b46b08657d6c60cde5399581
parent: f7df554e50eb80101ef34c4b8614748de6a38d7c
author: Yaroslav Kolomiiets <yarikos@gmail.com>
date: Tue Aug 9 12:13:03 EDT 2016

most modules lost draw.h

--- a/alloc.c
+++ b/alloc.c
@@ -1,6 +1,5 @@
 #include <u.h>
 #include <libc.h>
-#include <draw.h>
 #include "dat.h"
 #include "fns.h"
 
--- a/cap.c
+++ b/cap.c
@@ -1,6 +1,5 @@
 #include <u.h>
 #include <libc.h>
-#include <draw.h>
 #include "dat.h"
 #include "fns.h"
 
--- a/draw.c
+++ b/draw.c
@@ -11,6 +11,9 @@
 
 static	void	drawupd1(Rdp*,Imgupd*);
 
+extern	/* load.c */
+	int	loadbmp(Image*,Rectangle,uchar*,int,uchar*);
+	int	loadrle(Image*,Rectangle,uchar*,int,uchar*);
 
 void
 drawimgupdate(Rdp *c, Share* s)
--- a/eclip.c
+++ b/eclip.c
@@ -7,7 +7,6 @@
  */
 #include <u.h>
 #include <libc.h>
-#include <draw.h>
 #include "dat.h"
 #include "fns.h"
 
--- a/fns.h
+++ b/fns.h
@@ -1,6 +1,3 @@
-/* load.c */
-int		loadbmp(Image*,Rectangle,uchar*,int,uchar*);
-int		loadrle(Image*,Rectangle,uchar*,int,uchar*);
 
 /* mcs.c */
 int		mcschan(uchar*,uchar*);
--- a/kbd.c
+++ b/kbd.c
@@ -1,7 +1,6 @@
 #include <u.h>
 #include <libc.h>
 #include <keyboard.h>
-#include <draw.h>
 #include "dat.h"
 #include "fns.h"
 
--- a/mcs.c
+++ b/mcs.c
@@ -1,6 +1,5 @@
 #include <u.h>
 #include <libc.h>
-#include <draw.h>
 #include "dat.h"
 #include "fns.h"
 
--- a/mpas.c
+++ b/mpas.c
@@ -1,7 +1,6 @@
 /* Based on: T.128 Multipoint application sharing */
 #include <u.h>
 #include <libc.h>
-#include <draw.h>
 #include "dat.h"
 #include "fns.h"
 
--- a/mppc.c
+++ b/mppc.c
@@ -4,7 +4,6 @@
  */
 #include <u.h>
 #include <libc.h>
-#include <draw.h>
 #include "dat.h"
 #include "fns.h"
 
--- a/msg.c
+++ b/msg.c
@@ -1,6 +1,5 @@
 #include <u.h>
 #include <libc.h>
-#include <draw.h>
 #include "dat.h"
 #include "fns.h"
 
--- a/rle.c
+++ b/rle.c
@@ -6,7 +6,6 @@
 */
 #include <u.h>
 #include <libc.h>
-#include <draw.h>
 #include "dat.h"
 #include "fns.h"
 
@@ -14,6 +13,11 @@
 {
 	Bits4=	15,
 	Bits5=	31,
+};
+
+enum
+{
+	DWhite		= 0xFFFFFFFF,
 };
 
 enum
--- a/x224.c
+++ b/x224.c
@@ -1,6 +1,5 @@
 #include <u.h>
 #include <libc.h>
-#include <draw.h>
 #include "dat.h"
 #include "fns.h"