Update of /cvsroot/lapetus/lapetus
In directory sc8-pr-cvs6.sourceforge.net:/tmp/cvs-serv10364
Modified Files:
text.c text.h
Log Message:
-Added a clear screen function
Index: text.h
===================================================================
RCS file: /cvsroot/lapetus/lapetus/text.h,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- text.h 3 Mar 2007 03:32:55 -0000 1.1
+++ text.h 9 Jan 2008 05:16:16 -0000 1.2
@@ -22,5 +22,6 @@
void VdpPrintText(font_struct * font, int x, int y, int color, const char *text);
void VdpPrintf(font_struct * font, int x, int y, int color, char *format, ...);
+void VdpClearScreen(font_struct *font);
#endif
Index: text.c
===================================================================
RCS file: /cvsroot/lapetus/lapetus/text.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- text.c 3 Mar 2007 03:32:55 -0000 1.3
+++ text.c 9 Jan 2008 05:16:16 -0000 1.4
@@ -52,3 +52,28 @@
//////////////////////////////////////////////////////////////////////////////
+void VdpClearScreen(font_struct *font)
+{
+ int i;
+
+ if (font->screen == SCREEN_VDP1)
+ {
+ VdpStartDrawList();
+ VdpEndDrawList();
+ }
+ else
+ {
+ // Figure out whether we're dealing with bitmap or tiled(fix me)
+// if (bitmap)
+ {
+ for (i = 0; i < (512 * 256 / 4); i++)
+ ((u32 *)font->out)[i] = 0;
+ }
+// else
+// {
+// }
+ }
+}
+
+//////////////////////////////////////////////////////////////////////////////
+
|