Mail Archives: djgpp/1992/09/11/23:41:18
From: | gkochanski AT attmail DOT com
|
Date: | 12 Sep 92 02:45:14 GMT
|
To: | djgpp AT sun DOT soe DOT clarkson DOT edu
|
Message-Version: | 2
|
>To: | internet!sun.soe.clarkson.edu!djgpp
|
Original-Date: | Sat Sep 12 02:45:14 GMT 1992
|
Original-From: | attmail!gkochanski (Greg Kochanski )
|
Mts-Message-Id: | <gkochanski2560245150>
|
Ua-Content-Id: | <gkochanski2560245150>
|
Email-Version: | 2
|
Subject: | Graphics Library
|
Ua-Message-Id: | <gkochanski2560245150>
|
Original-To: | attmail!internet!sun.soe.clarkson.edu!djgpp
|
There are a couple of minor bugs in the basic graphics library.
A couple of functions are missing a return statement for the case
where a spot on the color table cannot be allocated.
Diffs are included for the documentation and the affected file.
*** /djgpp2/docs/libgr.doc Sat Apr 18 12:13:26 1992
--- libgr.doc Fri Sep 11 19:02:18 1992
***************
*** 82,85
GrAllocColor(r, g, b) - Allocate a color cell read-only. Other calls to
this function with the same r,g,b will return the same pixel value.
GrAllocCell() - allocate a cell for read-write (write via GrSetColor()).
--- 82,86 -----
GrAllocColor(r, g, b) - Allocate a color cell read-only. Other calls to
this function with the same r,g,b will return the same pixel value.
+ Returns -1 on failure.
GrAllocCell() - allocate a cell for read-write (write via GrSetColor()).
***************
*** 84,87
GrAllocCell() - allocate a cell for read-write (write via GrSetColor()).
GrQueryColor(n, &r, &g, &b) - Query the r,g,b values of a given color cell.
--- 85,89 -----
GrAllocCell() - allocate a cell for read-write (write via GrSetColor()).
+ Returns -1 on failure.
GrQueryColor(n, &r, &g, &b) - Query the r,g,b values of a given color cell.
################## Diffs for colors.c #####################
*** /djgpp2/libsrc/gr/src/colors.c Wed Apr 8 16:16:34 1992
--- colors.c Tue Sep 8 10:21:26 1992
***************
*** 77,80
}
}
}
--- 77,81 -----
}
}
+ return -1;
}
***************
*** 93,96
}
}
}
--- 94,98 -----
}
}
+ return -1;
}
- Raw text -