make mac work

This commit is contained in:
rsc 2004-04-19 23:58:57 +00:00
parent b829c35470
commit 67e4fce4f5
8 changed files with 12 additions and 153 deletions

View file

@ -1,4 +1,5 @@
#include "mplot.h"
int mapminx, mapminy, mapmaxx, mapmaxy;
Image *offscreen;
/*
* Clear the window from x0, y0 to x1, y1 (inclusive) to color c

View file

@ -29,8 +29,8 @@ struct seg {
/*
* display parameters
*/
int clipminx, clipminy, clipmaxx, clipmaxy; /* clipping rectangle */
int mapminx, mapminy, mapmaxx, mapmaxy; /* centered square */
extern int clipminx, clipminy, clipmaxx, clipmaxy; /* clipping rectangle */
extern int mapminx, mapminy, mapmaxx, mapmaxy; /* centered square */
/*
* Prototypes
*/

View file

@ -1,4 +1,5 @@
#include "mplot.h"
int clipminx, clipminy, clipmaxx, clipmaxy;
void sbox(double xx0, double yy0, double xx1, double yy1){
int x0=SCX(xx0), y0=SCY(yy0), x1=SCX(xx1), y1=SCY(yy1);
int t;