shithub: drawterm

Download patch

ref: 9e58d45fe72b32635abe2770324f51791d9e5b36
parent: af5fa79bc7dfb38c654fd591c4c9d02aad386494
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Sat Feb 27 20:01:53 EST 2016

gui-osx: fix attachscreen() prototype (untested)

--- a/gui-osx/Makefile	Sat Feb 27 19:50:31 2016
+++ b/gui-osx/Makefile	Sat Feb 27 20:01:53 2016
@@ -3,10 +3,6 @@
 LIB=libgui.a
 
 OFILES=\
-	alloc.$O\
-	cload.$O\
-	draw.$O\
-	load.$O\
 	screen.$O
 
 default: $(LIB)
--- a/gui-osx/alloc.c	Sat Feb 27 19:50:31 2016
+++ /dev/null	Thu Apr  7 21:41:36 2022
@@ -1,23 +0,0 @@
-#include <u.h>
-#include <libc.h>
-#include <draw.h>
-#include <memdraw.h>
-
-Memimage*
-allocmemimage(Rectangle r, ulong chan)
-{
-	return _allocmemimage(r, chan);
-}
-
-void
-freememimage(Memimage *i)
-{
-	_freememimage(i);
-}
-
-void
-memfillcolor(Memimage *i, ulong val)
-{
-	_memfillcolor(i, val);
-}
-
--- a/gui-osx/cload.c	Sat Feb 27 19:50:31 2016
+++ /dev/null	Thu Apr  7 21:41:36 2022
@@ -1,10 +0,0 @@
-#include <u.h>
-#include <libc.h>
-#include <draw.h>
-#include <memdraw.h>
-
-int
-cloadmemimage(Memimage *i, Rectangle r, uchar *data, int ndata)
-{
-	return _cloadmemimage(i, r, data, ndata);
-}
--- a/gui-osx/draw.c	Sat Feb 27 19:50:31 2016
+++ /dev/null	Thu Apr  7 21:41:36 2022
@@ -1,22 +0,0 @@
-#include <u.h>
-#include <libc.h>
-#include <draw.h>
-#include <memdraw.h>
-
-void
-memimagedraw(Memimage *dst, Rectangle r, Memimage *src, Point sp, Memimage *mask, Point mp, int op)
-{
-	_memimagedraw(_memimagedrawsetup(dst, r, src, sp, mask, mp, op));
-}
-
-ulong
-pixelbits(Memimage *m, Point p)
-{
-	return _pixelbits(m, p);
-}
-
-void
-memimageinit(void)
-{
-	_memimageinit();
-}
--- a/gui-osx/load.c	Sat Feb 27 19:50:31 2016
+++ /dev/null	Thu Apr  7 21:41:36 2022
@@ -1,10 +0,0 @@
-#include <u.h>
-#include <libc.h>
-#include <draw.h>
-#include <memdraw.h>
-
-int
-loadmemimage(Memimage *i, Rectangle r, uchar *data, int ndata)
-{
-	return _loadmemimage(i, r, data, ndata);
-}
--- a/gui-osx/screen.c	Sat Feb 27 19:50:31 2016
+++ b/gui-osx/screen.c	Sat Feb 27 20:01:53 2016
@@ -581,7 +581,7 @@
 }
 
 uchar*
-attachscreen(Rectangle *r, ulong *chan, int *depth, int *width, int *softscreen, void **X)
+attachscreen(Rectangle *r, ulong *chan, int *depth, int *width, int *softscreen)
 {
 	*r = gscreen->r;
 	*chan = gscreen->chan;