harmonize coding style and messages
This commit is contained in:
+15
-18
@@ -54,12 +54,12 @@
|
|||||||
#include "report.h"
|
#include "report.h"
|
||||||
|
|
||||||
|
|
||||||
unsigned int sed1520_lptport = LPTPORT;
|
static unsigned int sed1520_lptport = LPTPORT;
|
||||||
char *framebuf = NULL;
|
static char *framebuf = NULL;
|
||||||
int width = LCD_DEFAULT_WIDTH;
|
static int width = LCD_DEFAULT_WIDTH;
|
||||||
int height = LCD_DEFAULT_HEIGHT;
|
static int height = LCD_DEFAULT_HEIGHT;
|
||||||
int cellwidth = LCD_DEFAULT_CELLWIDTH;
|
static int cellwidth = LCD_DEFAULT_CELLWIDTH;
|
||||||
int cellheight = LCD_DEFAULT_CELLHEIGHT;
|
static int cellheight = LCD_DEFAULT_CELLHEIGHT;
|
||||||
|
|
||||||
|
|
||||||
// Vars for the server core
|
// Vars for the server core
|
||||||
@@ -123,18 +123,16 @@ selectcolumn (int column, int chip)
|
|||||||
void
|
void
|
||||||
drawchar2fb (int x, int y, unsigned char z)
|
drawchar2fb (int x, int y, unsigned char z)
|
||||||
{
|
{
|
||||||
int i, j, k;
|
int i, j;
|
||||||
|
|
||||||
if (x < 0 || x > 19 || y < 0 || y > 3)
|
if ((x < 0) || (x > 19) || (y < 0) || (y > 3))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
for (i = 6; i > 0; i--)
|
for (i = 6; i > 0; i--) {
|
||||||
{
|
int k = 0;
|
||||||
k = 0;
|
|
||||||
for (j = 0; j < 7; j++)
|
for (j = 0; j < 7; j++) {
|
||||||
{
|
k += (((fontmap[(int) z][j] * 2) & (1 << i)) / (1 << i)) *
|
||||||
k = k +
|
|
||||||
(((fontmap[(int) z][j] * 2) & (1 << i)) / (1 << i)) *
|
|
||||||
(1 << j);
|
(1 << j);
|
||||||
}
|
}
|
||||||
framebuf[(y * 122) + (x * 6) + (6 - i)] = k;
|
framebuf[(y * 122) + (x * 6) + (6 - i)] = k;
|
||||||
@@ -313,7 +311,7 @@ sed1520_num (Driver *drvthis, int x, int num)
|
|||||||
int z, c, i, s;
|
int z, c, i, s;
|
||||||
x--;
|
x--;
|
||||||
|
|
||||||
if (x < 0 || x > 19 || num < 0 || num > 10)
|
if ((x < 0) || (x > 19) || (num < 0) || (num > 10))
|
||||||
return;
|
return;
|
||||||
if (num != 10 && (x < 0 || x > 17))
|
if (num != 10 && (x < 0 || x > 17))
|
||||||
return;
|
return;
|
||||||
@@ -391,7 +389,6 @@ sed1520_old_vbar (Driver *drvthis, int x, int len)
|
|||||||
x--;
|
x--;
|
||||||
|
|
||||||
for (j = 0; j < 3; j++) {
|
for (j = 0; j < 3; j++) {
|
||||||
i = 0;
|
|
||||||
k = 0;
|
k = 0;
|
||||||
for (i = 0; i < 8; i++) {
|
for (i = 0; i < 8; i++) {
|
||||||
if (len > i)
|
if (len > i)
|
||||||
@@ -421,7 +418,7 @@ sed1520_old_hbar (Driver *drvthis, int x, int y, int len)
|
|||||||
x--;
|
x--;
|
||||||
y--;
|
y--;
|
||||||
|
|
||||||
if (y < 0 || y > 3 || x < 0 || len < 0 || (x + (len / 6)) > 19)
|
if ((y < 0) || (y > 3) || (x < 0) || (len < 0) || ((x + (len / 6)) > 19))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
for (i = 0; i < len; i++)
|
for (i = 0; i < len; i++)
|
||||||
|
|||||||
Reference in New Issue
Block a user