X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;f=src%2Flib%2F16text.h;h=d7bceb8666417b5ce0b3fe0898cb9b0ec2c5463c;hb=c5a5d3be15dc4c1de46f86cec8dd5a161563b1b9;hp=98c3b90474b0bac1303814c80a37ba49ef0848f8;hpb=562a5008d417d162e2f133b2eea7e5bb37a3070c;p=16.git
diff --git a/src/lib/16text.h b/src/lib/16text.h
old mode 100644
new mode 100755
index 98c3b904..d7bceb86
--- a/src/lib/16text.h
+++ b/src/lib/16text.h
@@ -1,3 +1,24 @@
+/* Project 16 Source Code~
+ * Copyright (C) 2012-2016 sparky4 & pngwen & andrius4669 & joncampbell123 & yakui-lover
+ *
+ * This file is part of Project 16.
+ *
+ * Project 16 is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * Project 16 is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see , or
+ * write to the Free Software Foundation, Inc., 51 Franklin Street,
+ * Fifth Floor, Boston, MA 02110-1301 USA.
+ *
+ */
/*
* This is the text subsystem for project 16.
* These functions provide for the rendering of text strings
@@ -6,7 +27,11 @@
*/
#ifndef TEXT_H
#define TEXT_H
-#include "types.h"
+#ifdef __WATCOMC__
+#include
+#include
+#endif
+#include "src/lib/types.h"
/* font information type */
typedef struct font {
@@ -15,8 +40,17 @@ typedef struct font {
byte charSize; //bytes in each character
} font_t;
+typedef struct fontdata {
+ byte z[9];
+ byte col; //color
+ byte bgcol; //bg color!
+ word chw; //char width
+ byte l[1024];
+} fontdata_t;
+
/* storage for the rom fonts */
extern font_t romFonts[4];
+extern fontdata_t romFontsData;
#define ROM_FONT_8x14 0
#define ROM_FONT_8x8_LOW 1
#define ROM_FONT_8x8_HIGH 2