f1c4f705a1
Removed the config.h thing from the .h's in the source dir.
...
So we should be all set now :)
Kent
--
mein@cs.umn.edu
2002-12-27 13:11:01 +00:00
9bb91f9e57
Fix so that rgba targa files view correctly in gimp:
...
Submitted to bf-committers by Chris Want
Kent
Index: targa.c
===================================================================
RCS file: /cvs01/blender/source/blender/imbuf/intern/targa.c,v
retrieving revision 1.4
diff -u -r1.4 targa.c
--- targa.c 2002/12/20 01:29:14 1.4
+++ targa.c 2002/12/21 09:50:24
@@ -289,6 +289,12 @@
if (flags & IB_ttob) buf[17] ^= 0x20;
+ /* Don't forget to indicate that your 32 bit
+ * targa uses 8 bits for the alpha channel! */
+ if (ibuf->depth==32) {
+ buf[17] |= 0x08;
+ }
+
if (write(file, buf, 18) != 18) return (0);
if (ibuf->cmap){
for (i = 0 ; i<ibuf->maxcol ; i++){
2002-12-21 09:52:03 +00:00
cf13c60fa4
Two more variables that were not initalized.
...
cvs diff included below.
Kent
--
mein@cs.umn.edu
Index: png_encode.c
===================================================================
RCS file: /cvs01/blender/source/blender/imbuf/intern/png_encode.c,v
retrieving revision 1.3
diff -u -r1.3 png_encode.c
--- png_encode.c 2002/11/25 12:02:00 1.3
+++ png_encode.c 2002/12/20 01:28:18
@@ -91,7 +91,7 @@
unsigned char *pixels = 0;
unsigned char *from, *to;
png_bytepp row_pointers = 0;
- int i, bytesperpixel, color_type;
+ int i, bytesperpixel, color_type = PNG_COLOR_TYPE_GRAY;
FILE *fp = 0;
Index: targa.c
===================================================================
RCS file: /cvs01/blender/source/blender/imbuf/intern/targa.c,v
retrieving revision 1.3
diff -u -r1.3 targa.c
--- targa.c 2002/11/25 12:02:00 1.3
+++ targa.c 2002/12/20 01:28:20
@@ -247,7 +247,7 @@
char buf[20];
FILE *fildes;
int i;
- short ok;
+ short ok = 0;
2002-12-20 01:29:14 +00:00
14819414e9
Ok since no one cares about this I put a 5 second fix on it and won't
...
worry about it anymore :)
(initalized it to 0 and then later return 0 if its still 0 before doing
the work)
Kent
--
mein@cs.umn.edu
2002-12-20 01:14:46 +00:00
734e358eb4
Fixed two uninitalized vars:
...
Kent
/cvs01/blender/source/blender/imbuf/intern/iris.c,v
retrieving revision 1.3
diff -u -r1.3 iris.c
--- iris.c 2002/11/25 12:02:00 1.3
+++ iris.c 2002/12/19 22:12:53
@@ -212,7 +212,7 @@
/* unsigned int *tab; */
/* int len; */
{
- int r;
+ int r = 0;
while(len) {
r = putlong(outf,*tab++);
@@ -548,7 +548,7 @@
{
FILE *outf;
IMAGE *image;
- int tablen, y, z, pos, len;
+ int tablen, y, z, pos, len = 0;
int *starttab, *lengthtab;
unsigned char *rlebuf;
2002-12-19 22:13:37 +00:00
f8ef881474
I initalized mask to 0 in IMB_converttocmap
...
This may not be correct but at least now its predictable.
Kent
2002-12-19 21:26:34 +00:00
cd4a60f536
sgefants patch to remove the License Key stuff.
...
(I noticed its not completely gone yet from the blender/source dir)
But its a big step in the right direction if it doesn't enable
all of the functionatlity already...
(Using cscope for LICENSE_KEY_VALID still turns up some stuff)
Kent
--
mein@cs.umn.edu
2002-12-06 19:48:37 +00:00
d0e346d544
updated .c files to include:
...
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
Just need to finish cpp files now :)
Kent
--
mein@cs.umn.edu
2002-11-25 12:02:15 +00:00
b9a19f1ea7
Did all of the .h's in source
...
(adding)
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
also the Makefile.in's were from previous patch adding
the system depend stuff to configure.ac
Kent
--
mein@cs.umn.edu
2002-11-25 11:16:17 +00:00
01bff70383
fixed spacing in the headers to get rid of some warnings and some other
...
little minor spacing issues.
2002-10-30 02:07:20 +00:00
d063311b08
Fixed defined __sparc to also check for __sparc__ (thanks to Ferris)
2002-10-29 21:55:52 +00:00
Hans Lambermont
12315f4d0e
Initial revision
2002-10-12 11:37:38 +00:00