summaryrefslogtreecommitdiffstats
path: root/src/logos.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/logos.cpp')
-rw-r--r--src/logos.cpp21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/logos.cpp b/src/logos.cpp
index ac6e782..dbc47ff 100644
--- a/src/logos.cpp
+++ b/src/logos.cpp
@@ -19,6 +19,15 @@
#include "qtbc.h"
#include <qfile.h>
+
+unsigned char null_data[] = {
+ 0x47, 0x49, 0x46, 0x38, 0x39, 0x61, 0x01, 0x00, 0x01, 0x00, 0x80, 0xff,
+ 0x00, 0xc0, 0xc0, 0xc0, 0x00, 0x00, 0x00, 0x21, 0xf9, 0x04, 0x01, 0x00,
+ 0x00, 0x00, 0x00, 0x2c, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x01, 0x00,
+ 0x00, 0x02, 0x02, 0x44, 0x01, 0x00, 0x3b
+};
+unsigned int null_len = 43;
+
unsigned char logo_data[] = {
0x47, 0x49, 0x46, 0x38, 0x37, 0x61, 0x76, 0x00, 0x35, 0x00, 0xf7, 0x00,
0x00, 0x31, 0x7b, 0x6b, 0x31, 0x7b, 0x73, 0x31, 0x84, 0x7b, 0x31, 0x84,
@@ -490,6 +499,18 @@ unsigned char search_data[] = {
};
unsigned int search_len = 2010;
+void writeNullImage(const char *dir)
+{
+ QCString fileName=(QCString)dir+"/null.gif";
+ QFile f(fileName);
+ if (f.open(IO_WriteOnly))
+ f.writeBlock((char *)null_data,null_len);
+ else
+ {
+ fprintf(stderr,"Warning: Cannot open file %s for writing\n",fileName.data());
+ }
+ f.close();
+}
void writeLogo(const char *dir)
{