diff options
author | cinap_lenrek <cinap_lenrek@gmx.de> | 2013-04-22 19:10:09 +0200 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@gmx.de> | 2013-04-22 19:10:09 +0200 |
commit | 8ff7d518c60104f5d6aa033737d079f8f04f9ac0 (patch) | |
tree | 5e3ca81b3c33a106ed6a3191319e03a97d8ddb28 /sys/src/cmd/plot/libplot/fill.c | |
parent | 05d3cc414dbf9657a394738fd5b7cea36f08c8ca (diff) |
- use the double-buffer buffer to allow redrawing on resize events.
specifing -d on the command line now only disables synchronous
drawing events.
- use threaded mouse and keyboard to allow for asynchronous
receoption of quit messages. this allows plot to exit before drawing
is completed. for programs like mapdemo, this is important.
there were two things that needed to get fixed as a result
- replace fprint(2, ...); exits("bad"); with sysfatal. also get rid
of stdio.
- dpoint needed a mach-dependentent (sic) version. otherwise
points on a resized screen will not be properly placed.
Diffstat (limited to 'sys/src/cmd/plot/libplot/fill.c')
-rw-r--r-- | sys/src/cmd/plot/libplot/fill.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/src/cmd/plot/libplot/fill.c b/sys/src/cmd/plot/libplot/fill.c index a33294e50..12eff9931 100644 --- a/sys/src/cmd/plot/libplot/fill.c +++ b/sys/src/cmd/plot/libplot/fill.c @@ -47,8 +47,7 @@ static void polygon(int cnt[], double *pts[], Windrule w, int v){ edges=(Edge *)malloc(nvert*sizeof(Edge)); if(edges==0){ NoSpace: - fprintf(stderr, "polygon: no space\n"); - exits("malloc failed"); + sysfatal("polygon: no space"); } ylist=(Edge **)malloc(Dy(screen->r)*sizeof(Edge *)); if(ylist==0) goto NoSpace; |