remove old cruft

This commit is contained in:
marschap
2006-04-08 20:35:51 +00:00
parent 76b07fbf22
commit 2656f53743
2 changed files with 0 additions and 101 deletions
-99
View File
@@ -15,105 +15,6 @@
// TODO: What should this really be? Probably should be in the
// driver code or headers or something...
/*
ANY DRIVER SHOULD SIMPLY FREE ITS FRAMEBUFFER AT CLOSE()
NO CHECKING FOR NULL NEEDED
void
free_framebuf (Driver *driver) {
if (!driver)
return;
if (driver->framebuf != NULL)
free(driver->framebuf);
driver->framebuf = NULL;
}
*/
/*
NEED TO BE ADAPTED TO NEW SITUATION
void
clear_framebuf (Driver *driver) {
int framebuf_size;
if (!driver)
return;
framebuf_size = driver->wid * driver->hgt;
memset(driver->framebuf, ' ', framebuf_size);
}
*/
/*
NEED TO BE ADAPTED TO NEW SITUATION
int
new_framebuf (Driver *driver, char *oldbuf) {
int i;
if (driver->framebuf == NULL)
return 1;
if (oldbuf == NULL)
return 1;
for (i = 0; i < driver->wid * driver->hgt; i++) {
if (driver->framebuf[i] < MAX_CUSTOM_CHARS)
return 1;
if (driver->framebuf[i] != oldbuf[i])
return 1;
}
return 0;
}
*/
/*
NEED TO BE ADAPTED TO NEW SITUATION
void
insert_str_framebuf (Driver *driver, int x, int y, char *string) {
//int i;
char buf[64];
char *pos;
if (!driver)
return;
x--; y--; // convert to zero-indexing
if (x >= driver->wid) return;
if (x < 0) x = 0;
if (y >= driver->hgt) y = driver->hgt;
if (y < 0) y = 0;
if ((x + strlen(string)) > driver->wid)
strncpy(buf, string, driver->wid - x - 1);
else
strncpy(buf, string, sizeof(string));
pos = (driver->framebuf + (y * driver->wid) + x);
strcpy(pos, buf);
}
*/
/*
NEED TO BE ADAPTED TO NEW SITUATION
void
insert_chr_framebuf (Driver *driver, int x, int y, char c) {
if (!driver)
return;
x--; y--;
if (x >= driver->wid) x = driver->wid;
if (x < 0) x = 0;
if (y >= driver->hgt) y = driver->hgt;
if (y < 0) y = 0;
driver->framebuf[(y * driver->wid) + x] = c;
}
*/
void
lib_hbar_static (Driver *drvthis, int x, int y, int len, int promille, int options, int cellwidth, int cc_offset)
/*
-2
View File
@@ -5,8 +5,6 @@
#include "lcd.h"
#endif
int new_framebuf (Driver *driver, char *oldbuf);
void lib_hbar_static (Driver *drvthis, int x, int y, int len, int promille, int options, int cellwidth, int cc_offset);
void lib_vbar_static (Driver *drvthis, int x, int y, int len, int promille, int options, int cellheight, int cc_offset);