ref: 9e58d45fe72b32635abe2770324f51791d9e5b36
parent: af5fa79bc7dfb38c654fd591c4c9d02aad386494
author: cinap_lenrek <[email protected]>
date: Sat Feb 27 21:01:53 EST 2016
gui-osx: fix attachscreen() prototype (untested)
--- a/gui-osx/Makefile
+++ b/gui-osx/Makefile
@@ -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
+++ /dev/null
@@ -1,23 +1,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
+++ /dev/null
@@ -1,10 +1,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
+++ /dev/null
@@ -1,22 +1,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
+++ /dev/null
@@ -1,10 +1,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
+++ b/gui-osx/screen.c
@@ -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;