More formatting updates. Reduced whitespace, looks even better.
This commit is contained in:
@@ -15,7 +15,6 @@
|
||||
|
||||
*/
|
||||
|
||||
|
||||
#include <unistd.h>
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
@@ -33,8 +32,6 @@
|
||||
#include "svgalib_drv.h"
|
||||
#include "drv_base.h"
|
||||
|
||||
|
||||
|
||||
/* Small font */
|
||||
|
||||
const unsigned char simple_font5x7[] = {
|
||||
@@ -168,14 +165,11 @@ const unsigned char simple_font5x7[] = {
|
||||
/* ascii '126' (~) */ 31, 27, 23, 0, 23, 27, 31
|
||||
};
|
||||
|
||||
|
||||
|
||||
// <start user definable!!!>
|
||||
#define SVGALIB_FONT_VER 10 /* vertical spacing between lines (pixels) */
|
||||
#define SVGALIB_Y_OFFSET 40 /* distance from the top of the screen (pixels) */
|
||||
// <end user defineable!!!>
|
||||
|
||||
|
||||
// No, I don't understand SVGALIB key mappings or a neat way of doing this
|
||||
// Cursor keys manifest themselves as 3 byte excapes in svgalib: 27,91
|
||||
// followed by one of the codes below.
|
||||
@@ -193,7 +187,6 @@ void *SVGALIB_font; /* normal font */
|
||||
void *SVGALIB_highfont; /* highlighted font (not used yet) */
|
||||
void *SVGALIB_warnfont; /* warning font (not used yet) */
|
||||
|
||||
|
||||
/*
|
||||
Setting SVGALIB_figure_mappings will trap all keypresses and write the
|
||||
vga_getkey() codes out to a file. You can then mod the getkey() function
|
||||
@@ -208,10 +201,6 @@ int SVGALIB_figure_mappings = 0;
|
||||
////////////////////// For Output on SVGALIB screen //////////////////////
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
void
|
||||
ExpandGroovyFont (int w, int ht, unsigned char col, const unsigned char *fnt, unsigned char *ptr)
|
||||
// Expand groovy 5x7 font into an area of memory
|
||||
@@ -239,7 +228,6 @@ ExpandGroovyFont (int w, int ht, unsigned char col, const unsigned char *fnt, un
|
||||
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
spaced_gl_writen (int x, int y, int count, char *text)
|
||||
//
|
||||
@@ -252,10 +240,8 @@ spaced_gl_writen (int x, int y, int count, char *text)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
static char icon_char = '@';
|
||||
|
||||
|
||||
int
|
||||
svgalib_drv_init (struct lcd_logical_driver *driver, char *args)
|
||||
{
|
||||
@@ -291,7 +277,6 @@ svgalib_drv_init (struct lcd_logical_driver *driver, char *args)
|
||||
|
||||
gl_clearscreen (gl_rgbcolor (0, 0, 0));
|
||||
|
||||
|
||||
// Override output functions...
|
||||
driver->clear = svgalib_drv_clear;
|
||||
driver->string = svgalib_drv_string;
|
||||
@@ -337,7 +322,6 @@ svgalib_drv_clear ()
|
||||
gl_clearscreen (gl_rgbcolor (0, 0, 0));
|
||||
}
|
||||
|
||||
|
||||
/////////////////////////////////////////////////////////////////
|
||||
// Prints a string on the lcd display, at position (x,y). The
|
||||
// upper-left is (1,1), and the lower right should be (20,4).
|
||||
@@ -408,7 +392,6 @@ svgalib_drv_num (int x, int num)
|
||||
svgalib_drv_chr (x + dx, y, c);
|
||||
}
|
||||
|
||||
|
||||
/////////////////////////////////////////////////////////////////
|
||||
// Draws a vertical bar; erases entire column onscreen.
|
||||
//
|
||||
@@ -444,7 +427,6 @@ svgalib_drv_hbar (int x, int y, int len)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/////////////////////////////////////////////////////////////////
|
||||
// Sets character 0 to an icon...
|
||||
//
|
||||
@@ -465,25 +447,21 @@ svgalib_drv_icon (int which, char dest)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
svgalib_drv_flush ()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
svgalib_drv_flush_box (int lft, int top, int rgt, int bot)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
svgalib_drv_draw_frame (char *dat)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
char
|
||||
svgalib_drv_getkey ()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user